#cookies #cookie-jar #http-parser #encryption #signed

cookie

HTTP cookie parsing and cookie jar management. Supports signed and private (encrypted, authenticated) jars.

77 releases

0.18.1 Mar 25, 2024
0.18.0 Oct 9, 2023
0.18.0-rc.0 Sep 27, 2023
0.17.0 Jan 23, 2023
0.0.1 Nov 22, 2014

#22 in Web programming

Download history 655550/week @ 2025-12-28 1454867/week @ 2026-01-04 1800631/week @ 2026-01-11 1747700/week @ 2026-01-18 1797388/week @ 2026-01-25 1862898/week @ 2026-02-01 2104271/week @ 2026-02-08 2076610/week @ 2026-02-15 2273547/week @ 2026-02-22 2692419/week @ 2026-03-01 2887961/week @ 2026-03-08 2679605/week @ 2026-03-15 2605626/week @ 2026-03-22 2453848/week @ 2026-03-29 2474428/week @ 2026-04-05 2669534/week @ 2026-04-12

10,387,507 downloads per month
Used in 5,508 crates (352 directly)

MIT/Apache

185KB
2K SLoC

Cookie

CI Status Current Crates.io Version Documentation

A Rust library for parsing HTTP cookies and managing cookie jars.

Usage

Add the following to your Cargo.toml:

[dependencies]
cookie = "0.18"

See the documentation for detailed usage information.

Minimum Supported Rust Version (MSRV)

Version Range MSRV
cookie == 0.18 rustc 1.56
0.16 <= cookie <= 0.17 rustc 1.53
cookie <= 0.15 rustc 1.41

License

This project is licensed under your option of either of the following:

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in cookie by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.9–1.4MB
~27K SLoC