-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
116 lines (105 loc) · 3.37 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[package]
name = "jose"
version = "0.0.1"
edition = "2021"
license = "MIT OR Apache-2.0"
rust-version = "1.84"
authors = [
"Erik Tesar <[email protected]>",
"Justus K. <[email protected]>",
]
description = "A JSON Object Signing and Encryption implementation"
readme = "README.md"
homepage = "https://github.com/minkan-chat/jose"
repository = "https://github.com/minkan-chat/jose.git"
keywords = ["jwt", "JsonWebToken", "json", "jose", "authentication"]
categories = [
"cryptography",
"encoding",
"parser-implementations",
"no-std",
"authentication",
]
[features]
default = []
std = [
"signature/std",
"thiserror-no-std/std",
"rsa/std",
"rand_core/std",
"fluent-uri/std",
"serde_json/std",
]
[dependencies]
thiserror-no-std = "2.0.2"
base64ct = { version = "1.5", default-features = false, features = ["alloc"] }
serde = { version = "1", default-features = false, features = [
"alloc",
"derive",
] }
serde_json = { version = "1", default-features = false, features = ["alloc"] }
hashbrown = { version = "0.15", features = ["serde"] }
rand_core = { version = "0.6", features = ["getrandom", "alloc"] }
hmac = { version = "0.12", default-features = false }
sha1 = { version = "0.10", default-features = false, features = ["oid"] }
sha2 = { version = "0.10", default-features = false, features = ["oid"] }
ed25519 = { version = "2.2.1", default-features = false, features = ["alloc"] }
p256 = { version = "0.13", default-features = false, features = [
"arithmetic",
"ecdsa",
] }
p384 = { version = "0.13", default-features = false, features = [
"arithmetic",
"ecdsa",
] }
k256 = { version = "0.13", default-features = false, features = [
"arithmetic",
"ecdsa",
] }
elliptic-curve = { version = "0.13", default-features = false, features = [
"arithmetic",
"jwk",
"serde",
"sec1",
"pkcs8",
"pem",
] }
rsa = { version = "0.9", default-features = false }
digest = { version = "0.10.7", default-features = false, features = ["mac"] }
ecdsa = { version = "0.16", default-features = false, features = [
"digest",
"signing",
"verifying",
"alloc",
] }
ed25519-dalek = { version = "2", default-features = false, features = [
"zeroize",
"rand_core",
] }
signature = { version = "2.1.0", default-features = false }
# FIXME: remove this when we can use const generics
generic-array = { version = "0.14", default-features = false, features = [
"serde",
] }
typenum = { version = "1.15", default-features = false, features = ["no_std"] }
num-traits = { version = "0.2.15", default-features = false }
num-bigint-dig = { version = "0.8.1", default-features = false, features = [
"u64_digit",
] }
serde-value = { version = "0.7.0", default-features = false }
# a replacement for the `mime` crate from hyper which seems to be no longer maintained
mediatype = { version = "0.19.3", features = ["serde"] }
fluent-uri = { version = "0.3.2", default-features = false }
secrecy = { version = "0.10.3", default-features = false, features = ["serde"] }
zeroize = { version = "1.8.1", default-features = false, features = ["derive", "serde"] }
[dev-dependencies]
rand = "0.8.5"
# For examples
eyre = "0.6.12"
clap = { version = "4.5.27", features = ["derive"] }
clio = { version = "0.3.5", features = ["clap-parse"] }
# For X.509 certificates of Json Web Keys
# x509-cert = { git = "https://github.com/RustCrypto/formats.git" }
[[example]]
name = "basic-jwt"
required-features = ["std"]