Expand description
The uv-netrc crate provides a parser for the netrc file.
§Setup
$ cargo add uv-netrc§Example
ⓘ
use uv_netrc::Netrc;
// ...
let nrc = Netrc::new().unwrap();
// ...
println!(
"login = {}\naccount = {}\npassword = {}",
nrc.hosts["my.host"].login,
nrc.hosts["my.host"].account,
nrc.hosts["my.host"].password,
);Structs§
- Authenticator
- Authenticators for host.
- Netrc
- Represents the netrc file.
Enums§
- Error
- An error that can occur when processing a Netrc file.