28 releases (17 breaking)
| new 0.22.1 | Feb 16, 2026 |
|---|---|
| 0.22.0 | Jul 20, 2025 |
| 0.21.1 | Nov 9, 2024 |
| 0.21.0 | Feb 8, 2024 |
| 0.5.1 | Feb 22, 2019 |
#1 in #jar
2,664,346 downloads per month
Used in 2,017 crates
(72 directly)
155KB
3.5K
SLoC
Provides an implementation for storing and retrieving Cookies per the path and domain matching
rules specified in RFC6265.
Features
preserve_order- usesindexmap::IndexMapin lieu of HashMap internally, so cookies are maintained in insertion/creation orderpublic_suffix- Add support for public suffix lists, as provided by publicsuffix.wasm-bindgen- Enables transitive featuretime/wasm-bindgen; necessary inwasmcontexts.log_secure_cookie_values- Enable logging the values of cookies marked 'secure', off by default as values may be sensitive
Serialization
serde- Supports generic (format-agnostic) de/serialization for aCookieStore. Adds dependenciesserdeandserde_derive.serde_json- Supports de/serialization for aCookieStorevia the JSON format. Enables featureserdeand adds depenencyserde_json.serde_ron- Supports de/serialization for aCookieStorevia the RON format. Enables featureserdeand adds depenencyron.
Usage with reqwest
Please refer to the reqwest_cookie_store crate, which now provides an implementation of the reqwest::cookie::CookieStore trait for cookie_store::CookieStore.
License
This project is licensed and distributed under the terms of both the MIT license and Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT
Dependencies
~4–6MB
~106K SLoC