forked from jedisct1/rust-jwt-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
60 lines (53 loc) · 1.92 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
[package]
name = "jwt-simple-no-nbf-fork"
version = "0.12.9"
description = "Easy to use, secure, non opinionated JWT (JSON Web Tokens) implementation for Rust."
authors = ["Adam Horn <github@hornadam8>"]
edition = "2018"
license = "ISC"
repository = "https://github.com/hornadam8/rust-jwt-simple"
homepage = "https://github.com/hornadam8/rust-jwt-simple"
categories = ["wasm", "api-bindings", "web-programming", "cryptography"]
keywords = ["jwt", "jws", "authentication", "tokens", "json"]
readme = "README.md"
[dependencies]
anyhow = "1.0.75"
blake2b_simd = "1.0.2"
binstring = "0.1.1"
ciborium = { version = "0.2.1", optional = true }
coarsetime = "0.1.33"
ct-codecs = "1.1.1"
ed25519-compact = { version = "2.0.6", features = ["pem"] }
hmac-sha1-compact = "1.1.4"
hmac-sha256 = { version = "1.1.7", features = ["traits010"] }
hmac-sha512 = { version = "1.1.5", features = ["traits010", "sha384"] }
k256 = { version = "0.13.2", features = ["ecdsa", "std", "pkcs8", "pem"] }
p256 = { version = "0.13.2", features = ["ecdsa", "std", "pkcs8", "pem"] }
p384 = { version = "0.13.0", features = ["ecdsa", "std", "pkcs8", "pem"] }
rand = "0.8.5"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
thiserror = "1.0.51"
zeroize = "1.7.0"
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies]
boring = { version = "4.2.0", optional = true }
superboring = { version = "0.1.2", optional = true }
[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dependencies]
superboring = { version = "0.1.2" }
[dev-dependencies]
benchmark-simple = "0.1.8"
[features]
default = ["optimal"]
cwt = ["ciborium"]
optimal = ["boring"]
# Note: to emulate boringssl, "default-features = false" is required in addition to "pure-rust".
pure-rust = ["superboring"]
[[bench]]
name = "benchmark"
harness = false
[profile.release]
codegen-units = 1
incremental = false
panic = "abort"
[profile.bench]
codegen-units = 1