netrc
A netrc library for Rust, with support for reqwest via reqwest-middleware.
reqwest-netrc
The reqwest-netrc crate is a middleware for reqwest
to support the netrc file.
Usage
To bring this crate into your repository, either add reqwest-netrc to your
Cargo.toml, or run:
> cargo add reqwest-netrc
Example
The common scenario is to have a ~/.netrc file or the NETRC environement variable defined:
use Client;
use ClientBuilder;
use NetrcMiddleware;
// ...
let client = new
.with_init
.build;
let res = client.get.send.await;
// ...
rust-netrc
The rust-netrc crate is a parser for the netrc files.
Usage
To bring this crate into your repository, either add rust-netrc to your
Cargo.toml, or run:
> cargo add rust-netrc
Example
use Netrc;
Contributing
Feedback and contributions are very welcome.
License
This project is licensed under MIT.