File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 - run : |
6666 rustup default stable
6767 rustup target add wasm32-unknown-unknown
68- cargo build --target=wasm32-unknown-unknown --no-default-features
68+ cargo build --target=wasm32-unknown-unknown --no-default-features -F jwt-rust-crypto
6969
7070 clippy :
7171 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ futures = { version = "0.3.15" }
4040futures-core = { version = " 0.3" , optional = true }
4141futures-util = { version = " 0.3" , optional = true }
4242getrandom = { version = " 0.2.15" , features = [" js" ] }
43- jsonwebtoken = { version = " 10" , features = [ " rust_crypto " ] }
43+ jsonwebtoken = { version = " 10" , default- features = false , features = [ " use_pem " ] }
4444http = " 1.0.0"
4545http-body = " 1.0.0"
4646http-body-util = " 0.1.0"
@@ -99,13 +99,16 @@ default = [
9999 " tracing" ,
100100 " default-client" ,
101101 " rustls-ring" ,
102+ " jwt-rust-crypto" ,
102103]
103104
104105follow-redirect = [" tower-http/follow-redirect" ]
105106retry = [" tower/retry" , " futures-util" ]
106107rustls = [" hyper-rustls" ]
107108rustls-ring = [" hyper-rustls/ring" ]
108109rustls-aws-lc-rs = [" hyper-rustls/aws-lc-rs" ]
110+ jwt-aws-lc-rs = [" jsonwebtoken/aws_lc_rs" ]
111+ jwt-rust-crypto = [" jsonwebtoken/rust_crypto" ]
109112rustls-webpki-tokio = [" hyper-rustls/webpki-tokio" ]
110113opentls = [" hyper-tls" ]
111114stream = [" futures-core" , " futures-util" ]
Original file line number Diff line number Diff line change @@ -295,6 +295,14 @@ pub use self::{
295295 page:: Page ,
296296} ;
297297
298+ #[ cfg( all( feature = "jwt-rust-crypto" , feature = "jwt-aws-lc-rs" ) ) ]
299+ compile_error ! (
300+ "feature \" jwt-rust-crypto\" and feature \" jwt-aws-lc-rs\" cannot be enabled at the same time"
301+ ) ;
302+
303+ #[ cfg( not( any( feature = "jwt-rust-crypto" , feature = "jwt-aws-lc-rs" ) ) ) ]
304+ compile_error ! ( "at least one of the features \" jwt-rust-crypto\" and feature \" jwt-aws-lc-rs\" must be enabled" ) ;
305+
298306/// A convenience type with a default error type of [`Error`].
299307pub type Result < T , E = error:: Error > = std:: result:: Result < T , E > ;
300308
You can’t perform that action at this time.
0 commit comments