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

#1104 in Parser implementations

Download history

296 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–7.5MB
~57K SLoC