-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
80 lines (74 loc) · 2.56 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
[package]
name = "rusty_paseto"
version = "0.7.2"
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", optional = true }
chacha20 = { version = "0.9", optional = true }
blake2 = { version = "0.10", optional = true }
chacha20poly1305 = { version = "0.10", optional = true }
ring = { version = "0.17", features = ["std"], optional = false }
base64 = { version = "0.22", optional = false }
hex = { version = "0.4", optional = false }
serde = { version = "1.0", features = ["derive"], optional = true }
ed25519-dalek = { version = "2.0", features = ["zeroize"], optional = true }
serde_json = { version = "1.0", optional = true }
thiserror = "1.0"
iso8601 = "0.6"
erased-serde = { version = "0.4", optional = true }
aes = { version = "0.7", features = ["ctr"], optional = true }
hmac = { version = "0.12", optional = true }
sha2 = { version = "0.10", optional = true }
zeroize = { version = "1.4", features = ["zeroize_derive"] }
time = { version = "0.3", features = ["parsing", "formatting"] }
rand_core = "0.6"
digest = "0.10"
[dev-dependencies]
anyhow = "1.0"
serde_json = { version = "1.0" }
primes = "0.3"
actix-web = "4"
actix-identity = "0.4"
tokio = "1.17"
actix-utils = "3.0"
uuid = { version = "1.8", features = ["v4"] }
proptest = "1.4"
erased-serde = { version = "0.4" }
[[example]]
name = "actix_identity"
required-features = ["default"]