Computing/Rust
From Cricalix.Net
Things I forget when doing new Rust installs, or other things I want to keep track of with Rust.
- Install rust-analyzer via rustup.
rustup component add rust-analyzer
Reqwest GET URIs
let mut req = client.get("https://www.google.com").build().unwrap();
let query: String = form_urlencoded::Serializer::new(String::new())
.append_key_only("foo")
.finish();
req.url_mut().set_query(Some(&query));
Clap for CLI handling
cargo add clap -F derive,env