Cargo Features

[dependencies]
cookie_store = { version = "0.21.1", default-features = false, features = ["preserve_order", "public_suffix", "wasm-bindgen", "log_secure_cookie_values", "serde", "serde_json", "serde_ron"] }
default = public_suffix, serde_json

These default features are set whenever cookie_store is added without default-features = false somewhere in the dependency tree.

preserve_order

uses indexmap::IndexMap in lieu of HashMap internally, so cookies are maintained in insertion/creation order

Enables indexmap

public_suffix default

Add support for public suffix lists, as provided by publicsuffix.

Enables publicsuffix

wasm-bindgen

Enables transitive feature time/wasm-bindgen; necessary in wasm contexts.

Enables wasm-bindgen of time

Enable logging the values of cookies marked 'secure', off by default as values may be sensitive

serde serde_json serde_ron?

Serialization

Supports generic (format-agnostic) de/serialization for a CookieStore. Adds dependencies serde and serde_derive.

Enables serde and serde_derive

serde:

serialization dependencies

Affects cookie_store::serde

serde_json default = serde

Supports de/serialization for a CookieStore via the JSON format. Enables feature serde and adds depenency serde_json.

Enables serde_json

Affects serde::json

serde_ron = serde

Supports de/serialization for a CookieStore via the RON format. Enables feature serde and adds depenency ron.

Enables ron

Affects serde::ron