[INFO] fetching crate qudag-crypto 0.5.1... [INFO] testing qudag-crypto-0.5.1 against beta-2025-10-28 for beta-1.92-2 [INFO] extracting crate qudag-crypto 0.5.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate qudag-crypto 0.5.1 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate qudag-crypto 0.5.1 [INFO] tweaked toml for crates.io crate qudag-crypto 0.5.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate qudag-crypto 0.5.1 on toolchain beta-2025-10-28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate qudag-crypto 0.5.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38a696fbc03556e382eb2c92638ea1be7dff9dd08e23a3f4dc60d449349bb8d5 [INFO] running `Command { std: "docker" "start" "-a" "38a696fbc03556e382eb2c92638ea1be7dff9dd08e23a3f4dc60d449349bb8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38a696fbc03556e382eb2c92638ea1be7dff9dd08e23a3f4dc60d449349bb8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38a696fbc03556e382eb2c92638ea1be7dff9dd08e23a3f4dc60d449349bb8d5", kill_on_drop: false }` [INFO] [stdout] 38a696fbc03556e382eb2c92638ea1be7dff9dd08e23a3f4dc60d449349bb8d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 311ed0595c4acad19a1b1e1ead8199842c1cb30f0c7b19a1a2a59f5ab6136fac [INFO] running `Command { std: "docker" "start" "-a" "311ed0595c4acad19a1b1e1ead8199842c1cb30f0c7b19a1a2a59f5ab6136fac", kill_on_drop: false }` [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling pqcrypto-traits v0.3.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling poly1305 v0.8.0 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling pqcrypto-internals v0.2.10 [INFO] [stderr] Compiling pqcrypto-dilithium v0.5.0 [INFO] [stderr] Compiling pqcrypto-hqc v0.2.1 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling pqcrypto-kyber v0.5.0 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling chacha20 v0.9.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling qudag-crypto v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s [INFO] running `Command { std: "docker" "inspect" "311ed0595c4acad19a1b1e1ead8199842c1cb30f0c7b19a1a2a59f5ab6136fac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "311ed0595c4acad19a1b1e1ead8199842c1cb30f0c7b19a1a2a59f5ab6136fac", kill_on_drop: false }` [INFO] [stdout] 311ed0595c4acad19a1b1e1ead8199842c1cb30f0c7b19a1a2a59f5ab6136fac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed1044555a19d19feb355d18b97e424dd567f46c9ec2750963aad56e14358ea5 [INFO] running `Command { std: "docker" "start" "-a" "ed1044555a19d19feb355d18b97e424dd567f46c9ec2750963aad56e14358ea5", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling qudag-crypto v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling proptest v1.7.0 [INFO] [stdout] warning: unused import: `FingerprintError` [INFO] [stdout] --> tests/fingerprint_tests.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use qudag_crypto::fingerprint::{Fingerprint, FingerprintError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `qudag_crypto::kem::ml_kem` [INFO] [stdout] --> tests/test_vectors.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use qudag_crypto::kem::ml_kem::*; [INFO] [stdout] | ^^^^^^ could not find `ml_kem` in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fingerprint_ptr` [INFO] [stdout] --> tests/fingerprint_tests.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let fingerprint_ptr = fingerprint.data().as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fingerprint_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "test_vectors") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rayon` [INFO] [stdout] --> tests/concurrent_tests.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `rayon` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rayon`, use `cargo add rayon` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::sync::{Barrier, Semaphore}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::sync::Barrier`, `tokio::sync::Semaphore` [INFO] [stdout] --> tests/concurrent_tests.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::sync::{Barrier, Semaphore}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 111 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:193:3 [INFO] [stdout] | [INFO] [stdout] 193 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:275:3 [INFO] [stdout] | [INFO] [stdout] 275 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:368:3 [INFO] [stdout] | [INFO] [stdout] 368 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:491:3 [INFO] [stdout] | [INFO] [stdout] 491 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hex_literal` [INFO] [stdout] --> tests/ml_kem_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex_literal`, use `cargo add hex_literal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KEMError` and `SharedSecret` [INFO] [stdout] --> tests/ml_kem_tests.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | Ciphertext, KEMError, KeyEncapsulation, PublicKey, SecretKey, SharedSecret, [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: `hex` [INFO] [stdout] --> tests/nist_test_vectors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex; [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 imports: `Metrics as MlKemMetrics`, `MlDsaKeyPair`, `MlDsaPublicKey`, `PublicKey`, `SecretKey`, and `SharedSecret` [INFO] [stdout] --> tests/nist_test_vectors.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | kem::{Ciphertext, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | ml_dsa::{MlDsa, MlDsaKeyPair, MlDsaPublicKey}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | ml_kem::{Metrics as MlKemMetrics, MlKem768}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/nist_test_vectors.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEncapsulation` [INFO] [stdout] --> tests/ml_kem_tests.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | Ciphertext, KEMError, KeyEncapsulation, PublicKey, SecretKey, SharedSecret, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ct` [INFO] [stdout] --> tests/ml_kem_tests.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let ct = Ciphertext::from_bytes(&ct_bytes).unwrap_or_else(|_| panic!("Failed to create ciphertext")); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Serialize` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ the trait `Serialize` is not implemented for `[u8; 48]` [INFO] [stdout] ... [INFO] [stdout] 21 | seed: [u8; 48], [INFO] [stdout] | ---- required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] [T; 0] [INFO] [stdout] [T] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/ser/mod.rs:1866:21 [INFO] [stdout] | [INFO] [stdout] 1864 | fn serialize_field(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error> [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] 1865 | where [INFO] [stdout] 1866 | T: ?Sized + Serialize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:330:17 [INFO] [stdout] | [INFO] [stdout] 330 | tokio::task::yield_now().await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ct_bytes` [INFO] [stdout] --> tests/hqc_tests.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | ct_bytes in prop::collection::vec(0u8..255, Hqc256::CIPHERTEXT_SIZE) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ct_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_element` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1732:12 [INFO] [stdout] | [INFO] [stdout] 1730 | fn next_element(&mut self) -> Result, Self::Error> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 1731 | where [INFO] [stdout] 1732 | T: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1871:12 [INFO] [stdout] | [INFO] [stdout] 1869 | fn next_value(&mut self) -> Result [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 1870 | where [INFO] [stdout] 1871 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::__private::de::missing_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/private/de.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 24 | where [INFO] [stdout] 25 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Serialize` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ the trait `Serialize` is not implemented for `[u8; 48]` [INFO] [stdout] ... [INFO] [stdout] 32 | seed: [u8; 48], [INFO] [stdout] | ---- required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] [T; 0] [INFO] [stdout] [T] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/ser/mod.rs:1866:21 [INFO] [stdout] | [INFO] [stdout] 1864 | fn serialize_field(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error> [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] 1865 | where [INFO] [stdout] 1866 | T: ?Sized + Serialize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_element` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1732:12 [INFO] [stdout] | [INFO] [stdout] 1730 | fn next_element(&mut self) -> Result, Self::Error> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 1731 | where [INFO] [stdout] 1732 | T: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1871:12 [INFO] [stdout] | [INFO] [stdout] 1869 | fn next_value(&mut self) -> Result [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 1870 | where [INFO] [stdout] 1871 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::__private::de::missing_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/private/de.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 24 | where [INFO] [stdout] 25 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 47 | let (_, duration) = measure_time(|| encapsulate(&keypair.public_key)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::encapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (_, ct) = encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::encapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:72:45 [INFO] [stdout] | [INFO] [stdout] 72 | let (_, duration) = measure_time(|| decapsulate(&keypair.secret_key, &ct)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::decapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Serialize` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ the trait `Serialize` is not implemented for `[u8; 48]` [INFO] [stdout] ... [INFO] [stdout] 44 | seed: [u8; 48], [INFO] [stdout] | ---- required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] [T; 0] [INFO] [stdout] [T] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/ser/mod.rs:1866:21 [INFO] [stdout] | [INFO] [stdout] 1864 | fn serialize_field(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error> [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] 1865 | where [INFO] [stdout] 1866 | T: ?Sized + Serialize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | let (_, duration) = measure_time(|| decapsulate(&keypair.secret_key, &invalid_ct)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::decapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `qudag_crypto::ml_kem::*` [INFO] [stdout] --> tests/timing_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use qudag_crypto::ml_kem::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_element` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1732:12 [INFO] [stdout] | [INFO] [stdout] 1730 | fn next_element(&mut self) -> Result, Self::Error> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 1731 | where [INFO] [stdout] 1732 | T: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "ml_kem_tests") due to 1 previous error; 3 warnings emitted [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1871:12 [INFO] [stdout] | [INFO] [stdout] 1869 | fn next_value(&mut self) -> Result [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 1870 | where [INFO] [stdout] 1871 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | tokio::task::yield_now().await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::__private::de::missing_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/private/de.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 24 | where [INFO] [stdout] 25 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in this scope [INFO] [stdout] --> tests/timing_tests.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | let (_, duration) = measure_time(|| generate_keypair(&mut rng)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in this scope [INFO] [stdout] --> tests/timing_tests.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | let keypair = generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in this scope [INFO] [stdout] --> tests/timing_tests.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | let keypair = generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/timing_tests.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let mut invalid_ct = vec![0u8; ct.len()]; [INFO] [stdout] | ^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_compare` in this scope [INFO] [stdout] --> tests/timing_tests.rs:108:45 [INFO] [stdout] | [INFO] [stdout] 108 | let (_, duration) = measure_time(|| constant_time_compare(&data1, &data2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_compare` in this scope [INFO] [stdout] --> tests/timing_tests.rs:115:45 [INFO] [stdout] | [INFO] [stdout] 115 | let (_, duration) = measure_time(|| constant_time_compare(&data1, &data2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | tokio::task::yield_now().await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_eq` in this scope [INFO] [stdout] --> tests/security_tests.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | assert!(constant_time_eq(&a, &b)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_eq` in this scope [INFO] [stdout] --> tests/security_tests.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | assert!(!constant_time_eq(&a, &c)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ciphertext`, `CryptoError`, `MlDsa`, and `SharedSecret` [INFO] [stdout] --> tests/concurrent_tests.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | kem::{Ciphertext, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | ml_dsa::{MlDsa, MlDsaKeyPair, MlDsaPublicKey}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | ml_kem::MlKem768, [INFO] [stdout] 13 | CryptoError, [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: `RngCore` [INFO] [stdout] --> tests/concurrent_tests.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use rand::{thread_rng, RngCore}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> tests/concurrent_tests.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:205:27 [INFO] [stdout] | [INFO] [stdout] 205 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 205 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/concurrent_tests.rs:90:59 [INFO] [stdout] | [INFO] [stdout] 90 | let (thread_id, keygen_success, encaps_success) = handle.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zeroize::Zeroize` [INFO] [stdout] --> tests/security_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use zeroize::Zeroize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "timing_tests") due to 10 previous errors; 1 warning emitted [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/concurrent_tests.rs:172:44 [INFO] [stdout] | [INFO] [stdout] 172 | let (thread_id, signs, verifies) = handle.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 204 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "security_tests") due to 2 previous errors; 1 warning emitted [INFO] [stdout] error[E0599]: no method named `as_bytes` found for reference `&[u8]` in the current scope [INFO] [stdout] --> tests/nist_test_vectors.rs:209:38 [INFO] [stdout] | [INFO] [stdout] 209 | keypair.public_key().as_bytes().len(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IntoBytes` which provides `as_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 152 + use zerocopy::IntoBytes; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 209 - keypair.public_key().as_bytes().len(), [INFO] [stdout] 209 + keypair.public_key().bytes().len(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:232:35 [INFO] [stdout] | [INFO] [stdout] 232 | match fingerprint.verify(original_data, public_key) { [INFO] [stdout] | ^^^^^^ ------------- unexpected argument #1 of type `&Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 232 - match fingerprint.verify(original_data, public_key) { [INFO] [stdout] 232 + match fingerprint.verify(public_key) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/concurrent_tests.rs:254:55 [INFO] [stdout] | [INFO] [stdout] 254 | let (thread_id, generations, verifications) = handle.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:295:22 [INFO] [stdout] | [INFO] [stdout] 295 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/concurrent_tests.rs:343:39 [INFO] [stdout] | [INFO] [stdout] 343 | let (thread_id, operations) = handle.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/concurrent_tests.rs:383:27 [INFO] [stdout] | [INFO] [stdout] 383 | let _permit = semaphore_clone.acquire().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:435:48 [INFO] [stdout] | [INFO] [stdout] 435 | ... if fingerprint.verify(&data, &public_key).is_ok() { [INFO] [stdout] | ^^^^^^ ----- unexpected argument #1 of type `&Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 435 - if fingerprint.verify(&data, &public_key).is_ok() { [INFO] [stdout] 435 + if fingerprint.verify(&public_key).is_ok() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "concurrent_tests") due to 32 previous errors; 5 warnings emitted [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/concurrent_tests.rs:464:47 [INFO] [stdout] | [INFO] [stdout] 464 | let (thread_id, operations, errors) = handle.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:502:22 [INFO] [stdout] | [INFO] [stdout] 502 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:542:49 [INFO] [stdout] | [INFO] [stdout] 542 | ... let _ = fingerprint.verify(&data, &public_key); [INFO] [stdout] | ^^^^^^ ----- unexpected argument #1 of type `&Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 542 - let _ = fingerprint.verify(&data, &public_key); [INFO] [stdout] 542 + let _ = fingerprint.verify(&public_key); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/concurrent_tests.rs:570:42 [INFO] [stdout] | [INFO] [stdout] 570 | let (thread_id, final_objects) = handle.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for reference `&[u8]` in the current scope [INFO] [stdout] --> tests/nist_test_vectors.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | keypair.secret_key().as_bytes().len(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IntoBytes` which provides `as_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 152 + use zerocopy::IntoBytes; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 214 - keypair.secret_key().as_bytes().len(), [INFO] [stdout] 214 + keypair.secret_key().bytes().len(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `par_iter` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/concurrent_tests.rs:600:10 [INFO] [stdout] | [INFO] [stdout] 599 | let ml_kem_results: Vec<_> = test_data [INFO] [stdout] | __________________________________- [INFO] [stdout] 600 | | .par_iter() [INFO] [stdout] | |_________-^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 600 - .par_iter() [INFO] [stdout] 600 + .iter() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `par_iter` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/concurrent_tests.rs:613:10 [INFO] [stdout] | [INFO] [stdout] 612 | let fingerprint_results: Vec<_> = test_data [INFO] [stdout] | _______________________________________- [INFO] [stdout] 613 | | .par_iter() [INFO] [stdout] | |_________-^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 613 - .par_iter() [INFO] [stdout] 613 + .iter() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:617:25 [INFO] [stdout] | [INFO] [stdout] 617 | fingerprint.verify(data, &public_key).is_ok() [INFO] [stdout] | ^^^^^^ ---- unexpected argument #1 of type `&[u8]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 617 - fingerprint.verify(data, &public_key).is_ok() [INFO] [stdout] 617 + fingerprint.verify(&public_key).is_ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `par_iter` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/concurrent_tests.rs:628:10 [INFO] [stdout] | [INFO] [stdout] 627 | let ml_dsa_results: Vec<_> = test_data [INFO] [stdout] | __________________________________- [INFO] [stdout] 628 | | .par_iter() [INFO] [stdout] | |_________-^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 628 - .par_iter() [INFO] [stdout] 628 + .iter() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::HashFunction` [INFO] [stdout] --> tests/concurrent_tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | hash::HashFunction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEncapsulation` [INFO] [stdout] --> tests/concurrent_tests.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | kem::{Ciphertext, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0282, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:220:29 [INFO] [stdout] | [INFO] [stdout] 220 | let signature = MlDsa::sign(&vector.msg, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^----------------------------------- argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `&MlDsaKeyPair`, found `&Vec` [INFO] [stdout] --> tests/nist_test_vectors.rs:220:41 [INFO] [stdout] | [INFO] [stdout] 220 | let signature = MlDsa::sign(&vector.msg, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 220 - let signature = MlDsa::sign(&vector.msg, keypair.secret_key()).unwrap(); [INFO] [stdout] 220 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:228:31 [INFO] [stdout] | [INFO] [stdout] 228 | MlDsa::verify(&vector.msg, &signature, keypair.public_key()).is_ok(), [INFO] [stdout] | ------------- ^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:237:35 [INFO] [stdout] | [INFO] [stdout] 237 | MlDsa::verify(&modified_msg, &signature, keypair.public_key()).is_err(), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | MlDsa::verify(&vector.msg, &modified_sig, keypair.public_key()).is_err(), [INFO] [stdout] | ------------- ^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DeterministicRng: CryptoRng` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:258:52 [INFO] [stdout] | [INFO] [stdout] 258 | let (pk1, sk1) = MlKem768::keygen_with_rng(&mut rng).unwrap(); [INFO] [stdout] | ------------------------- ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `CryptoRng` is not implemented for `DeterministicRng` [INFO] [stdout] --> tests/nist_test_vectors.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: there are multiple different versions of crate `rand_core` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/lib.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | pub trait CryptoRng {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: tests/nist_test_vectors.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use proptest::prelude::*; [INFO] [stdout] | -------- one version of crate `rand_core` used here, as a dependency of crate `rand` [INFO] [stdout] ... [INFO] [stdout] 8 | use qudag_crypto::{ [INFO] [stdout] | ------------ one version of crate `rand_core` used here, as a dependency of crate `qudag_crypto` [INFO] [stdout] ... [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | --------------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/block.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait BlockRngCore { [INFO] [stdout] | ---------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `qudag_crypto::MlKem768::keygen_with_rng` [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn keygen_with_rng( [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `MlKem768::keygen_with_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `keygen_with_rng` found for struct `qudag_crypto::MlDsa` in the current scope [INFO] [stdout] --> tests/nist_test_vectors.rs:259:31 [INFO] [stdout] | [INFO] [stdout] 259 | let keypair2 = MlDsa::keygen_with_rng(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `qudag_crypto::MlDsa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DeterministicRng: CryptoRng` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:260:52 [INFO] [stdout] | [INFO] [stdout] 260 | let (pk3, sk3) = MlKem768::keygen_with_rng(&mut rng).unwrap(); [INFO] [stdout] | ------------------------- ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `CryptoRng` is not implemented for `DeterministicRng` [INFO] [stdout] --> tests/nist_test_vectors.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: there are multiple different versions of crate `rand_core` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/lib.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | pub trait CryptoRng {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: tests/nist_test_vectors.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use proptest::prelude::*; [INFO] [stdout] | -------- one version of crate `rand_core` used here, as a dependency of crate `rand` [INFO] [stdout] ... [INFO] [stdout] 8 | use qudag_crypto::{ [INFO] [stdout] | ------------ one version of crate `rand_core` used here, as a dependency of crate `qudag_crypto` [INFO] [stdout] ... [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | --------------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/block.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait BlockRngCore { [INFO] [stdout] | ---------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `qudag_crypto::MlKem768::keygen_with_rng` [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn keygen_with_rng( [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `MlKem768::keygen_with_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | let signature = MlDsa::sign(message, keypair2.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^-------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&MlDsaKeyPair`, found `&[u8; 12]` [INFO] [stdout] | argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&[u8; 12]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 277 - let signature = MlDsa::sign(message, keypair2.secret_key()).unwrap(); [INFO] [stdout] 277 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair2.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:284:31 [INFO] [stdout] | [INFO] [stdout] 284 | assert!(MlDsa::verify(message, &signature, keypair2.public_key()).is_ok()); [INFO] [stdout] | ------------- ^^^^^^^ expected `&MlDsaPublicKey`, found `&[u8; 12]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&[u8; 12]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:365:27 [INFO] [stdout] | [INFO] [stdout] 365 | let dsa_keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 365 | let dsa_keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let signature = MlDsa::sign(&authenticated_message, dsa_keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^-------------------------------------------------- argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `&MlDsaKeyPair`, found `&Vec` [INFO] [stdout] --> tests/nist_test_vectors.rs:378:37 [INFO] [stdout] | [INFO] [stdout] 378 | let signature = MlDsa::sign(&authenticated_message, dsa_keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 378 - let signature = MlDsa::sign(&authenticated_message, dsa_keypair.secret_key()).unwrap(); [INFO] [stdout] 378 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, dsa_keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:382:27 [INFO] [stdout] | [INFO] [stdout] 382 | MlDsa::verify(&authenticated_message, &signature, dsa_keypair.public_key()).is_ok() [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:388:31 [INFO] [stdout] | [INFO] [stdout] 388 | assert!(MlDsa::verify(&tampered_message, &signature, dsa_keypair.public_key()).is_err()); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:411:27 [INFO] [stdout] | [INFO] [stdout] 411 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 411 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:413:29 [INFO] [stdout] | [INFO] [stdout] 413 | let signature = MlDsa::sign(message, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&MlDsaKeyPair`, found `&[u8; 21]` [INFO] [stdout] | argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&[u8; 21]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 413 - let signature = MlDsa::sign(message, keypair.secret_key()).unwrap(); [INFO] [stdout] 413 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:417:40 [INFO] [stdout] | [INFO] [stdout] 417 | prop_assert!(MlDsa::verify(message, &signature, keypair.public_key()).is_ok()); [INFO] [stdout] | ------------- ^^^^^^^ expected `&MlDsaPublicKey`, found `&[u8; 21]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&[u8; 21]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:439:27 [INFO] [stdout] | [INFO] [stdout] 439 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 439 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:441:29 [INFO] [stdout] | [INFO] [stdout] 441 | let signature = MlDsa::sign(message, keypair.secret_key()) [INFO] [stdout] | ^^^^^^^^^^^------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&MlDsaKeyPair`, found `&[u8]` [INFO] [stdout] | argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 441 - let signature = MlDsa::sign(message, keypair.secret_key()) [INFO] [stdout] 441 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:445:31 [INFO] [stdout] | [INFO] [stdout] 445 | MlDsa::verify(message, &signature, keypair.public_key()).is_ok(), [INFO] [stdout] | ------------- ^^^^^^^ expected `&MlDsaPublicKey`, found `&[u8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:459:49 [INFO] [stdout] | [INFO] [stdout] 459 | let result = MlKem768::decapsulate(&sk, &empty_ct); [INFO] [stdout] | --------------------- ^^^^^^^^^ expected `&Ciphertext`, found `&Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&Result` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:464:49 [INFO] [stdout] | [INFO] [stdout] 464 | let result = MlKem768::decapsulate(&sk, &oversized_ct); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^ expected `&Ciphertext`, found `&Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&Result` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:468:23 [INFO] [stdout] | [INFO] [stdout] 468 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 468 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:472:29 [INFO] [stdout] | [INFO] [stdout] 472 | let signature = MlDsa::sign(&message, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^-------------------------------- argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `&MlDsaKeyPair`, found `&Vec` [INFO] [stdout] --> tests/nist_test_vectors.rs:472:41 [INFO] [stdout] | [INFO] [stdout] 472 | let signature = MlDsa::sign(&message, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 472 - let signature = MlDsa::sign(&message, keypair.secret_key()).unwrap(); [INFO] [stdout] 472 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:474:31 [INFO] [stdout] | [INFO] [stdout] 474 | MlDsa::verify(&message, &signature, keypair.public_key()).is_ok(), [INFO] [stdout] | ------------- ^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::HashFunction` [INFO] [stdout] --> tests/nist_test_vectors.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | hash::HashFunction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEncapsulation` [INFO] [stdout] --> tests/nist_test_vectors.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | kem::{Ciphertext, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "nist_test_vectors") due to 39 previous errors; 10 warnings emitted [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> tests/nist_test_vectors.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | for vector in &get_ml_kem_768_kat_vectors() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed` [INFO] [stdout] --> tests/nist_test_vectors.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let seed = [0x42u8; 32]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_seed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pk2` [INFO] [stdout] --> tests/nist_test_vectors.rs:314:14 [INFO] [stdout] | [INFO] [stdout] 314 | let (pk2, sk2) = MlKem768::keygen().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pk2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sk2` [INFO] [stdout] --> tests/nist_test_vectors.rs:314:19 [INFO] [stdout] | [INFO] [stdout] 314 | let (pk2, sk2) = MlKem768::keygen().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sk2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> tests/nist_test_vectors.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | let data = b"test data for hashing"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ed1044555a19d19feb355d18b97e424dd567f46c9ec2750963aad56e14358ea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed1044555a19d19feb355d18b97e424dd567f46c9ec2750963aad56e14358ea5", kill_on_drop: false }` [INFO] [stdout] ed1044555a19d19feb355d18b97e424dd567f46c9ec2750963aad56e14358ea5