From c18804715d203b886c985b504a56cdbbc3289fd1 Mon Sep 17 00:00:00 2001 From: hezheyu Date: Mon, 22 Jan 2024 10:24:14 +0800 Subject: [PATCH] Use rss-for-mikan. --- Cargo.lock | 9 +++++---- Cargo.toml | 5 +---- src/source/byrbt/item.rs | 2 +- src/source/mikan/item.rs | 2 +- src/source/tjupt/item.rs | 2 +- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b1add30..81d98c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,7 +104,7 @@ dependencies = [ "futures", "log", "reqwest", - "rss", + "rss-for-mikan", "sensible-env-logger", "serde", "serfig", @@ -977,9 +977,10 @@ dependencies = [ ] [[package]] -name = "rss" -version = "2.0.4" -source = "git+https://github.com/RinChanNOWWW/rss?branch=patch-mikan#59380e0ce4c40ad660cec77a367b47fe41b612e6" +name = "rss-for-mikan" +version = "2.0.4-mikan" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e15eea7f8247e7acc5843eaac7275f988950991eab7eadce866691e92ebf8c1" dependencies = [ "atom_syndication", "derive_builder", diff --git a/Cargo.toml b/Cargo.toml index 9b8b200..aec2e0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,11 +25,8 @@ daemonize = "0.5.0" futures = "0.3.28" log = "0.4" reqwest = { version = "0.11", features = ["json"] } -rss = { version = "2.0" } +rss-for-mikan = { version = "2.0.4-mikan" } sensible-env-logger = { version = "0.3", features = ["local-time"] } serde = { version = "1.0.145", features = ["derive"] } serfig = "0.0.2" tokio = { version = "1.28.0", features = ["rt-multi-thread", "macros"] } - -[patch.crates-io] -rss = { git = "https://github.com/RinChanNOWWW/rss", branch = "patch-mikan" } diff --git a/src/source/byrbt/item.rs b/src/source/byrbt/item.rs index 45216d8..4a9c538 100644 --- a/src/source/byrbt/item.rs +++ b/src/source/byrbt/item.rs @@ -24,7 +24,7 @@ pub struct Byrbt; impl Byrbt { pub fn parse_items(content: R) -> Result> { - let channel = rss::Channel::read_from(content)?; + let channel = rss_for_mikan::Channel::read_from(content)?; Ok(channel .items diff --git a/src/source/mikan/item.rs b/src/source/mikan/item.rs index 048d3d3..a05dc88 100644 --- a/src/source/mikan/item.rs +++ b/src/source/mikan/item.rs @@ -24,7 +24,7 @@ pub struct Mikan; impl Mikan { pub fn parse_items(content: R) -> Result> { - let channel = rss::Channel::read_from(content)?; + let channel = rss_for_mikan::Channel::read_from(content)?; Ok(channel .items diff --git a/src/source/tjupt/item.rs b/src/source/tjupt/item.rs index 1f1c2be..94ef3b8 100644 --- a/src/source/tjupt/item.rs +++ b/src/source/tjupt/item.rs @@ -24,7 +24,7 @@ pub struct Tjupt; impl Tjupt { pub fn parse_items(content: R) -> Result> { - let channel = rss::Channel::read_from(content)?; + let channel = rss_for_mikan::Channel::read_from(content)?; Ok(channel .items