[INFO] fetching crate gel-jwt 0.1.4... [INFO] testing gel-jwt-0.1.4 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate gel-jwt 0.1.4 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate gel-jwt 0.1.4 [INFO] finished tweaking crates.io crate gel-jwt 0.1.4 [INFO] tweaked toml for crates.io crate gel-jwt 0.1.4 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gel-jwt 0.1.4 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gel-jwt 0.1.4 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2ea076e1b02368190a53fa7be29d6e23b9691b181651c1188003668cf097c2f [INFO] running `Command { std: "docker" "start" "-a" "e2ea076e1b02368190a53fa7be29d6e23b9691b181651c1188003668cf097c2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2ea076e1b02368190a53fa7be29d6e23b9691b181651c1188003668cf097c2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2ea076e1b02368190a53fa7be29d6e23b9691b181651c1188003668cf097c2f", kill_on_drop: false }` [INFO] [stdout] e2ea076e1b02368190a53fa7be29d6e23b9691b181651c1188003668cf097c2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c1caa3b7d82aea4e2a9d9b59f8d907189552a67cd4b6e1643a632ccee4eb3ee [INFO] running `Command { std: "docker" "start" "-a" "5c1caa3b7d82aea4e2a9d9b59f8d907189552a67cd4b6e1643a632ccee4eb3ee", kill_on_drop: false }` [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling cc v1.2.37 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling serdect v0.2.0 [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 jsonwebtoken v9.3.1 [INFO] [stderr] Compiling rfc6979 v0.4.0 [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 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.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.72s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "5c1caa3b7d82aea4e2a9d9b59f8d907189552a67cd4b6e1643a632ccee4eb3ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c1caa3b7d82aea4e2a9d9b59f8d907189552a67cd4b6e1643a632ccee4eb3ee", kill_on_drop: false }` [INFO] [stdout] 5c1caa3b7d82aea4e2a9d9b59f8d907189552a67cd4b6e1643a632ccee4eb3ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb0efbf7a7ba0ffe180466bc4bb000a873272b84567b9a4bee33e316a28c2a6a [INFO] running `Command { std: "docker" "start" "-a" "eb0efbf7a7ba0ffe180466bc4bb000a873272b84567b9a4bee33e316a28c2a6a", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling condtype v1.3.0 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rstest_macros v0.25.0 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling terminal_size v0.4.3 [INFO] [stderr] Compiling clap_builder v4.5.47 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling clap v4.5.47 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [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 regex v1.11.2 [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.143 [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 block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [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 jsonwebtoken v9.3.1 [INFO] [stderr] Compiling rfc6979 v0.4.0 [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.4 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `DEFAULT_GEN_RSA_KEY_BITS` in this scope [INFO] [stdout] --> src/bare_key.rs:1127:47 [INFO] [stdout] | [INFO] [stdout] 1127 | 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:1297: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] 1297 | 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] 535 | / pub fn from_jwt_rsa( [INFO] [stdout] 536 | | n: &str, [INFO] [stdout] 537 | | e: &str, [INFO] [stdout] 538 | | d: &str, [INFO] [stdout] ... | [INFO] [stdout] 543 | | qinv: &str, [INFO] [stdout] 544 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] ... [INFO] [stdout] 574 | 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:1304: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] 1304 | 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] 535 | / pub fn from_jwt_rsa( [INFO] [stdout] 536 | | n: &str, [INFO] [stdout] 537 | | e: &str, [INFO] [stdout] 538 | | d: &str, [INFO] [stdout] ... | [INFO] [stdout] 543 | | qinv: &str, [INFO] [stdout] 544 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] ... [INFO] [stdout] 574 | 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:1315: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] 1315 | 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] 535 | / pub fn from_jwt_rsa( [INFO] [stdout] 536 | | n: &str, [INFO] [stdout] 537 | | e: &str, [INFO] [stdout] 538 | | d: &str, [INFO] [stdout] ... | [INFO] [stdout] 543 | | qinv: &str, [INFO] [stdout] 544 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] ... [INFO] [stdout] 574 | 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[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | .map_err(|e| e.error_string_not_for_user()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 205 | .map_err(|e: /* Type */| e.error_string_not_for_user()) [INFO] [stdout] | ++++++++++++ [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: E0282, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gel-jwt` (lib test) due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "eb0efbf7a7ba0ffe180466bc4bb000a873272b84567b9a4bee33e316a28c2a6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb0efbf7a7ba0ffe180466bc4bb000a873272b84567b9a4bee33e316a28c2a6a", kill_on_drop: false }` [INFO] [stdout] eb0efbf7a7ba0ffe180466bc4bb000a873272b84567b9a4bee33e316a28c2a6a