-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (60 loc) · 2.32 KB
/
Copy pathCargo.toml
File metadata and controls
68 lines (60 loc) · 2.32 KB
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
[package]
name = "jwt-simple"
version = "0.15.0"
description = "JWT authentication with JSON Web Token signing and verification (JWS), encryption (JWE), and custom claims. Supports RSA, ECDSA, Ed25519, and ML-DSA."
authors = ["Frank Denis <github@pureftpd.org>"]
edition = "2018"
rust-version = "1.89"
license = "ISC"
repository = "https://github.com/jedisct1/rust-jwt-simple"
homepage = "https://github.com/jedisct1/rust-jwt-simple"
categories = ["wasm", "api-bindings", "web-programming", "cryptography"]
keywords = ["jwt", "jws", "jwe", "authentication", "tokens"]
readme = "README.md"
include = ["src/**/*.rs", "benches/**/*.rs", "README.md", "LICENSE", "Cargo.toml"]
[dependencies]
anyhow = "1.0.104"
blake2b_simd = "1.0.5"
binstring = "0.1.7"
ciborium = { version = "0.2.2", optional = true }
coarsetime = "0.1.37"
ct-codecs = "1.1.7"
ed25519-compact = { version = "2.6.0", features = ["pem"] }
hmac-sha1-compact = "1.1.7"
hmac-sha256 = { version = "1.1.14", features = ["traits011"] }
hmac-sha512 = { version = "1.1.12", features = ["traits011", "sha384"] }
k256 = { version = "0.14.0", features = ["ecdsa", "std", "pkcs8", "pem"] }
p256 = { version = "0.14.0", features = ["ecdsa", "std", "pkcs8", "pem", "ecdh"] }
p384 = { version = "0.14.0", features = ["ecdsa", "std", "pkcs8", "pem"] }
rand = "0.10.3"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
thiserror = "2.0.21"
zeroize = "1.9.0"
# For now, superboring is not optional: the current `boring` crate does not implement ML-DSA yet,
# so ML-DSA signatures always use a Rust implementation until a new version of the crate is out.
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies]
boring = { version = "5.2.0", optional = true }
superboring = "0.1.17"
[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dependencies]
superboring = "0.1.17"
[dev-dependencies]
benchmark-simple = "0.1.11"
[features]
default = ["optimal", "jwe"]
cwt = ["ciborium"]
jwe = []
optimal = ["boring"]
# Note: to emulate boringssl, "default-features = false" is required in addition to "pure-rust".
pure-rust = []
wasi-abi2 = ["coarsetime/wasi-abi2"]
wasi-crypto = ["superboring/wasi-crypto"]
[[bench]]
name = "benchmark"
harness = false
[profile.release]
codegen-units = 1
incremental = false
panic = "abort"
[profile.bench]
codegen-units = 1