[INFO] fetching crate crypt_guard_kyber 0.1.2... [INFO] testing crypt_guard_kyber-0.1.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate crypt_guard_kyber 0.1.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate crypt_guard_kyber 0.1.2 [INFO] finished tweaking crates.io crate crypt_guard_kyber 0.1.2 [INFO] tweaked toml for crates.io crate crypt_guard_kyber 0.1.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate crypt_guard_kyber 0.1.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 115 packages to latest compatible versions [INFO] [stderr] Adding colored v2.2.0 (available: v3.0.0) [INFO] [stderr] Adding env v0.0.0 (available: v1.0.1) [INFO] [stderr] Adding indicatif v0.17.11 (available: v0.18.0) [INFO] [stderr] Adding pqcrypto-falcon v0.3.0 (available: v0.4.1) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7635e16ab6e4e8be4c61c7b4ca0dc89846ea0a81d7f80f1f73640b6c26856361 [INFO] running `Command { std: "docker" "start" "-a" "7635e16ab6e4e8be4c61c7b4ca0dc89846ea0a81d7f80f1f73640b6c26856361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7635e16ab6e4e8be4c61c7b4ca0dc89846ea0a81d7f80f1f73640b6c26856361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7635e16ab6e4e8be4c61c7b4ca0dc89846ea0a81d7f80f1f73640b6c26856361", kill_on_drop: false }` [INFO] [stdout] 7635e16ab6e4e8be4c61c7b4ca0dc89846ea0a81d7f80f1f73640b6c26856361 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ec005ed8af92d0f9ba057ccde63973c0ca32e00b66d43c4bac119fe118fd567 [INFO] running `Command { std: "docker" "start" "-a" "3ec005ed8af92d0f9ba057ccde63973c0ca32e00b66d43c4bac119fe118fd567", kill_on_drop: false }` [INFO] [stderr] Compiling pqcrypto-internals v0.2.11 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling pqcrypto-falcon v0.3.0 [INFO] [stderr] Compiling pqcrypto-traits v0.3.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling pqcrypto-kyber v0.8.1 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling env v0.0.0 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling crypt_guard_sign v0.1.2 [INFO] [stderr] Compiling crypt_guard_kyber v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/decrypt.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_kyber::kyber1024` [INFO] [stdout] --> src/decrypt.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pqcrypto_kyber::kyber1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/decrypt.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use pqcrypto_falcon::falcon1024::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Path`, `Read`, `env::current_dir`, and `self` [INFO] [stdout] --> src/decrypt.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | path::{PathBuf, Path}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | io::{self, Cursor, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 13 | env::current_dir [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/decrypt.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/decrypt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_kyber::kyber1024::*` [INFO] [stdout] --> src/encrypt.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pqcrypto_kyber::kyber1024::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Path`, `Read`, `Write`, and `env::current_dir` [INFO] [stdout] --> src/encrypt.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | path::{PathBuf, Path}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | io::{self, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] 12 | env::current_dir [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/encrypt.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/encrypt.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/encrypt.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher`, `BlockDecrypt`, `BlockEncrypt`, and `generic_array::GenericArray` [INFO] [stdout] --> src/keychain.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::cipher::{BlockCipher, BlockEncrypt, BlockDecrypt, KeyInit, generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sha2::Sha256` [INFO] [stdout] --> src/keychain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sha2::Sha256; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hmac` [INFO] [stdout] --> src/keychain.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use hmac::{Hmac, Mac}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/keychain.rs:6:89 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{error::Error, ffi::OsStr, fmt, fs, path::Path, path::PathBuf, result::Result, env}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/keychain.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_falcon::falcon1024` [INFO] [stdout] --> src/keychain.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use pqcrypto_falcon::falcon1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/lib.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*` and `self` [INFO] [stdout] --> src/lib.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use pqcrypto_falcon::falcon1024::{self, *}; [INFO] [stdout] | ^^^^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/lib.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 7 | use pqcrypto_kyber::kyber1024::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*`, `error::Error`, `io`, and `self` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | fmt::{self, *}, [INFO] [stdout] | ^^^^ ^ [INFO] [stdout] 11 | io, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `kyber` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct kyber { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Kyber` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/decrypt.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/decrypt.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 157 | ActionType::FileAction => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 168 | ActionType::MessageAction => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 178 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/decrypt.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | nonce: Option<&[u8; 24]>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/encrypt.rs:77:64 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn save_encrypted_message(&self, message: &[u8], path: PathBuf) -> Result<(), CryptError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/encrypt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/encrypt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 105 | ActionType::FileAction => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 118 | ActionType::MessageAction => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 132 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/encrypt.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | nonce: Option<&[u8; 24]>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ciphertext` [INFO] [stdout] --> src/encrypt.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | let (shared_secret, ciphertext) = kyber1024::encapsulate(&public_key); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/encrypt.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut encrypted_file_path = file_path.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/encrypt.rs:21:49 [INFO] [stdout] | [INFO] [stdout] 21 | DetachedSignature as DetachedSignatureSign, PublicKey as PublicKeySign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyInit` [INFO] [stdout] --> src/keychain.rs:3:60 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::cipher::{BlockCipher, BlockEncrypt, BlockDecrypt, KeyInit, generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/encrypt.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/decrypt.rs:17:49 [INFO] [stdout] | [INFO] [stdout] 17 | DetachedSignature as DetachedSignatureSign, PublicKey as PublicKeySign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/decrypt.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/decrypt.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mac` [INFO] [stdout] --> src/keychain.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use hmac::{Hmac, Mac}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/encrypt.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/encrypt.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/encrypt.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ciphertext` [INFO] [stdout] --> src/encrypt.rs:5:112 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `kyber` is never constructed [INFO] [stdout] --> src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct kyber { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `decrypt`, `encrypt`, and `keychain` are never used [INFO] [stdout] --> src/lib.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl kyber { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn decrypt(&self) -> &Decrypt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn encrypt(&self) -> &Encrypt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn keychain(&self) -> &Keychain { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_subarray` is never used [INFO] [stdout] --> src/decrypt.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn find_subarray(haystack: &[u8], needle: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/keychain.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | keys.save_keys(path, name).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = keys.save_keys(path, name).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.19s [INFO] running `Command { std: "docker" "inspect" "3ec005ed8af92d0f9ba057ccde63973c0ca32e00b66d43c4bac119fe118fd567", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ec005ed8af92d0f9ba057ccde63973c0ca32e00b66d43c4bac119fe118fd567", kill_on_drop: false }` [INFO] [stdout] 3ec005ed8af92d0f9ba057ccde63973c0ca32e00b66d43c4bac119fe118fd567 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 00458548acb06f06916b67f5e8f69a123f284fa4afe77f42e85de62570ff855d [INFO] running `Command { std: "docker" "start" "-a" "00458548acb06f06916b67f5e8f69a123f284fa4afe77f42e85de62570ff855d", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/decrypt.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_kyber::kyber1024` [INFO] [stdout] --> src/decrypt.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pqcrypto_kyber::kyber1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/decrypt.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use pqcrypto_falcon::falcon1024::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Path`, `Read`, `env::current_dir`, and `self` [INFO] [stdout] --> src/decrypt.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | path::{PathBuf, Path}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | io::{self, Cursor, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 13 | env::current_dir [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/decrypt.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/decrypt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_kyber::kyber1024::*` [INFO] [stdout] --> src/encrypt.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pqcrypto_kyber::kyber1024::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Path`, `Read`, `Write`, and `env::current_dir` [INFO] [stdout] --> src/encrypt.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | path::{PathBuf, Path}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | io::{self, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] 12 | env::current_dir [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/encrypt.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/encrypt.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/encrypt.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher`, `BlockDecrypt`, `BlockEncrypt`, and `generic_array::GenericArray` [INFO] [stdout] --> src/keychain.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::cipher::{BlockCipher, BlockEncrypt, BlockDecrypt, KeyInit, generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sha2::Sha256` [INFO] [stdout] --> src/keychain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sha2::Sha256; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hmac` [INFO] [stdout] --> src/keychain.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use hmac::{Hmac, Mac}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/keychain.rs:6:89 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{error::Error, ffi::OsStr, fmt, fs, path::Path, path::PathBuf, result::Result, env}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/keychain.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_falcon::falcon1024` [INFO] [stdout] --> src/keychain.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use pqcrypto_falcon::falcon1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling crypt_guard_kyber v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/lib.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*` and `self` [INFO] [stdout] --> src/lib.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use pqcrypto_falcon::falcon1024::{self, *}; [INFO] [stdout] | ^^^^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/lib.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 7 | use pqcrypto_kyber::kyber1024::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*`, `error::Error`, `io`, and `self` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | fmt::{self, *}, [INFO] [stdout] | ^^^^ ^ [INFO] [stdout] 11 | io, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `kyber` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct kyber { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Kyber` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/decrypt.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/decrypt.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 157 | ActionType::FileAction => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 168 | ActionType::MessageAction => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 178 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/decrypt.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | nonce: Option<&[u8; 24]>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/encrypt.rs:77:64 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn save_encrypted_message(&self, message: &[u8], path: PathBuf) -> Result<(), CryptError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/encrypt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/encrypt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 105 | ActionType::FileAction => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 118 | ActionType::MessageAction => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 132 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/encrypt.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | nonce: Option<&[u8; 24]>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ciphertext` [INFO] [stdout] --> src/encrypt.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | let (shared_secret, ciphertext) = kyber1024::encapsulate(&public_key); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/encrypt.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut encrypted_file_path = file_path.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/encrypt.rs:21:49 [INFO] [stdout] | [INFO] [stdout] 21 | DetachedSignature as DetachedSignatureSign, PublicKey as PublicKeySign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyInit` [INFO] [stdout] --> src/keychain.rs:3:60 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::cipher::{BlockCipher, BlockEncrypt, BlockDecrypt, KeyInit, generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/encrypt.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/decrypt.rs:17:49 [INFO] [stdout] | [INFO] [stdout] 17 | DetachedSignature as DetachedSignatureSign, PublicKey as PublicKeySign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/decrypt.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/decrypt.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mac` [INFO] [stdout] --> src/keychain.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use hmac::{Hmac, Mac}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/encrypt.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/encrypt.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/encrypt.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ciphertext` [INFO] [stdout] --> src/encrypt.rs:5:112 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `kyber` is never constructed [INFO] [stdout] --> src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct kyber { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `decrypt`, `encrypt`, and `keychain` are never used [INFO] [stdout] --> src/lib.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl kyber { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn decrypt(&self) -> &Decrypt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn encrypt(&self) -> &Encrypt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn keychain(&self) -> &Keychain { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_subarray` is never used [INFO] [stdout] --> src/decrypt.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn find_subarray(haystack: &[u8], needle: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/keychain.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | keys.save_keys(path, name).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = keys.save_keys(path, name).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | fs::write(&unique_path, "Test content").unwrap(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/lib.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | assert!(Path::new(&unique_path).is_file()); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 73 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/lib.rs:101:20 [INFO] [stdout] | [INFO] [stdout] 101 | assert_eq!(Path::new(&unique_path).extension().unwrap().to_str().unwrap(), extension); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 73 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | fs::remove_file(unique_path).unwrap(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `tempdir` in this scope [INFO] [stdout] --> src/lib.rs:155:19 [INFO] [stdout] | [INFO] [stdout] 155 | let dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 73 + use tempfile::tempdir; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | fs::write(&file_path, message_bytes).expect("Failed to write test file"); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | fs::write(&encrypted_file_path, &encrypted_data).expect("Failed to write encrypted file"); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | fs::write(&decrypted_file_path, &decrypted_data).expect("Failed to write decrypted file"); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:220:22 [INFO] [stdout] | [INFO] [stdout] 220 | let pubkey = PathBuf::from("./keychain/key/key.pub"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 73 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:221:26 [INFO] [stdout] | [INFO] [stdout] 221 | let secret_key = PathBuf::from("./keychain/key/key.sec"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 73 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:222:26 [INFO] [stdout] | [INFO] [stdout] 222 | let ciphertext = PathBuf::from("./keychain/cipher/cipher.ct"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 73 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `tempdir` in this scope [INFO] [stdout] --> src/lib.rs:225:19 [INFO] [stdout] | [INFO] [stdout] 225 | let dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 73 + use tempfile::tempdir; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | fs::write(&original_file_path, original_file_contents).expect("Failed to write original file"); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:240:39 [INFO] [stdout] | [INFO] [stdout] 240 | let decrypted_file_contents = fs::read_to_string(&original_file_path).expect("Failed to read decrypted file"); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | fs::remove_file("./keychain/cipher/cipher.ct"); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | let file_path = PathBuf::from("./README.md"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 73 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:301:28 [INFO] [stdout] | [INFO] [stdout] 301 | let file_content = fs::read(&file_path).expect("Failed to read the file"); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 73 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 73 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/decrypt.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_kyber::kyber1024` [INFO] [stdout] --> src/decrypt.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pqcrypto_kyber::kyber1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/decrypt.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use pqcrypto_falcon::falcon1024::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Path`, `Read`, `env::current_dir`, and `self` [INFO] [stdout] --> src/decrypt.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | path::{PathBuf, Path}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | io::{self, Cursor, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 13 | env::current_dir [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/decrypt.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/decrypt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_kyber::kyber1024::*` [INFO] [stdout] --> src/encrypt.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pqcrypto_kyber::kyber1024::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Path`, `Read`, `Write`, and `env::current_dir` [INFO] [stdout] --> src/encrypt.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | path::{PathBuf, Path}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | io::{self, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] 12 | env::current_dir [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/encrypt.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/encrypt.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/encrypt.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher`, `BlockDecrypt`, `BlockEncrypt`, and `generic_array::GenericArray` [INFO] [stdout] --> src/keychain.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::cipher::{BlockCipher, BlockEncrypt, BlockDecrypt, KeyInit, generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sha2::Sha256` [INFO] [stdout] --> src/keychain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sha2::Sha256; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hmac` [INFO] [stdout] --> src/keychain.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use hmac::{Hmac, Mac}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/keychain.rs:6:89 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{error::Error, ffi::OsStr, fmt, fs, path::Path, path::PathBuf, result::Result, env}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/keychain.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_falcon::falcon1024` [INFO] [stdout] --> src/keychain.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use pqcrypto_falcon::falcon1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/lib.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crypt_guard_sign::{self, *}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*` and `self` [INFO] [stdout] --> src/lib.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use pqcrypto_falcon::falcon1024::{self, *}; [INFO] [stdout] | ^^^^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::Error`, `io`, and `self` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | fmt::{self, *}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | io, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `kyber` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct kyber { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Kyber` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/lib.rs:324:11 [INFO] [stdout] | [INFO] [stdout] 324 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/lib.rs:335:11 [INFO] [stdout] | [INFO] [stdout] 335 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/lib.rs:344:11 [INFO] [stdout] | [INFO] [stdout] 344 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/lib.rs:355:11 [INFO] [stdout] | [INFO] [stdout] 355 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/lib.rs:366:11 [INFO] [stdout] | [INFO] [stdout] 366 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dilithium` [INFO] [stdout] --> src/lib.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | #[cfg(feature = "dilithium")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `pqcrypto-dilithium`, and `xchacha20` [INFO] [stdout] = help: consider adding `dilithium` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `formatting_options` [INFO] [stdout] --> src/lib.rs:252:24 [INFO] [stdout] | [INFO] [stdout] 252 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118117 for more information [INFO] [stdout] = help: add `#![feature(formatting_options)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `formatting_options` [INFO] [stdout] --> src/lib.rs:262:24 [INFO] [stdout] | [INFO] [stdout] 262 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118117 for more information [INFO] [stdout] = help: add `#![feature(formatting_options)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `formatting_options` [INFO] [stdout] --> src/lib.rs:270:24 [INFO] [stdout] | [INFO] [stdout] 270 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118117 for more information [INFO] [stdout] = help: add `#![feature(formatting_options)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `formatting_options` [INFO] [stdout] --> src/lib.rs:280:24 [INFO] [stdout] | [INFO] [stdout] 280 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118117 for more information [INFO] [stdout] = help: add `#![feature(formatting_options)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `formatting_options` [INFO] [stdout] --> src/lib.rs:292:24 [INFO] [stdout] | [INFO] [stdout] 292 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118117 for more information [INFO] [stdout] = help: add `#![feature(formatting_options)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `formatting_options` [INFO] [stdout] --> src/lib.rs:311:24 [INFO] [stdout] | [INFO] [stdout] 311 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118117 for more information [INFO] [stdout] = help: add `#![feature(formatting_options)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `formatting_options` [INFO] [stdout] --> src/lib.rs:404:20 [INFO] [stdout] | [INFO] [stdout] 404 | let sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118117 for more information [INFO] [stdout] = help: add `#![feature(formatting_options)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/decrypt.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/decrypt.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 157 | ActionType::FileAction => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 168 | ActionType::MessageAction => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 178 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/decrypt.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | nonce: Option<&[u8; 24]>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/encrypt.rs:77:64 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn save_encrypted_message(&self, message: &[u8], path: PathBuf) -> Result<(), CryptError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/encrypt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/encrypt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 105 | ActionType::FileAction => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 118 | ActionType::MessageAction => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 132 | _ => Err(CryptError::InvalidParameters), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/encrypt.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | nonce: Option<&[u8; 24]>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ciphertext` [INFO] [stdout] --> src/encrypt.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | let (shared_secret, ciphertext) = kyber1024::encapsulate(&public_key); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/encrypt.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut encrypted_file_path = file_path.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for reference `&pqcrypto_kyber::kyber1024::SharedSecret` in the current scope [INFO] [stdout] --> src/lib.rs:86:65 [INFO] [stdout] | [INFO] [stdout] 86 | assert_eq!(keychain.shared_secret.as_ref().unwrap().as_bytes(), ss.as_bytes()); [INFO] [stdout] | ^^^^^^^^ method not found in `&pqcrypto_kyber::kyber1024::SharedSecret` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SharedSecret` which provides `as_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 73 + use pqcrypto_traits::kem::SharedSecret; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `pqcrypto_kyber::kyber1024::SharedSecret` in the current scope [INFO] [stdout] --> src/lib.rs:86:80 [INFO] [stdout] | [INFO] [stdout] 86 | assert_eq!(keychain.shared_secret.as_ref().unwrap().as_bytes(), ss.as_bytes()); [INFO] [stdout] | ^^^^^^^^ method not found in `pqcrypto_kyber::kyber1024::SharedSecret` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pqcrypto-traits-0.3.5/src/kem.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn as_bytes(&self) -> &[u8]; [INFO] [stdout] | -------- the method is available for `pqcrypto_kyber::kyber1024::SharedSecret` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SharedSecret` which provides `as_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 73 + use pqcrypto_traits::kem::SharedSecret; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new` found for enum `std::fmt::Sign` in the current scope [INFO] [stdout] --> src/lib.rs:252:30 [INFO] [stdout] | [INFO] [stdout] 252 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^ variant or associated item not found in `std::fmt::Sign` [INFO] [stdout] | [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:265:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new` found for enum `std::fmt::Sign` in the current scope [INFO] [stdout] --> src/lib.rs:262:30 [INFO] [stdout] | [INFO] [stdout] 262 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^ variant or associated item not found in `std::fmt::Sign` [INFO] [stdout] | [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:265:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new` found for enum `std::fmt::Sign` in the current scope [INFO] [stdout] --> src/lib.rs:270:30 [INFO] [stdout] | [INFO] [stdout] 270 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^ variant or associated item not found in `std::fmt::Sign` [INFO] [stdout] | [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:265:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new` found for enum `std::fmt::Sign` in the current scope [INFO] [stdout] --> src/lib.rs:280:30 [INFO] [stdout] | [INFO] [stdout] 280 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^ variant or associated item not found in `std::fmt::Sign` [INFO] [stdout] | [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:265:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new` found for enum `std::fmt::Sign` in the current scope [INFO] [stdout] --> src/lib.rs:292:30 [INFO] [stdout] | [INFO] [stdout] 292 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^ variant or associated item not found in `std::fmt::Sign` [INFO] [stdout] | [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:265:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new` found for enum `std::fmt::Sign` in the current scope [INFO] [stdout] --> src/lib.rs:311:30 [INFO] [stdout] | [INFO] [stdout] 311 | let mut sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^ variant or associated item not found in `std::fmt::Sign` [INFO] [stdout] | [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:265:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new` found for enum `std::fmt::Sign` in the current scope [INFO] [stdout] --> src/lib.rs:404:26 [INFO] [stdout] | [INFO] [stdout] 404 | let sign = Sign::new().unwrap(); [INFO] [stdout] | ^^^ variant or associated item not found in `std::fmt::Sign` [INFO] [stdout] | [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:265:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DetachedSignatureSign` [INFO] [stdout] --> src/lib.rs:438:32 [INFO] [stdout] | [INFO] [stdout] 438 | ... assert_eq!(&signature, DetachedSignatureSign::as_bytes(&extracted_signature), "Original signature does not match extracted signatur... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `DetachedSignatureSign` [INFO] [stdout] | help: a struct with a similar name exists: `DetachedSignature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/encrypt.rs:21:49 [INFO] [stdout] | [INFO] [stdout] 21 | DetachedSignature as DetachedSignatureSign, PublicKey as PublicKeySign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyInit` [INFO] [stdout] --> src/keychain.rs:3:60 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::cipher::{BlockCipher, BlockEncrypt, BlockDecrypt, KeyInit, generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/encrypt.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/decrypt.rs:17:49 [INFO] [stdout] | [INFO] [stdout] 17 | DetachedSignature as DetachedSignatureSign, PublicKey as PublicKeySign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/decrypt.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/decrypt.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mac` [INFO] [stdout] --> src/keychain.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use hmac::{Hmac, Mac}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/encrypt.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/encrypt.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/encrypt.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | SecretKey as SecretKeySign, SignedMessage as SignedMessageSign, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ciphertext` [INFO] [stdout] --> src/encrypt.rs:5:112 [INFO] [stdout] | [INFO] [stdout] 5 | use pqcrypto_traits::kem::{PublicKey as PublicKeyKem, SecretKey as SecKeyKem, SharedSecret as SharedSecretKem, Ciphertext as CiphertextKem}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encrypt` [INFO] [stdout] --> src/lib.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let encrypt: Encrypt = Encrypt::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encrypt` [INFO] [stdout] --> src/lib.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let encrypt: Encrypt = Encrypt::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crypt_guard_kyber` (lib test) due to 34 previous errors; 47 warnings emitted [INFO] running `Command { std: "docker" "inspect" "00458548acb06f06916b67f5e8f69a123f284fa4afe77f42e85de62570ff855d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00458548acb06f06916b67f5e8f69a123f284fa4afe77f42e85de62570ff855d", kill_on_drop: false }` [INFO] [stdout] 00458548acb06f06916b67f5e8f69a123f284fa4afe77f42e85de62570ff855d