[INFO] updating cached repository https://github.com/zandemax/desfire-tool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f3ad89a5079e490c84668f7b055f46c922ef929 [INFO] testing zandemax/desfire-tool against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzandemax%2Fdesfire-tool" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zandemax/desfire-tool on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zandemax/desfire-tool [INFO] finished tweaking git repo https://github.com/zandemax/desfire-tool [INFO] tweaked toml for git repo https://github.com/zandemax/desfire-tool written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/zandemax/desfire-tool already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b296390b43f8f87e84a7dc8fcc1520149cf7766165c14dd72f96415f01bd82fc [INFO] running `Command { std: "docker" "start" "-a" "b296390b43f8f87e84a7dc8fcc1520149cf7766165c14dd72f96415f01bd82fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b296390b43f8f87e84a7dc8fcc1520149cf7766165c14dd72f96415f01bd82fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b296390b43f8f87e84a7dc8fcc1520149cf7766165c14dd72f96415f01bd82fc", kill_on_drop: false }` [INFO] [stdout] b296390b43f8f87e84a7dc8fcc1520149cf7766165c14dd72f96415f01bd82fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c6b024ebfb8d9867d6ebd6b0e093cefb5cb30c01110e8eac18db62255230c64f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c6b024ebfb8d9867d6ebd6b0e093cefb5cb30c01110e8eac18db62255230c64f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.38 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Compiling same-file v1.0.4 [INFO] [stderr] Compiling serde v1.0.93 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling rgb v0.8.13 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling text_io v0.1.7 [INFO] [stderr] Compiling crossbeam-utils v0.6.5 [INFO] [stderr] Compiling backtrace v0.3.31 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.6.7 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling walkdir v2.2.8 [INFO] [stderr] Compiling bstr v0.1.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling crossbeam-channel v0.3.8 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling crossbeam-epoch v0.7.1 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling nfc-sys v0.1.5 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling crossbeam-deque v0.6.3 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling freefare-sys v0.2.0 [INFO] [stderr] Compiling nfc v0.1.11 [INFO] [stderr] Compiling rayon-core v1.5.0 [INFO] [stderr] Compiling freefare v0.2.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rayon v1.1.0 [INFO] [stderr] Compiling regex v1.1.7 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling globset v0.4.3 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling winconsole v0.10.0 [INFO] [stderr] Compiling colored v1.8.0 [INFO] [stderr] Compiling ignore v0.4.7 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling structopt-derive v0.2.16 [INFO] [stderr] Compiling serde_derive v1.0.93 [INFO] [stderr] Compiling globwalk v0.3.1 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling exitfailure v0.5.1 [INFO] [stderr] Compiling structopt v0.2.16 [INFO] [stderr] Compiling clap-verbosity-flag v0.2.0 [INFO] [stderr] Compiling quicli v0.4.0 [INFO] [stderr] Compiling desfire-tool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/desfire/card.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/desfire/application.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crypto::*` [INFO] [stdout] --> src/desfire/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crypto::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `self` [INFO] [stdout] --> src/commands/personalize.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::super::desfire::*` [INFO] [stdout] --> src/commands/application.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::super::desfire::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/desfire/desfire.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for i in 0..device_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/desfire/desfire.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let res = mifare::desfire_authenticate_aes(self.tag, key_id, key); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/desfire/card.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | let res = mifare::desfire_get_version(desfire.tag, &mut info); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/desfire/card.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | let res = mifare::desfire_format_picc(desfire.tag); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/desfire/key.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn change_key(aid: u8, kid: u8, mut key_old: [u8; 16usize], mut key_new: [u8; 16usize], version: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/desfire/key.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | let mut count: usize = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/desfire/key.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn add_key(aid: u8, kid: u8, mut key_old: [u8; 16usize], mut key_new: [u8; 16usize], version: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/desfire/key.rs:56:28 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn change_key_settings(aid: u8, kid: u8, mut key: [u8; 16usize], version: Option, settings: KeySettings) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/desfire/key.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | let res = mifare::desfire_get_key_settings(desfire.tag, &mut settings, &mut max_keys); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/desfire/key.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_key_settings(aid: u8, kid: u8) -> KeySettings { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kid` [INFO] [stdout] --> src/desfire/key.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_key_settings(aid: u8, kid: u8) -> KeySettings { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_kid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `res` is assigned to, but never used [INFO] [stdout] --> src/desfire/application.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let res; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_res` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/desfire/application.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | Encryption::NONE => res = mifare::desfire_create_application(desfire.tag, application.id, settings_struct_to_u8(application.settings)... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/desfire/application.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | Encryption::DES3K3 => res = mifare::desfire_create_application_3k3des(desfire.tag, application.id, settings_struct_to_u8(application.... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/desfire/application.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | Encryption::AES => res = mifare::desfire_create_application_aes(desfire.tag, application.id, settings_struct_to_u8(application.settin... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/commands/helper.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | Err(err) => print!("Could not parse your answer! \n {}", question), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generate_master_key` [INFO] [stdout] --> src/commands/personalize.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | let generate_master_key: bool = ask_bool("Should I generate a new Master key for you? [yes/no]: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generate_master_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random_uid` [INFO] [stdout] --> src/commands/personalize.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let random_uid: bool = ask_bool("Do you want your card to respond with a random UID? (CAUTION: Once turned on, this cannot be turned of... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_random_uid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format_lock` [INFO] [stdout] --> src/commands/personalize.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | let format_lock: bool = ask_bool("Do you want to lock your card from being formatted? (CAUTION: Once turned on, this cannot be turned o... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_format_lock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create_needs_master` [INFO] [stdout] --> src/commands/personalize.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | let create_needs_master: bool = ask_bool("Should you need the Master Key to create Applications? (Delete always requires master) [yes|n... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_create_needs_master` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_needs_master` [INFO] [stdout] --> src/commands/personalize.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let list_needs_master: bool = ask_bool("Should you need the Master Key to list Applications? [yes|no]: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_needs_master` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generate_master_key` [INFO] [stdout] --> src/commands/application.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | let generate_master_key: bool = ask_bool("Should I generate a new Key for this Application (no leaves default) [yes|no]: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generate_master_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/application.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | fn change(aid: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/application.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | fn configure(aid: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/application.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | fn info(aid: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/application.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | fn remove(aid: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/key.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | fn add (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kid` [INFO] [stdout] --> src/commands/key.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | fn add (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_kid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/key.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | fn change (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kid` [INFO] [stdout] --> src/commands/key.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | fn change (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_kid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/key.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | fn configure (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kid` [INFO] [stdout] --> src/commands/key.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | fn configure (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_kid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/key.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | fn remove (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kid` [INFO] [stdout] --> src/commands/key.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | fn remove (aid: u8, kid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_kid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/commands/file.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn file(command: FileCommand, aid: u8, fid: u8) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aid` [INFO] [stdout] --> src/commands/file.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn file(command: FileCommand, aid: u8, fid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fid` [INFO] [stdout] --> src/commands/file.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn file(command: FileCommand, aid: u8, fid: u8) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/desfire/card.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn format_card(mut key: [u8; 16usize], key_id: u8, version: Option) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/desfire/key.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | let mut count: usize = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/desfire/key.rs:56:46 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn change_key_settings(aid: u8, kid: u8, mut key: [u8; 16usize], version: Option, settings: KeySettings) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `authenticate` [INFO] [stdout] --> src/desfire/desfire.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn authenticate(&self, key_id: u8, mut key: [u8; 16usize], version: Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_new_aes_key` [INFO] [stdout] --> src/desfire/crypto.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn generate_new_aes_key () -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `format_card` [INFO] [stdout] --> src/desfire/card.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn format_card(mut key: [u8; 16usize], key_id: u8, version: Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change_key` [INFO] [stdout] --> src/desfire/key.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn change_key(aid: u8, kid: u8, mut key_old: [u8; 16usize], mut key_new: [u8; 16usize], version: Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_key` [INFO] [stdout] --> src/desfire/key.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn add_key(aid: u8, kid: u8, mut key_old: [u8; 16usize], mut key_new: [u8; 16usize], version: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `settings_struct_to_u8` [INFO] [stdout] --> src/desfire/key.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn settings_struct_to_u8(settings: KeySettings) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change_key_settings` [INFO] [stdout] --> src/desfire/key.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn change_key_settings(aid: u8, kid: u8, mut key: [u8; 16usize], version: Option, settings: KeySettings) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Application` [INFO] [stdout] --> src/desfire/application.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Application { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Encryption` [INFO] [stdout] --> src/desfire/application.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Encryption { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_application` [INFO] [stdout] --> src/desfire/application.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn add_application(application: Application, key: Option<[u8; 16usize]>, version: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PersonalizationSettings` [INFO] [stdout] --> src/commands/personalize.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct PersonalizationSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/helper.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/helper.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit code: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.desfire_tool.459mocsj-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2" "/opt/rustwide/target/debug/deps/desfire_tool-723e56f8df764ff2.2f3z3jjn73k0crf8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/backtrace-sys-5909399e4bbfec0b/out" "-L" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libcolored-754bff99759287ff.rlib" "/opt/rustwide/target/debug/deps/libnfc-db08a139f316386d.rlib" "/opt/rustwide/target/debug/deps/libquicli-522f8c9f3e3bb67b.rlib" "/opt/rustwide/target/debug/deps/libexitfailure-e69080df64b182b3.rlib" "/opt/rustwide/target/debug/deps/librayon-8ae2a5c82a270b2d.rlib" "/opt/rustwide/target/debug/deps/librayon_core-9244982db6ac7897.rlib" "/opt/rustwide/target/debug/deps/libnum_cpus-0a7ae39289c47f2f.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_queue-24ff469c1dcfdf2c.rlib" "/opt/rustwide/target/debug/deps/libeither-10f8bd2ba2704983.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_deque-b05eed8e737fac2d.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_epoch-4d3cb57e7364e41e.rlib" "/opt/rustwide/target/debug/deps/libscopeguard-ad4c3ad3e7604ff0.rlib" "/opt/rustwide/target/debug/deps/libmemoffset-6aac4dafce6b7963.rlib" "/opt/rustwide/target/debug/deps/libarrayvec-22768ce7d0de8fe2.rlib" "/opt/rustwide/target/debug/deps/libclap_verbosity_flag-f86f789da0d32cf9.rlib" "/opt/rustwide/target/debug/deps/libstructopt-b0d38e479238c410.rlib" "/opt/rustwide/target/debug/deps/libclap-77718ec021ff7b5c.rlib" "/opt/rustwide/target/debug/deps/libvec_map-5dc04564fb1f035e.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-f2c89075e0be5a96.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-e66923fd97961770.rlib" "/opt/rustwide/target/debug/deps/libstrsim-e44af4ab13090443.rlib" "/opt/rustwide/target/debug/deps/libbitflags-b47c222f34291eff.rlib" "/opt/rustwide/target/debug/deps/libansi_term-22553bc1a6ab7a23.rlib" "/opt/rustwide/target/debug/deps/libenv_logger-7d190af469cd56e2.rlib" "/opt/rustwide/target/debug/deps/libatty-2bbfbe047610ef44.rlib" "/opt/rustwide/target/debug/deps/libhumantime-d49c01e2aedec53d.rlib" "/opt/rustwide/target/debug/deps/libquick_error-8c90ea5b32960f2f.rlib" "/opt/rustwide/target/debug/deps/libtermcolor-d8c7f4753a339d1d.rlib" "/opt/rustwide/target/debug/deps/libglobwalk-dffe932eb5bc7f85.rlib" "/opt/rustwide/target/debug/deps/libignore-4ca4623ca0fa45d1.rlib" "/opt/rustwide/target/debug/deps/libwalkdir-ed96357e91e9fef3.rlib" "/opt/rustwide/target/debug/deps/libsame_file-c2c1155751cf5962.rlib" "/opt/rustwide/target/debug/deps/libglobset-8a7959b353dc5057.rlib" "/opt/rustwide/target/debug/deps/libregex-bdb8e864d4e9426b.rlib" "/opt/rustwide/target/debug/deps/libutf8_ranges-bd8831ab94bb9be6.rlib" "/opt/rustwide/target/debug/deps/libregex_syntax-8a84f08fa648f00d.rlib" "/opt/rustwide/target/debug/deps/libucd_util-95e066877cf8ab6b.rlib" "/opt/rustwide/target/debug/deps/libthread_local-99d472c0881dfdb0.rlib" "/opt/rustwide/target/debug/deps/liblog-d047012a0898def3.rlib" "/opt/rustwide/target/debug/deps/libfnv-e461bc511369ce67.rlib" "/opt/rustwide/target/debug/deps/libbstr-a4337a81bf0fe24b.rlib" "/opt/rustwide/target/debug/deps/libaho_corasick-5ebb05596465fa1b.rlib" "/opt/rustwide/target/debug/deps/libmemchr-bba944e803a6ab44.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_channel-8e6225ab3f652529.rlib" "/opt/rustwide/target/debug/deps/libsmallvec-adaa0eebafe40f87.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_utils-12ce2bbe1b343f9e.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-95255a913897c8ce.rlib" "/opt/rustwide/target/debug/deps/libremove_dir_all-a91f273d7fa78a84.rlib" "/opt/rustwide/target/debug/deps/libfailure-1bed93160f820b79.rlib" "/opt/rustwide/target/debug/deps/libbacktrace-687b15bfdfc8df2d.rlib" "/opt/rustwide/target/debug/deps/libbacktrace_sys-85282d908e785282.rlib" "/opt/rustwide/target/debug/deps/librustc_demangle-85c3c0dd107f0d4b.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-45df0fd50fa2e287.rlib" "/opt/rustwide/target/debug/deps/librand-dd48172ca91a7852.rlib" "/opt/rustwide/target/debug/deps/librand_xorshift-7ac0bbf33eab17c3.rlib" "/opt/rustwide/target/debug/deps/librand_pcg-43cc21f994942478.rlib" "/opt/rustwide/target/debug/deps/librand_hc-7616e3bb64dc5ef6.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-5fda618e8169eabe.rlib" "/opt/rustwide/target/debug/deps/librand_isaac-b2748fbbad7a886b.rlib" "/opt/rustwide/target/debug/deps/librand_core-9df86ead2ee4a580.rlib" "/opt/rustwide/target/debug/deps/librand_os-06c7be02b3962e80.rlib" "/opt/rustwide/target/debug/deps/librand_jitter-867248efe33f2c01.rlib" "/opt/rustwide/target/debug/deps/librand_core-28553c25b52e4ac6.rlib" "/opt/rustwide/target/debug/deps/libfreefare-0b61407058b67831.rlib" "/opt/rustwide/target/debug/deps/libfreefare_sys-3535b1d4fe2ae6be.rlib" "/opt/rustwide/target/debug/deps/libnfc_sys-b7e82f738dd28a8f.rlib" "/opt/rustwide/target/debug/deps/liblibc-648ccb6b939f550a.rlib" "/opt/rustwide/target/debug/deps/libtext_io-86a4b911ca7451c9.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-5989bcf78182f65e.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-4d6da34bc177af8d.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-10e0d6c948699482.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-c2318e2415657781.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-3815b93ed84badbb.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-d7999143d95238cb.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-c58298a0d40df8b8.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-b7de97e2ba6fb4e2.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6f71c9f654d72cce.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-95ea48ddc44a311b.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-7402cd4761aebc14.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-68f423c59dc48a40.rlib" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-54580c7798bf2225.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-95a4d456339b7385.rlib" "-Wl,-Bdynamic" "-lnfc" "-lfreefare" "-lfreefare" "-lnfc" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lnfc [INFO] [stdout] /usr/bin/ld: cannot find -lfreefare [INFO] [stdout] /usr/bin/ld: cannot find -lfreefare [INFO] [stdout] /usr/bin/ld: cannot find -lnfc [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `desfire-tool`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "c6b024ebfb8d9867d6ebd6b0e093cefb5cb30c01110e8eac18db62255230c64f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6b024ebfb8d9867d6ebd6b0e093cefb5cb30c01110e8eac18db62255230c64f", kill_on_drop: false }` [INFO] [stdout] c6b024ebfb8d9867d6ebd6b0e093cefb5cb30c01110e8eac18db62255230c64f