5 releases

0.1.4 Apr 2, 2024
0.1.3 Mar 18, 2024
0.1.2 Mar 7, 2024
0.1.1 Mar 1, 2024
0.1.0 Mar 1, 2024

#901 in Parser implementations

Download history 207/week @ 2024-02-26 156/week @ 2024-03-04 28/week @ 2024-03-11 137/week @ 2024-03-18 244/week @ 2024-04-01

417 downloads per month

BSD-3-Clause

17KB
368 lines

This is a wrapper crate for cookies, that implements the std::convert::From for several other cookie types/crates, like cookie, cookie_store and the thirtyfour cookie type.

It also supports creating cookies from a string in the cookies.txt/netscape format.

let mut cookies_file = File::open("foo.txt")?;
let mut cookie_txt = String::new();
cookies_file.read_to_string(&mut cookie_txt)?;

let cookies = Cookies::try_from(&cookie_txt)?;

Dependencies

~0–9.5MB
~61K SLoC