2 releases
0.1.1 | Apr 5, 2020 |
---|---|
0.1.0 | Apr 5, 2020 |
#9 in #cookie-jar
7KB
120 lines
cookies-rs Provide a macro to load your Cookies.txt
into a CookieJar
.
Usage
Add dependencies to Cargo.toml
cookies-rs = "*"
And load Cookies from file:
use cookies_rs::load_cookies;
let jar = load_cookies!("/home/cookies.txt").unwrap();
for cookie in jar.iter() {
println!("{:?}", cookie);
}
Dependencies
~4.5–6MB
~116K SLoC