Skip to content

Commit cc25ab7

Browse files
Let users chose what crypto backend of jsonwebtoken to use
1 parent bcf2588 commit cc25ab7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ futures-channel = "0.3.31"
3333
futures-util = { version = "0.3.31", default-features = false, features = ["io"] }
3434

3535
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
36-
jsonwebtoken = { version = "10.2.0", default-features = false, features = ["aws_lc_rs"]}
36+
jsonwebtoken = { version = "10.2.0", default-features = false }
3737
tokio = { version = "1.38", optional = true, features = ["time"] }
3838

3939
[target.'cfg(target_arch = "wasm32")'.dependencies]
@@ -42,10 +42,12 @@ web-sys = "0.3.77"
4242
wasm-bindgen-futures = "0.4"
4343

4444
[features]
45-
default = ["reqwest", "tls"]
45+
default = ["reqwest", "tls", "jwt_aws_lc_rs"]
4646
reqwest = ["dep:reqwest", "dep:tokio", "pin-project-lite", "bytes"]
4747
tls = ["reqwest/rustls-tls"]
4848
futures-unsend = []
49+
jwt_aws_lc_rs = ["jsonwebtoken/aws_lc_rs"]
50+
jwt_rust_crypto = ["jsonwebtoken/rust_crypto"]
4951

5052
[dev-dependencies]
5153
futures-await-test = "0.3"

0 commit comments

Comments
 (0)