[INFO] cloning repository https://github.com/razizian/Secure-Gateway-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/razizian/Secure-Gateway-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frazizian%2FSecure-Gateway-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frazizian%2FSecure-Gateway-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76436a25d1b44b4634a7237fca6a33c7d2c2eaed [INFO] building razizian/Secure-Gateway-Rust against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frazizian%2FSecure-Gateway-Rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 37% (941/2536) Updating files: 38% (964/2536) Updating files: 39% (990/2536) Updating files: 40% (1015/2536) Updating files: 41% (1040/2536) Updating files: 42% (1066/2536) Updating files: 42% (1085/2536) Updating files: 43% (1091/2536) Updating files: 44% (1116/2536) Updating files: 44% (1125/2536) Updating files: 45% (1142/2536) Updating files: 46% (1167/2536) Updating files: 47% (1192/2536) Updating files: 48% (1218/2536) Updating files: 49% (1243/2536) Updating files: 50% (1268/2536) Updating files: 50% (1292/2536) Updating files: 51% (1294/2536) Updating files: 52% (1319/2536) Updating files: 53% (1345/2536) Updating files: 54% (1370/2536) Updating files: 55% (1395/2536) Updating files: 56% (1421/2536) Updating files: 57% (1446/2536) Updating files: 58% (1471/2536) Updating files: 59% (1497/2536) Updating files: 60% (1522/2536) Updating files: 61% (1547/2536) Updating files: 62% (1573/2536) Updating files: 63% (1598/2536) Updating files: 64% (1624/2536) Updating files: 65% (1649/2536) Updating files: 66% (1674/2536) Updating files: 67% (1700/2536) Updating files: 68% (1725/2536) Updating files: 69% (1750/2536) Updating files: 70% (1776/2536) Updating files: 71% (1801/2536) Updating files: 72% (1826/2536) Updating files: 73% (1852/2536) Updating files: 74% (1877/2536) Updating files: 75% (1902/2536) Updating files: 76% (1928/2536) Updating files: 77% (1953/2536) Updating files: 78% (1979/2536) Updating files: 79% (2004/2536) Updating files: 80% (2029/2536) Updating files: 80% (2054/2536) Updating files: 81% (2055/2536) Updating files: 82% (2080/2536) Updating files: 83% (2105/2536) Updating files: 84% (2131/2536) Updating files: 85% (2156/2536) Updating files: 86% (2181/2536) Updating files: 87% (2207/2536) Updating files: 88% (2232/2536) Updating files: 89% (2258/2536) Updating files: 90% (2283/2536) Updating files: 91% (2308/2536) Updating files: 92% (2334/2536) Updating files: 93% (2359/2536) Updating files: 94% (2384/2536) Updating files: 95% (2410/2536) Updating files: 96% (2435/2536) Updating files: 97% (2460/2536) Updating files: 98% (2486/2536) Updating files: 99% (2511/2536) Updating files: 100% (2536/2536) Updating files: 100% (2536/2536), done. [INFO] validating manifest of git repo https://github.com/razizian/Secure-Gateway-Rust on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/razizian/Secure-Gateway-Rust [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/razizian/Secure-Gateway-Rust [INFO] tweaked toml for git repo https://github.com/razizian/Secure-Gateway-Rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/razizian/Secure-Gateway-Rust 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e3ace84f7e7ee8ec4f072efb0caec1bebf7e11e8661332bacaef5f6eaac101c [INFO] running `Command { std: "docker" "start" "-a" "3e3ace84f7e7ee8ec4f072efb0caec1bebf7e11e8661332bacaef5f6eaac101c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e3ace84f7e7ee8ec4f072efb0caec1bebf7e11e8661332bacaef5f6eaac101c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e3ace84f7e7ee8ec4f072efb0caec1bebf7e11e8661332bacaef5f6eaac101c", kill_on_drop: false }` [INFO] [stdout] 3e3ace84f7e7ee8ec4f072efb0caec1bebf7e11e8661332bacaef5f6eaac101c [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b1420cb13241b82d10e280dea77fc5a58a922c526e980ab87c8e10ca01a04a65 [INFO] running `Command { std: "docker" "start" "-a" "b1420cb13241b82d10e280dea77fc5a58a922c526e980ab87c8e10ca01a04a65", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling dlv-list v0.3.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling ordered-multimap v0.4.3 [INFO] [stderr] Compiling float-cmp v0.9.0 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling poly1305 v0.8.0 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rust-ini v0.18.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling predicates v2.1.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling chacha20 v0.9.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling pest v2.8.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling fragile v2.0.1 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling tempfile v3.19.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling pest_meta v2.8.0 [INFO] [stderr] Compiling pest_generator v2.8.0 [INFO] [stderr] Compiling mockall v0.11.4 [INFO] [stderr] Compiling pest_derive v2.8.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling ron v0.7.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling config v0.13.4 [INFO] [stderr] Compiling secure-gateway v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/gateway/mod.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use anyhow::{anyhow, Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/gateway/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/protocols/ethernet_ip/parser.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, bail, Context, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf` and `Bytes` [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, bail, Context, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IResult`, `be_u16`, `be_u8`, `bytes::complete::take`, `map`, `sequence::tuple`, and `verify` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | bytes::complete::take, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | combinator::{map, verify}, [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] 12 | number::complete::{be_u16, be_u8}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] 13 | sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | IResult, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf` and `Bytes` [INFO] [stdout] --> src/protocols/mil_std_1553/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> src/protocols/mil_std_1553/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/security/key_manager.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/security/key_manager.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/security/crypto.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AeadCore` [INFO] [stdout] --> src/security/crypto.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | aead::{Aead, AeadCore, KeyInit}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignatureError` [INFO] [stdout] --> src/security/crypto.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | Signature, SignatureError, Signer, SigningKey, Verifier, VerifyingKey, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_tx` [INFO] [stdout] --> src/gateway/mod.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | command_tx: &mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule` [INFO] [stdout] --> src/gateway/router.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let rule = self.rules.remove(idx); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enc_key` [INFO] [stdout] --> src/gateway/mod.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let enc_key = self.config.security.default_encryption_key.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enc_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_key` [INFO] [stdout] --> src/gateway/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let sign_key = self.config.security.default_signing_key.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rt_addr` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let rt_addr = ((cmd >> 11) & 0x1F) as u8; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rt_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_count` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let word_count = (cmd & 0x1F) as u8; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instrumentation` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let instrumentation = (word >> 8) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instrumentation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `service_request` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let service_request = (word >> 7) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handlers` is never read [INFO] [stdout] --> src/gateway/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Gateway { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | handlers: HashMap>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_counter` is never read [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct EthernetIpHandler { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 210 | // Configuration could go here [INFO] [stdout] 211 | session_counter: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_session` is never used [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 214 | impl EthernetIpHandler { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | fn next_session(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_ethernet_ip` is never used [INFO] [stdout] --> src/protocols/ethernet_ip/parser.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn validate_ethernet_ip(data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_command_word` is never used [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn validate_command_word(word: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_status_word` is never used [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn validate_status_word(word: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 34s [INFO] running `Command { std: "docker" "inspect" "b1420cb13241b82d10e280dea77fc5a58a922c526e980ab87c8e10ca01a04a65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1420cb13241b82d10e280dea77fc5a58a922c526e980ab87c8e10ca01a04a65", kill_on_drop: false }` [INFO] [stdout] b1420cb13241b82d10e280dea77fc5a58a922c526e980ab87c8e10ca01a04a65 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a84bfe15c0fd0ac0c15339b2e1ac4c725ba6778e7dab1386051c430aa4d935e [INFO] running `Command { std: "docker" "start" "-a" "6a84bfe15c0fd0ac0c15339b2e1ac4c725ba6778e7dab1386051c430aa4d935e", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/gateway/mod.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use anyhow::{anyhow, Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/gateway/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/protocols/ethernet_ip/parser.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, bail, Context, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf` and `Bytes` [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, bail, Context, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IResult`, `be_u16`, `be_u8`, `bytes::complete::take`, `map`, `sequence::tuple`, and `verify` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | bytes::complete::take, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | combinator::{map, verify}, [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] 12 | number::complete::{be_u16, be_u8}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] 13 | sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | IResult, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf` and `Bytes` [INFO] [stdout] --> src/protocols/mil_std_1553/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling secure-gateway v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> src/protocols/mil_std_1553/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/security/key_manager.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/security/key_manager.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/security/crypto.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AeadCore` [INFO] [stdout] --> src/security/crypto.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | aead::{Aead, AeadCore, KeyInit}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignatureError` [INFO] [stdout] --> src/security/crypto.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | Signature, SignatureError, Signer, SigningKey, Verifier, VerifyingKey, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_tx` [INFO] [stdout] --> src/gateway/mod.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | command_tx: &mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule` [INFO] [stdout] --> src/gateway/router.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let rule = self.rules.remove(idx); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enc_key` [INFO] [stdout] --> src/gateway/mod.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let enc_key = self.config.security.default_encryption_key.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enc_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_key` [INFO] [stdout] --> src/gateway/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let sign_key = self.config.security.default_signing_key.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rt_addr` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let rt_addr = ((cmd >> 11) & 0x1F) as u8; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rt_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_count` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let word_count = (cmd & 0x1F) as u8; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instrumentation` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let instrumentation = (word >> 8) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instrumentation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `service_request` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let service_request = (word >> 7) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handlers` is never read [INFO] [stdout] --> src/gateway/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Gateway { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | handlers: HashMap>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_counter` is never read [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct EthernetIpHandler { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 210 | // Configuration could go here [INFO] [stdout] 211 | session_counter: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_session` is never used [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 214 | impl EthernetIpHandler { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | fn next_session(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_ethernet_ip` is never used [INFO] [stdout] --> src/protocols/ethernet_ip/parser.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn validate_ethernet_ip(data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_command_word` is never used [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn validate_command_word(word: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_status_word` is never used [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn validate_status_word(word: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Gateway` [INFO] [stdout] --> examples/simulation.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use secure_gateway::{Config, Gateway}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> examples/simulation.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let config = Config::load()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> examples/visual_demo.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{info, LevelFilter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Config` and `Gateway` [INFO] [stdout] --> examples/visual_demo.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use secure_gateway::{Config, Gateway}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecurityMode` [INFO] [stdout] --> examples/visual_demo.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | SecurityMode, crypto::{self, encrypt_message, sign_message} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verification_key` [INFO] [stdout] --> examples/visual_demo.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | let (signing_key, verification_key) = crypto::generate_signing_keypair()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verification_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> examples/visual_demo.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | let (encrypted_data, nonce) = encrypt_message(&message.payload, &encryption_key)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/gateway/mod.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use anyhow::{anyhow, Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/gateway/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/protocols/ethernet_ip/parser.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, bail, Context, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf` and `Bytes` [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, bail, Context, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IResult`, `be_u16`, `be_u8`, `bytes::complete::take`, `map`, `sequence::tuple`, and `verify` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | bytes::complete::take, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | combinator::{map, verify}, [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] 12 | number::complete::{be_u16, be_u8}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] 13 | sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | IResult, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf` and `Bytes` [INFO] [stdout] --> src/protocols/mil_std_1553/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> src/protocols/mil_std_1553/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/security/key_manager.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/security/crypto.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AeadCore` [INFO] [stdout] --> src/security/crypto.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | aead::{Aead, AeadCore, KeyInit}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignatureError` [INFO] [stdout] --> src/security/crypto.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | Signature, SignatureError, Signer, SigningKey, Verifier, VerifyingKey, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_tx` [INFO] [stdout] --> src/gateway/mod.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | command_tx: &mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule` [INFO] [stdout] --> src/gateway/router.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let rule = self.rules.remove(idx); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enc_key` [INFO] [stdout] --> src/gateway/mod.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let enc_key = self.config.security.default_encryption_key.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enc_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_key` [INFO] [stdout] --> src/gateway/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let sign_key = self.config.security.default_signing_key.clone(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rt_addr` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let rt_addr = ((cmd >> 11) & 0x1F) as u8; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rt_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_count` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let word_count = (cmd & 0x1F) as u8; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instrumentation` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let instrumentation = (word >> 8) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instrumentation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `service_request` [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let service_request = (word >> 7) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handlers` is never read [INFO] [stdout] --> src/gateway/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Gateway { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | handlers: HashMap>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_counter` is never read [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct EthernetIpHandler { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 210 | // Configuration could go here [INFO] [stdout] 211 | session_counter: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_session` is never used [INFO] [stdout] --> src/protocols/ethernet_ip/mod.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 214 | impl EthernetIpHandler { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 222 | fn next_session(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_command_word` is never used [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn validate_command_word(word: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_status_word` is never used [INFO] [stdout] --> src/protocols/mil_std_1553/parser.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn validate_status_word(word: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.06s [INFO] running `Command { std: "docker" "inspect" "6a84bfe15c0fd0ac0c15339b2e1ac4c725ba6778e7dab1386051c430aa4d935e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a84bfe15c0fd0ac0c15339b2e1ac4c725ba6778e7dab1386051c430aa4d935e", kill_on_drop: false }` [INFO] [stdout] 6a84bfe15c0fd0ac0c15339b2e1ac4c725ba6778e7dab1386051c430aa4d935e