[INFO] fetching crate gel-jwt 0.1.3... [INFO] checking gel-jwt-0.1.3 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate gel-jwt 0.1.3 into /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gel-jwt 0.1.3 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4704c0ddf2238253b0091d4742b17f9f86c90c12637271402cb0cbfcccf6db4 [INFO] running `Command { std: "docker" "start" "-a" "b4704c0ddf2238253b0091d4742b17f9f86c90c12637271402cb0cbfcccf6db4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4704c0ddf2238253b0091d4742b17f9f86c90c12637271402cb0cbfcccf6db4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4704c0ddf2238253b0091d4742b17f9f86c90c12637271402cb0cbfcccf6db4", kill_on_drop: false }` [INFO] [stdout] b4704c0ddf2238253b0091d4742b17f9f86c90c12637271402cb0cbfcccf6db4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb264fe101200c86c204ec40b58497a96d929b45f12acf27d4f42e9f30db02f0 [INFO] running `Command { std: "docker" "start" "-a" "bb264fe101200c86c204ec40b58497a96d929b45f12acf27d4f42e9f30db02f0", kill_on_drop: false }` [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling winnow v0.7.10 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking serdect v0.2.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling rstest_macros v0.25.0 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling divan-macros v0.1.21 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking condtype v1.3.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking regex-lite v0.1.6 [INFO] [stderr] Checking hex-literal v0.4.1 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking terminal_size v0.4.2 [INFO] [stderr] Checking clap_builder v4.5.39 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling toml_edit v0.22.26 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Checking clap v4.5.39 [INFO] [stderr] Checking divan v0.1.21 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking gel-jwt v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking rstest v0.25.0 [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `PrivateKey` in the current scope [INFO] [stdout] --> benches/encode.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | let key = PrivateKey::generate(None, key_type).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `PrivateKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `PrivateKey`, consider using `PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> /opt/rustwide/workdir/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] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `PrivateKey` in the current scope [INFO] [stdout] --> benches/encode.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | let key = PrivateKey::generate(None, key_type).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `PrivateKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `PrivateKey`, consider using `PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> /opt/rustwide/workdir/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] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `PrivateKey` in the current scope [INFO] [stdout] --> benches/encode.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | let key = PrivateKey::generate(None, key_type).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `PrivateKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `PrivateKey`, consider using `PrivateKey::from_bare_private_key` which returns `Result` [INFO] [stdout] --> /opt/rustwide/workdir/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] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gel-jwt` (bench "encode") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "bb264fe101200c86c204ec40b58497a96d929b45f12acf27d4f42e9f30db02f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb264fe101200c86c204ec40b58497a96d929b45f12acf27d4f42e9f30db02f0", kill_on_drop: false }` [INFO] [stdout] bb264fe101200c86c204ec40b58497a96d929b45f12acf27d4f42e9f30db02f0