[INFO] cloning repository https://github.com/RWZ11/did-system [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RWZ11/did-system" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRWZ11%2Fdid-system", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRWZ11%2Fdid-system'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c30136e748d4450be0b767f065a83600169d18a1 [INFO] building RWZ11/did-system against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRWZ11%2Fdid-system" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/RWZ11/did-system [INFO] finished tweaking git repo https://github.com/RWZ11/did-system [INFO] tweaked toml for git repo https://github.com/RWZ11/did-system written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RWZ11/did-system on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/RWZ11/did-system 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33b1190491f9262301d4887c02f7b7dfa188fa13c97d8030d6e43edd8adc975f [INFO] running `Command { std: "docker" "start" "-a" "33b1190491f9262301d4887c02f7b7dfa188fa13c97d8030d6e43edd8adc975f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33b1190491f9262301d4887c02f7b7dfa188fa13c97d8030d6e43edd8adc975f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33b1190491f9262301d4887c02f7b7dfa188fa13c97d8030d6e43edd8adc975f", kill_on_drop: false }` [INFO] [stdout] 33b1190491f9262301d4887c02f7b7dfa188fa13c97d8030d6e43edd8adc975f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83432ea98664ff6fe01fc68a0bdbf20a0ea709370bd0568905f90ff67a483f11 [INFO] running `Command { std: "docker" "start" "-a" "83432ea98664ff6fe01fc68a0bdbf20a0ea709370bd0568905f90ff67a483f11", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling cc v1.2.24 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling ripemd v0.1.3 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling hyper-util v0.1.13 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling rusqlite v0.30.0 [INFO] [stderr] Compiling did_system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/blockchain/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | CLIENT.as_ref().ok_or_else(|| Error::BlockchainError("Blockchain client not initialized".to_string())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/blockchain/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct TransactionResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/blockchain/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | CLIENT.as_ref().ok_or_else(|| Error::BlockchainError("Blockchain client not initialized".to_string())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/blockchain/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct TransactionResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deactivate_did` is never used [INFO] [stdout] --> src/db/mod.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn deactivate_did(did: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_did` is never used [INFO] [stdout] --> src/did/mod.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn create_did(signing_key: &SigningKey) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_keypair` is never used [INFO] [stdout] --> src/utils.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn generate_keypair() -> SigningKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_signature` is never used [INFO] [stdout] --> src/utils.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn verify_signature( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_base58` is never used [INFO] [stdout] --> src/utils.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn decode_base58(encoded: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InternalError`, `CryptoError`, and `NetworkError` are never constructed [INFO] [stdout] --> src/types.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | InternalError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | CryptoError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | NetworkError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_bytes` is never used [INFO] [stdout] --> src/utils.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn generate_random_bytes(length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256` is never used [INFO] [stdout] --> src/utils.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn sha256(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ripemd160` is never used [INFO] [stdout] --> src/utils.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn ripemd160(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `double_sha256` is never used [INFO] [stdout] --> src/utils.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn double_sha256(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash160` is never used [INFO] [stdout] --> src/utils.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn hash160(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_salt` is never used [INFO] [stdout] --> src/utils.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn generate_salt() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_base58` is never used [INFO] [stdout] --> src/utils.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn is_valid_base58(encoded: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_hex` is never used [INFO] [stdout] --> src/utils.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn is_valid_hex(hex: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_hex` is never used [INFO] [stdout] --> src/utils.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn to_hex(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex` is never used [INFO] [stdout] --> src/utils.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn from_hex(hex: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `store_did_document` and `get_did_document` are never used [INFO] [stdout] --> src/blockchain/mod.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 31 | impl BlockchainClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn store_did_document(&self, document: &DIDDocument) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub async fn get_did_document(&self, did: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `store_did_document` is never used [INFO] [stdout] --> src/blockchain/mod.rs:139:14 [INFO] [stdout] | [INFO] [stdout] 139 | pub async fn store_did_document(document: &DIDDocument) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_did_document` is never used [INFO] [stdout] --> src/blockchain/mod.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | pub async fn get_did_document(did: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_did` is never used [INFO] [stdout] --> src/blockchain/mod.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | pub async fn register_did(did: &str, public_key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DIDStatus` is never used [INFO] [stdout] --> src/types.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum DIDStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] running `Command { std: "docker" "inspect" "83432ea98664ff6fe01fc68a0bdbf20a0ea709370bd0568905f90ff67a483f11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83432ea98664ff6fe01fc68a0bdbf20a0ea709370bd0568905f90ff67a483f11", kill_on_drop: false }` [INFO] [stdout] 83432ea98664ff6fe01fc68a0bdbf20a0ea709370bd0568905f90ff67a483f11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a769f17a362984c0dba447d3dfe9ec6205e1d1a08b26617bad55d059a8a208bf [INFO] running `Command { std: "docker" "start" "-a" "a769f17a362984c0dba447d3dfe9ec6205e1d1a08b26617bad55d059a8a208bf", kill_on_drop: false }` [INFO] [stderr] Compiling did_system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/blockchain/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | CLIENT.as_ref().ok_or_else(|| Error::BlockchainError("Blockchain client not initialized".to_string())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/blockchain/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct TransactionResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InternalError`, `CryptoError`, and `NetworkError` are never constructed [INFO] [stdout] --> src/types.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | InternalError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | CryptoError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | NetworkError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DIDStatus` is never used [INFO] [stdout] --> src/types.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum DIDStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_keypair` is never used [INFO] [stdout] --> src/utils.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn generate_keypair() -> SigningKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_signature` is never used [INFO] [stdout] --> src/utils.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn verify_signature( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_base58` is never used [INFO] [stdout] --> src/utils.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn decode_base58(encoded: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_bytes` is never used [INFO] [stdout] --> src/utils.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn generate_random_bytes(length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256` is never used [INFO] [stdout] --> src/utils.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn sha256(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ripemd160` is never used [INFO] [stdout] --> src/utils.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn ripemd160(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `double_sha256` is never used [INFO] [stdout] --> src/utils.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn double_sha256(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash160` is never used [INFO] [stdout] --> src/utils.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn hash160(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_salt` is never used [INFO] [stdout] --> src/utils.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn generate_salt() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_base58` is never used [INFO] [stdout] --> src/utils.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn is_valid_base58(encoded: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_hex` is never used [INFO] [stdout] --> src/utils.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn is_valid_hex(hex: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_hex` is never used [INFO] [stdout] --> src/utils.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn to_hex(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex` is never used [INFO] [stdout] --> src/utils.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn from_hex(hex: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_did` is never used [INFO] [stdout] --> src/did/mod.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn create_did(signing_key: &SigningKey) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deactivate_did` is never used [INFO] [stdout] --> src/db/mod.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn deactivate_did(did: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/blockchain/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | CLIENT.as_ref().ok_or_else(|| Error::BlockchainError("Blockchain client not initialized".to_string())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/blockchain/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct TransactionResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `store_did_document` and `get_did_document` are never used [INFO] [stdout] --> src/blockchain/mod.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 31 | impl BlockchainClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn store_did_document(&self, document: &DIDDocument) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub async fn get_did_document(&self, did: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `store_did_document` is never used [INFO] [stdout] --> src/blockchain/mod.rs:139:14 [INFO] [stdout] | [INFO] [stdout] 139 | pub async fn store_did_document(document: &DIDDocument) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_did_document` is never used [INFO] [stdout] --> src/blockchain/mod.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | pub async fn get_did_document(did: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_did` is never used [INFO] [stdout] --> src/blockchain/mod.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | pub async fn register_did(did: &str, public_key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/blockchain/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | CLIENT.as_ref().ok_or_else(|| Error::BlockchainError("Blockchain client not initialized".to_string())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/blockchain/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct TransactionResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.53s [INFO] running `Command { std: "docker" "inspect" "a769f17a362984c0dba447d3dfe9ec6205e1d1a08b26617bad55d059a8a208bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a769f17a362984c0dba447d3dfe9ec6205e1d1a08b26617bad55d059a8a208bf", kill_on_drop: false }` [INFO] [stdout] a769f17a362984c0dba447d3dfe9ec6205e1d1a08b26617bad55d059a8a208bf