Closed zachschultz closed 6 years ago
My Cargo.toml contains:
[dependencies] rss = "1.5"
and my small program looks like:
extern crate rss; use rss::Channel; fn main() { let channel = Channel::from_url("http://example.com/feed.xml").unwrap(); }
When trying to run cargo run I get this error: no function or associated item namedfrom_urlfound for typerss::Channelin the current scope.
cargo run
no function or associated item named
found for type
in the current scope
Any help would be greatly appreciated, because I'm not sure why this wont work.
https://github.com/rust-syndication/rss#from-a-url
You'll need to opt-in to the from_url feature:
from_url
[dependencies] rss = { version = "1.5", features = ["from_url"] }
My Cargo.toml contains:
and my small program looks like:
When trying to run
cargo run
I get this error:no function or associated item named
from_urlfound for type
rss::Channelin the current scope
.Any help would be greatly appreciated, because I'm not sure why this wont work.