[INFO] crate jwt-compact-preview 0.3.4 is already in cache [INFO] testing jwt-compact-preview-0.3.4 against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] extracting crate jwt-compact-preview 0.3.4 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate jwt-compact-preview 0.3.4 on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate jwt-compact-preview 0.3.4 [INFO] finished tweaking crates.io crate jwt-compact-preview 0.3.4 [INFO] tweaked toml for crates.io crate jwt-compact-preview 0.3.4 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91ebf963407536ac9d267278823d7313dc3658464a9c8eae8d73b20666899e9f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "91ebf963407536ac9d267278823d7313dc3658464a9c8eae8d73b20666899e9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91ebf963407536ac9d267278823d7313dc3658464a9c8eae8d73b20666899e9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91ebf963407536ac9d267278823d7313dc3658464a9c8eae8d73b20666899e9f", kill_on_drop: false }` [INFO] [stdout] 91ebf963407536ac9d267278823d7313dc3658464a9c8eae8d73b20666899e9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5bfeac427c53294012a65585eebaca2227438dd6adc1517960c914b85684859 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a5bfeac427c53294012a65585eebaca2227438dd6adc1517960c914b85684859", kill_on_drop: false }` [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling subtle v2.2.3 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling smallvec v1.4.1 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling half v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-bigint-dig v0.6.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling syn v1.0.35 [INFO] [stderr] Compiling ed25519-compact v0.1.6 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling sha2 v0.9.1 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling chrono v0.4.13 [INFO] [stderr] Compiling pem v0.8.1 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling zeroize_derive v1.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling zeroize v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling serde_cbor v0.11.1 [INFO] [stderr] Compiling rsa v0.3.0 [INFO] [stderr] Compiling jwt-compact-preview v0.3.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "a5bfeac427c53294012a65585eebaca2227438dd6adc1517960c914b85684859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5bfeac427c53294012a65585eebaca2227438dd6adc1517960c914b85684859", kill_on_drop: false }` [INFO] [stdout] a5bfeac427c53294012a65585eebaca2227438dd6adc1517960c914b85684859 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fc253685b3878024788953135bf36d3e2e08df31ac2baa8c427ca550c5724d7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6fc253685b3878024788953135bf36d3e2e08df31ac2baa8c427ca550c5724d7", kill_on_drop: false }` [INFO] [stderr] Compiling assert_matches v1.3.0 [INFO] [stderr] Compiling hex-buffer-serde v0.2.1 [INFO] [stderr] Compiling jwt-compact-preview v0.3.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 11.31s [INFO] running `Command { std: "docker" "inspect" "6fc253685b3878024788953135bf36d3e2e08df31ac2baa8c427ca550c5724d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fc253685b3878024788953135bf36d3e2e08df31ac2baa8c427ca550c5724d7", kill_on_drop: false }` [INFO] [stdout] 6fc253685b3878024788953135bf36d3e2e08df31ac2baa8c427ca550c5724d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b123b0266444cb0391d9fa0bba3ca3b282d6c97897e7b6067c3ae65f1473723e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b123b0266444cb0391d9fa0bba3ca3b282d6c97897e7b6067c3ae65f1473723e", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.44s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/jwt_compact_preview-952b0ffb4ebe47b9 [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test claims::tests::expired_claim ... ok [INFO] [stdout] test claims::tests::immature_claim ... ok [INFO] [stdout] test claims::tests::empty_claims_can_be_serialized ... ok [INFO] [stdout] test tests::base64_error_during_parsing ... ok [INFO] [stdout] test tests::unsupported_content_type ... ok [INFO] [stdout] test tests::malformed_json_claims ... ok [INFO] [stdout] test tests::malformed_header ... ok [INFO] [stdout] test tests::invalid_token_structure ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/algorithms-ababb0487d4eaf15 [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test hs256_reference ... ok [INFO] [stdout] test ed25519_reference ... ok [INFO] [stdout] test compact_token_hs256 ... ok [INFO] [stdout] test hs384_reference ... ok [INFO] [stdout] test hs512_reference ... ok [INFO] [stdout] test hs256_algorithm ... ok [INFO] [stdout] test hs384_algorithm ... ok [INFO] [stdout] test hs512_algorithm ... ok [INFO] [stdout] test ed25519_algorithm ... ok [INFO] [stdout] test ps256_algorithm ... test ps256_algorithm has been running for over 60 seconds [INFO] [stdout] test rs256_algorithm ... test rs256_algorithm has been running for over 60 seconds [INFO] [stdout] test ps512_algorithm ... test ps512_algorithm has been running for over 60 seconds [INFO] [stdout] test rs384_algorithm ... test rs384_algorithm has been running for over 60 seconds [INFO] [stdout] test rs512_algorithm ... test rs512_algorithm has been running for over 60 seconds [INFO] [stdout] test ps384_algorithm ... test ps384_algorithm has been running for over 60 seconds [INFO] [stdout] test ps256_algorithm ... ok [INFO] [stdout] test rs384_algorithm ... ok [INFO] [stdout] test rs256_algorithm ... ok [INFO] [stdout] test ps384_algorithm ... ok [INFO] [stdout] test rs512_algorithm ... ok [INFO] [stderr] Doc-tests jwt-compact-preview [INFO] [stdout] test ps512_algorithm ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - Renamed (line 217) ... FAILED [INFO] [stdout] test src/lib.rs - (line 64) ... FAILED [INFO] [stdout] test src/lib.rs - (line 114) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Renamed (line 217) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `jwt_compact` [INFO] [stdout] --> src/lib.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 3 | use jwt_compact::{alg::{Hs256, Hs256Key}, prelude::*, Empty, Renamed}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type or module `jwt_compact` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `jwt_compact::alg::Hs256`, `jwt_compact::alg::Hs256Key`, `jwt_compact` [INFO] [stdout] --> src/lib.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 3 | use jwt_compact::{alg::{Hs256, Hs256Key}, prelude::*, Empty, Renamed}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type or module `jwt_compact` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Hs256` in this scope [INFO] [stdout] --> src/lib.rs:221:24 [INFO] [stdout] | [INFO] [stdout] 6 | let alg = Renamed::new(Hs256, "HS2"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Hs256Key` [INFO] [stdout] --> src/lib.rs:222:11 [INFO] [stdout] | [INFO] [stdout] 7 | let key = Hs256Key::from(b"super_secret_key_donut_steel" as &[_]); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256Key; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Header` [INFO] [stdout] --> src/lib.rs:223:30 [INFO] [stdout] | [INFO] [stdout] 8 | let token_string = alg.token(Header::default(), &Claims::empty(), &key).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Header; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Claims` [INFO] [stdout] --> src/lib.rs:223:50 [INFO] [stdout] | [INFO] [stdout] 8 | let token_string = alg.token(Header::default(), &Claims::empty(), &key).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Claims; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `UntrustedToken` [INFO] [stdout] --> src/lib.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 10 | let token = UntrustedToken::try_from(token_string.as_str()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::UntrustedToken; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Hs256` in this scope [INFO] [stdout] --> src/lib.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 14 | assert!(Hs256.validate_integrity::(&token, &key).is_err()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 64) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `jwt_compact` [INFO] [stdout] --> src/lib.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 3 | use jwt_compact::{prelude::*, alg::{Hs256, Hs256Key}}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type or module `jwt_compact` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `jwt_compact::alg::Hs256`, `jwt_compact::alg::Hs256Key` [INFO] [stdout] --> src/lib.rs:66:37 [INFO] [stdout] | [INFO] [stdout] 3 | use jwt_compact::{prelude::*, alg::{Hs256, Hs256Key}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Hs256Key` [INFO] [stdout] --> src/lib.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 18 | let key = Hs256Key::from(b"super_secret_key_donut_steel" as &[_]); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256Key; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Header` in this scope [INFO] [stdout] --> src/lib.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 20 | let header = Header { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::CreationError::Header; [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Header; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Claims` [INFO] [stdout] --> src/lib.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 24 | let claims = Claims::new(CustomClaims { subject: "alice".to_owned() }) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Claims; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Hs256` in this scope [INFO] [stdout] --> src/lib.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 27 | let token_string = Hs256.token(header, &claims, &key)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `UntrustedToken` [INFO] [stdout] --> src/lib.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 31 | let token = UntrustedToken::try_from(token_string.as_str())?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::UntrustedToken; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lib.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 36 | let token: Token = Hs256.validate_integrity(&token, &key)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Hs256` in this scope [INFO] [stdout] --> src/lib.rs:99:34 [INFO] [stdout] | [INFO] [stdout] 36 | let token: Token = Hs256.validate_integrity(&token, &key)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `TimeOptions` [INFO] [stdout] --> src/lib.rs:103:26 [INFO] [stdout] | [INFO] [stdout] 40 | .validate_expiration(TimeOptions::default())? [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::TimeOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `TimeOptions` [INFO] [stdout] --> src/lib.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 41 | .validate_maturity(TimeOptions::default())?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::TimeOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 114) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `jwt_compact` [INFO] [stdout] --> src/lib.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt_compact::{prelude::*, alg::{Hs256, Hs256Key}}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type or module `jwt_compact` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `jwt_compact::alg::Hs256`, `jwt_compact::alg::Hs256Key` [INFO] [stdout] --> src/lib.rs:117:37 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt_compact::{prelude::*, alg::{Hs256, Hs256Key}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Hs256Key` [INFO] [stdout] --> src/lib.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 19 | let key = Hs256Key::from(b"super_secret_key_donut_steel" as &[_]); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256Key; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Claims` [INFO] [stdout] --> src/lib.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 20 | let claims = Claims::new(CustomClaims { subject: [111; 32] }) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Claims; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Hs256` in this scope [INFO] [stdout] --> src/lib.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 22 | let token = Hs256.token(Header::default(), &claims, &key)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Header` [INFO] [stdout] --> src/lib.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 22 | let token = Hs256.token(Header::default(), &claims, &key)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Header; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Hs256` in this scope [INFO] [stdout] --> src/lib.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 24 | let compact_token = Hs256.compact_token(Header::default(), &claims, &key)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Header` [INFO] [stdout] --> src/lib.rs:137:41 [INFO] [stdout] | [INFO] [stdout] 24 | let compact_token = Hs256.compact_token(Header::default(), &claims, &key)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Header; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `UntrustedToken` [INFO] [stdout] --> src/lib.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 29 | let token = UntrustedToken::try_from(compact_token.as_str())?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::UntrustedToken; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lib.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 30 | let token: Token = Hs256.validate_integrity(&token, &key)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Hs256` in this scope [INFO] [stdout] --> src/lib.rs:143:34 [INFO] [stdout] | [INFO] [stdout] 30 | let token: Token = Hs256.validate_integrity(&token, &key)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::alg::Hs256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `TimeOptions` [INFO] [stdout] --> src/lib.rs:144:36 [INFO] [stdout] | [INFO] [stdout] 31 | token.claims().validate_expiration(TimeOptions::default())?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_compact_preview::TimeOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 114) [INFO] [stdout] src/lib.rs - (line 64) [INFO] [stdout] src/lib.rs - Renamed (line 217) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "b123b0266444cb0391d9fa0bba3ca3b282d6c97897e7b6067c3ae65f1473723e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b123b0266444cb0391d9fa0bba3ca3b282d6c97897e7b6067c3ae65f1473723e", kill_on_drop: false }` [INFO] [stdout] b123b0266444cb0391d9fa0bba3ca3b282d6c97897e7b6067c3ae65f1473723e