/cookie-rs

HTTP cookie parsing and cookie jar management for Rust.

Primary LanguageRustApache License 2.0Apache-2.0

Difference from SergioBenitez/cookie-rs

This fork is exactly the same, except the branch v0.11 has been patched to cherry-pick commit ae6d4230cac4d3230ae848c76de0862835ecaa8e, which means it supports the latest version of SameSite and sets SameSite=None explicitly when you .same_site(SameSite::None). No branches in this fork will receive more updates, with the sole exception of the v0.11 branch in case a new 0.11.x release is published before rocket@0.5 releases.

THIS IS A BREAKING CHANGE: previously v0.11 supported the previous draft where None was the default, and as such impicit. The new draft changed the default, meaning old browsers default to SameSite=None and new browsers default to SameSite=Lax.

Make sure you understand what this means (MDN).

Use the patch

Add the following to your Cargo.toml:

[patch.crates-io]
cookie = { git = 'https://github.com/afriestad/cookie-rs', branch = 'v0.11'}

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.14"

See the documentation for detailed usage information.

License

This project is licensed under either of

at your option.

Contribution

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