Small project and exercise with rust to make an RSS reader
There are two ways to go about using the reader
Requires installation of Rust and Cargo
cargo build
cargo run -- [ARGS]
You can also run the binary (provides the ability to use shortcuts as cargo needs 'long' version arguments)
cargo build //builds the binary, usually in target for most JetBrains IDEs
cd 'target'
./rss_reader [ARGS]
input
./rss_reader [-i|--input| [FILE]
Uses FILE as the input to the reader. Clashes with url
url
./rss_reader [-u|--url] [URL]
Uses URL as the input, calls via HTTPS with Reqwest to get the returned Response and RSS to parse it. Clashes with input
trim
./rss_reader [-t|--trim]
Sets any values that are determined and managed by the reader to be a maximum of 10 chars long (UTF-8)
replace
./rss_reader [-r|--replace] "FROM|TO"
Takes a string that is separated by | and replaces the FROM to TO. Any additional values in the string are ignored
output
./rss_reader [-o|--output¥ [FILE]
Uses the provided FILE as output