[INFO] fetching crate gel-jwt 0.1.3... [INFO] testing gel-jwt-0.1.3 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate gel-jwt 0.1.3 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate gel-jwt 0.1.3 [INFO] finished tweaking crates.io crate gel-jwt 0.1.3 [INFO] tweaked toml for crates.io crate gel-jwt 0.1.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate gel-jwt 0.1.3 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gel-jwt 0.1.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pyo3-build-config v0.23.5 [INFO] [stderr] Downloaded pyo3-macros v0.23.5 [INFO] [stderr] Downloaded rstest v0.25.0 [INFO] [stderr] Downloaded pyo3-ffi v0.23.5 [INFO] [stderr] Downloaded pyo3-macros-backend v0.23.5 [INFO] [stderr] Downloaded rstest_macros v0.25.0 [INFO] [stderr] Downloaded pyo3 v0.23.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 754f6b84050ded4de930d39da7787e0e6053d1a76b527f5a9cee59f193e12210 [INFO] running `Command { std: "docker" "start" "-a" "754f6b84050ded4de930d39da7787e0e6053d1a76b527f5a9cee59f193e12210", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "754f6b84050ded4de930d39da7787e0e6053d1a76b527f5a9cee59f193e12210", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "754f6b84050ded4de930d39da7787e0e6053d1a76b527f5a9cee59f193e12210", kill_on_drop: false }` [INFO] [stdout] 754f6b84050ded4de930d39da7787e0e6053d1a76b527f5a9cee59f193e12210 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 50af5b55e0dcea3b42ca3b1495b30752a51d8094d9bbfb91f7d9b8847b92915f [INFO] running `Command { std: "docker" "start" "-a" "50af5b55e0dcea3b42ca3b1495b30752a51d8094d9bbfb91f7d9b8847b92915f", kill_on_drop: false }` [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling serdect v0.2.0 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling gel-jwt v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.31s [INFO] running `Command { std: "docker" "inspect" "50af5b55e0dcea3b42ca3b1495b30752a51d8094d9bbfb91f7d9b8847b92915f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50af5b55e0dcea3b42ca3b1495b30752a51d8094d9bbfb91f7d9b8847b92915f", kill_on_drop: false }` [INFO] [stdout] 50af5b55e0dcea3b42ca3b1495b30752a51d8094d9bbfb91f7d9b8847b92915f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 70febce0e0aa4cafde195d08f45ae2bbb9bb1bcb25afa0a7e387bc32fb0c0d13 [INFO] running `Command { std: "docker" "start" "-a" "70febce0e0aa4cafde195d08f45ae2bbb9bb1bcb25afa0a7e387bc32fb0c0d13", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling rstest_macros v0.25.0 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling hex-literal v0.4.1 [INFO] [stderr] Compiling clap_builder v4.5.39 [INFO] [stderr] Compiling clap v4.5.39 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling divan-macros v0.1.21 [INFO] [stderr] Compiling divan v0.1.21 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling rstest v0.25.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serdect v0.2.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling gel-jwt v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `DEFAULT_GEN_RSA_KEY_BITS` in this scope [INFO] [stdout] --> src/bare_key.rs:1129:47 [INFO] [stdout] | [INFO] [stdout] 1129 | let rsa = optional_openssl_rsa_keygen(DEFAULT_GEN_RSA_KEY_BITS); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `bare_key::BarePrivateKey` in the current scope [INFO] [stdout] --> src/bare_key.rs:1299:35 [INFO] [stdout] | [INFO] [stdout] 355 | pub struct BarePrivateKey { [INFO] [stdout] | ------------------------- function or associated item `generate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 1299 | let key = BarePrivateKey::generate(KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `bare_key::BarePrivateKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `bare_key::BarePrivateKey` consider using one of the following associated functions: [INFO] [stdout] bare_key::BarePrivateKey::from_unvalidated [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_ec [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_rsa [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_oct [INFO] [stdout] and 2 others [INFO] [stdout] --> src/bare_key.rs:461:5 [INFO] [stdout] | [INFO] [stdout] 461 | fn from_unvalidated(inner: BarePrivateKeyInner) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | pub fn from_jwt_ec(crv: &str, d: &str, x: &str, y: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 536 | / pub fn from_jwt_rsa( [INFO] [stdout] 537 | | n: &str, [INFO] [stdout] 538 | | e: &str, [INFO] [stdout] 539 | | d: &str, [INFO] [stdout] ... | [INFO] [stdout] 544 | | qinv: &str, [INFO] [stdout] 545 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] ... [INFO] [stdout] 575 | pub fn from_jwt_oct(k: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `bare_key::BarePrivateKey` in the current scope [INFO] [stdout] --> src/bare_key.rs:1306:35 [INFO] [stdout] | [INFO] [stdout] 355 | pub struct BarePrivateKey { [INFO] [stdout] | ------------------------- function or associated item `generate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 1306 | let key = BarePrivateKey::generate(KeyType::ES256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `bare_key::BarePrivateKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `bare_key::BarePrivateKey` consider using one of the following associated functions: [INFO] [stdout] bare_key::BarePrivateKey::from_unvalidated [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_ec [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_rsa [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_oct [INFO] [stdout] and 2 others [INFO] [stdout] --> src/bare_key.rs:461:5 [INFO] [stdout] | [INFO] [stdout] 461 | fn from_unvalidated(inner: BarePrivateKeyInner) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | pub fn from_jwt_ec(crv: &str, d: &str, x: &str, y: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 536 | / pub fn from_jwt_rsa( [INFO] [stdout] 537 | | n: &str, [INFO] [stdout] 538 | | e: &str, [INFO] [stdout] 539 | | d: &str, [INFO] [stdout] ... | [INFO] [stdout] 544 | | qinv: &str, [INFO] [stdout] 545 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] ... [INFO] [stdout] 575 | pub fn from_jwt_oct(k: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `bare_key::BarePrivateKey` in the current scope [INFO] [stdout] --> src/bare_key.rs:1317:35 [INFO] [stdout] | [INFO] [stdout] 355 | pub struct BarePrivateKey { [INFO] [stdout] | ------------------------- function or associated item `generate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 1317 | let key = BarePrivateKey::generate(KeyType::RS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `bare_key::BarePrivateKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `bare_key::BarePrivateKey` consider using one of the following associated functions: [INFO] [stdout] bare_key::BarePrivateKey::from_unvalidated [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_ec [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_rsa [INFO] [stdout] bare_key::BarePrivateKey::from_jwt_oct [INFO] [stdout] and 2 others [INFO] [stdout] --> src/bare_key.rs:461:5 [INFO] [stdout] | [INFO] [stdout] 461 | fn from_unvalidated(inner: BarePrivateKeyInner) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | pub fn from_jwt_ec(crv: &str, d: &str, x: &str, y: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 536 | / pub fn from_jwt_rsa( [INFO] [stdout] 537 | | n: &str, [INFO] [stdout] 538 | | e: &str, [INFO] [stdout] 539 | | d: &str, [INFO] [stdout] ... | [INFO] [stdout] 544 | | qinv: &str, [INFO] [stdout] 545 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] ... [INFO] [stdout] 575 | pub fn from_jwt_oct(k: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:121:38 [INFO] [stdout] | [INFO] [stdout] 121 | registry.add_key(PrivateKey::generate(Some("1".to_owned()), KeyType::HS256).unwrap()); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:122:38 [INFO] [stdout] | [INFO] [stdout] 122 | registry.add_key(PrivateKey::generate(Some("2".to_owned()), KeyType::HS256).unwrap()); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:123:38 [INFO] [stdout] | [INFO] [stdout] 123 | registry.add_key(PrivateKey::generate(Some("3".to_owned()), KeyType::HS256).unwrap()); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:142:31 [INFO] [stdout] | [INFO] [stdout] 142 | let key = PrivateKey::generate(Some("1".to_owned()), KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:157:31 [INFO] [stdout] | [INFO] [stdout] 157 | let key = PrivateKey::generate(Some("1".to_owned()), KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:163:32 [INFO] [stdout] | [INFO] [stdout] 163 | let key2 = PrivateKey::generate(Some("1".to_owned()), KeyType::RS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:172:31 [INFO] [stdout] | [INFO] [stdout] 172 | let key = PrivateKey::generate(Some("1".to_owned()), KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 192 | let key = PrivateKey::generate(Some("1".to_owned()), KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:329:36 [INFO] [stdout] | [INFO] [stdout] 329 | let mut key1 = PrivateKey::generate(Some("1".to_owned()), KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:330:36 [INFO] [stdout] | [INFO] [stdout] 330 | let mut key2 = PrivateKey::generate(Some("2".to_owned()), KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `key::PrivateKey` in the current scope [INFO] [stdout] --> src/lib.rs:360:31 [INFO] [stdout] | [INFO] [stdout] 360 | let key = PrivateKey::generate(Some("1".to_owned()), KeyType::HS256).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `key::PrivateKey` [INFO] [stdout] | [INFO] [stdout] ::: src/key.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PrivateKey { [INFO] [stdout] | --------------------- function or associated item `generate` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `key::PrivateKey`, consider using `key::PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> src/key.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn from_bare_private_key( [INFO] [stdout] 51 | | kid: Option, [INFO] [stdout] 52 | | key: BarePrivateKey, [INFO] [stdout] 53 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `generate`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BlockRngCore` [INFO] [stdout] candidate #2: `GenericSequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gel-jwt` (lib test) due to 15 previous errors [INFO] running `Command { std: "docker" "inspect" "70febce0e0aa4cafde195d08f45ae2bbb9bb1bcb25afa0a7e387bc32fb0c0d13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70febce0e0aa4cafde195d08f45ae2bbb9bb1bcb25afa0a7e387bc32fb0c0d13", kill_on_drop: false }` [INFO] [stdout] 70febce0e0aa4cafde195d08f45ae2bbb9bb1bcb25afa0a7e387bc32fb0c0d13