-
Notifications
You must be signed in to change notification settings - Fork 24
/
Cargo.toml
59 lines (49 loc) · 2.2 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[package]
authors = ["Patrick Fernie <[email protected]>"]
description = "Implementation of Cookie storage and retrieval"
name = "cookie_store"
version = "0.21.1" # managed by release.sh
edition = "2021"
rust-version = "1.63.0"
repository = "https://github.com/pfernie/cookie_store"
documentation = "https://docs.rs/cookie_store"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["cookie", "jar", "store", "http"] # free text
categories = ["web-programming::http-client", "web-programming"] # https://crates.io/category_slugs
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["public_suffix", "serde_json"]
## uses `indexmap::IndexMap` in lieu of HashMap internally, so cookies are maintained in insertion/creation order
preserve_order = ["dep:indexmap"]
## Add support for public suffix lists, as provided by [publicsuffix](https://crates.io/crates/publicsuffix).
public_suffix = ["dep:publicsuffix"]
## Enables transitive feature `time/wasm-bindgen`; necessary in `wasm` contexts.
wasm-bindgen = ["time/wasm-bindgen"]
## Enable logging the values of cookies marked 'secure', off by default as values may be sensitive
log_secure_cookie_values = []
#! ### Serialization
## Supports generic (format-agnostic) de/serialization for a `CookieStore`. Adds dependencies `serde` and `serde_derive`.
serde = ["dep:serde", "dep:serde_derive"]
## Supports de/serialization for a `CookieStore` via the JSON format. Enables feature `serde` and adds depenency `serde_json`.
serde_json = ["serde", "dep:serde_json"]
## Supports de/serialization for a `CookieStore` via the RON format. Enables feature `serde` and adds depenency `ron`.
serde_ron = ["serde", "dep:ron"]
[dependencies]
document-features = "0.2.10"
idna = "1.0"
log = "0.4.17"
time = "0.3.16"
url = "2.3.1"
indexmap = { version = "2.6.0", optional = true }
publicsuffix = { version = "2.2.3", optional = true }
# serialization dependencies
serde = { version = "1.0.147", optional = true }
serde_derive = { version = "1.0.147", optional = true }
serde_json = { version = "1.0.87", optional = true }
ron = { version = "0.8.1", optional = true }
[dependencies.cookie]
features = ["percent-encode"]
version = "0.18.0"