compiling state [wip]

This commit is contained in:
2022-11-23 18:19:17 +01:00
parent f105b2ef2e
commit 3256c7f5fe
16 changed files with 176 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
use std::error::Error;
use rss::Channel;
pub async fn get_feed(feed: &String) -> Result<Channel, Box<dyn Error>> {
let content = reqwest::get(feed).await?.bytes().await?;
let channel = Channel::read_from(&content[..])?;
Ok(channel)
}
+1
View File
@@ -0,0 +1 @@
pub mod feeds;