forked from rwf2/cookie-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
40 lines (35 loc) · 1.27 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
[package]
name = "cookie"
version = "0.15.1"
authors = ["Sergio Benitez <[email protected]>", "Alex Crichton <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
repository = "https://github.com/SergioBenitez/cookie-rs"
documentation = "https://docs.rs/cookie"
readme = "README.md"
build = "build.rs"
description = """
HTTP cookie parsing and cookie jar management. Supports signed and private
(encrypted, authenticated) jars.
"""
[features]
percent-encode = ["percent-encoding"]
secure = ["private", "signed", "key-expansion"]
private = ["aes-gcm", "base64", "rand", "subtle"]
signed = ["hmac", "sha2", "base64", "rand", "subtle"]
key-expansion = ["sha2", "hkdf"]
[dependencies]
time = { version = "0.2.11", default-features = false, features = ["std"] }
percent-encoding = { version = "2.0", optional = true }
# dependencies for secure (private/signed) functionality
aes-gcm = { version = "0.9.0", optional = true }
hmac = { version = "0.11.0", optional = true }
sha2 = { version = "0.9.0", optional = true }
base64 = { version = "0.13", optional = true }
rand = { version = "0.8", optional = true }
hkdf = { version = "0.11.0", optional = true }
subtle = { version = "2.3", optional = true }
[build-dependencies]
version_check = "0.9"
[package.metadata.docs.rs]
all-features = true