-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
85 lines (78 loc) · 2.65 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[package]
name = "rusty_paseto"
version = "0.7.1"
edition = "2021"
readme = "readme.md"
authors = ["Roland Rodriguez <rolandrodriguez@gmail.com>"]
description = "A type-driven, ergonomic alternative to JWT for secure stateless PASETO tokens."
repository = "https://github.com/rrrodzilla/rusty_paseto"
license = "MIT OR Apache-2.0"
keywords = ["paseto", "token", "security", "api", "web"]
categories = [
"cryptography",
"authentication",
"encoding",
"network-programming",
"web-programming",
]
documentation = "https://docs.rs/rusty_paseto/latest/rusty_paseto/"
[features]
v1 = []
v2 = []
v3 = []
v4 = []
public = []
local = []
v1_local = ["v1", "local", "core", "aes", "chacha20", "hmac", "sha2", "blake2"]
v2_local = ["v2", "local", "core", "blake2", "chacha20poly1305"]
v3_local = ["v3", "local", "core", "aes", "hmac", "sha2", "chacha20"]
v4_local = ["v4", "local", "core", "blake2", "chacha20"]
v1_public = ["v1", "public", "core", "ed25519-dalek"]
v2_public = ["v2", "public", "core", "ed25519-dalek", "ring/std"]
v3_public = ["v3", "public", "core", "p384", "sha2"]
v4_public = ["v4", "public", "core", "ed25519-dalek", "ring/std"]
core = []
generic = ["core", "serde", "erased-serde", "serde_json"]
batteries_included = ["generic"]
default = [
"batteries_included",
"v4_local",
"v4_public",
]
[lib]
doctest = true
[dependencies]
p384 = { version = "0.13.0", optional = true }
chacha20 = { version = "0.9.1", optional = true }
blake2 = { version = "0.10.6", optional = true }
chacha20poly1305 = { version = "0.10.1", optional = true }
ring = { version = "^0.17", features = ["std"], optional = false }
base64 = { version = "0.22.1", optional = false }
hex = { version = "^0.4.3", optional = false }
serde = { version = "1.0.117", features = ["derive"], optional = true }
ed25519-dalek = { version = "2.0.0", features = ["zeroize"], optional = true }
serde_json = { version = "^1.0.68", optional = true }
thiserror = "1.0.29"
iso8601 = "0.6.1"
erased-serde = { version = "0.4.5", optional = true }
aes = { version = "0.7.5", features = ["ctr"], optional = true }
hmac = { version = "0.12.1", optional = true }
sha2 = { version = "0.10.2", optional = true }
zeroize = { version = "1.4.3", features = ["zeroize_derive"] }
time = { version = "0.3.5", features = ["parsing", "formatting"] }
rand_core = "0.6.4"
digest = "0.10.7"
[dev-dependencies]
anyhow = "1.0.45"
serde_json = { version = "^1.0.68" }
primes = "0.3.0"
actix-web = "4"
actix-identity = "0.4.0"
tokio = "1.17.0"
actix-utils = "3.0.0"
uuid = { version = "1.8.0", features = ["v4"] }
proptest = "1.4.0"
erased-serde = { version = "0.4.5" }
[[example]]
name = "actix_identity"
required-features = ["default"]