compiling state [wip]

This commit is contained in:
mathias committed 2022-11-23 18:19:17 +01:00
1 parent f105b2ef2e
commit 3256c7f5fe
16 files changed
+176

No files matched your search

+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;