[INFO] cloning repository https://github.com/diegofornalha/QuDAG [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/diegofornalha/QuDAG" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiegofornalha%2FQuDAG", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiegofornalha%2FQuDAG'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 52dc3005a86b6e63120514b0448ec5b4a4dfde03 [INFO] checking diegofornalha/QuDAG against try#5ec4d3b0c83717313176eefa7d71e9d36dc83355 for 155501-infallible-never-no-reservation [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiegofornalha%2FQuDAG" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/diegofornalha/QuDAG [INFO] finished tweaking git repo https://github.com/diegofornalha/QuDAG [INFO] tweaked toml for git repo https://github.com/diegofornalha/QuDAG written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/diegofornalha/QuDAG on toolchain 5ec4d3b0c83717313176eefa7d71e9d36dc83355 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/diegofornalha/QuDAG 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" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a89d4becdb489244526a0fe9d8a9362a08382412bb89c5be73b81e59baadb86 [INFO] running `Command { std: "docker" "start" "-a" "2a89d4becdb489244526a0fe9d8a9362a08382412bb89c5be73b81e59baadb86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a89d4becdb489244526a0fe9d8a9362a08382412bb89c5be73b81e59baadb86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a89d4becdb489244526a0fe9d8a9362a08382412bb89c5be73b81e59baadb86", kill_on_drop: false }` [INFO] [stdout] 2a89d4becdb489244526a0fe9d8a9362a08382412bb89c5be73b81e59baadb86 [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=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5ec4d3b0c83717313176eefa7d71e9d36dc83355" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a6ff27d07ec8d4caca7f67d900eb169dcc397fe0acff69aef33b8272f7646883 [INFO] running `Command { std: "docker" "start" "-a" "a6ff27d07ec8d4caca7f67d900eb169dcc397fe0acff69aef33b8272f7646883", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.173 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking multihash v0.19.3 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling aws-lc-rs v1.13.1 [INFO] [stderr] Compiling libp2p-swarm-derive v0.35.0 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.16 [INFO] [stderr] Checking netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking bytemuck v1.23.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Checking netlink-packet-core v0.7.0 [INFO] [stderr] Compiling snow v0.9.6 [INFO] [stderr] Compiling quinn-udp v0.5.12 [INFO] [stderr] Checking rustls-native-certs v0.8.1 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Checking data-encoding-macro v0.1.18 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking multibase v0.9.1 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking dtoa v1.0.10 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking wide v0.7.32 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling quinn v0.11.8 [INFO] [stderr] Checking webpki-roots v1.0.0 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking yasna v0.5.2 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking clap_builder v4.5.40 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking rustix v1.0.7 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking multistream-select v0.13.0 [INFO] [stderr] Checking rw-stream-sink v0.4.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking asynchronous-codec v0.7.0 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking netlink-packet-route v0.17.1 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking quick-protobuf-codec v0.3.1 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Compiling aws-lc-sys v0.29.0 [INFO] [stderr] Checking poly1305 v0.8.0 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking futures-bounded v0.2.4 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking hickory-proto v0.24.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking yamux v0.12.1 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Checking yamux v0.13.5 [INFO] [stderr] Checking chacha20poly1305 v0.10.1 [INFO] [stderr] Checking futures-ticker v0.0.3 [INFO] [stderr] Checking fastbloom v0.9.0 [INFO] [stderr] Checking prometheus-client v0.22.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking x25519-dalek v2.0.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking libp2p-identity v0.2.11 [INFO] [stderr] Checking qudag-crypto v0.1.0 (/opt/rustwide/workdir/core/crypto) [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stdout] warning: unused import: `subtle::ConstantTimeEq` [INFO] [stdout] --> core/crypto/src/kem/ml_kem.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use subtle::ConstantTimeEq; [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: `subtle::ConstantTimeEq` [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use subtle::ConstantTimeEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zeroize::Zeroize` [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use zeroize::Zeroize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `subtle::ConstantTimeEq` [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | use subtle::ConstantTimeEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ZeroizeOnDrop` and `Zeroize` [INFO] [stdout] --> core/crypto/src/hqc.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use zeroize::{Zeroize, ZeroizeOnDrop}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:688:5 [INFO] [stdout] | [INFO] [stdout] 688 | t1: &[[i32; 256]; ML_DSA_K], [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c_tilde` [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:689:5 [INFO] [stdout] | [INFO] [stdout] 689 | c_tilde: &[u8; 64], [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_c_tilde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:691:5 [INFO] [stdout] | [INFO] [stdout] 691 | h: &[u8], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> core/crypto/src/signature.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct PublicKey(Vec); [INFO] [stdout] | --------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `PublicKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> core/crypto/src/signature.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct SecretKey(Vec); [INFO] [stdout] | --------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `SecretKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> core/crypto/src/signature.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Signature(Vec); [INFO] [stdout] | --------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Signature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `secure_zero` is never used [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn secure_zero(data: &mut [u8]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ML_DSA_TAU` is never used [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | const ML_DSA_TAU: usize = 49; // number of ±1 coefficients in challenge [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ML_DSA_BETA` is never used [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | const ML_DSA_BETA: i32 = 196; // largest coefficient in signature polynomial [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ML_DSA_GAMMA1` is never used [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | const ML_DSA_GAMMA1: i32 = 524288; // parameter for high-order bits [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ML_DSA_GAMMA2` is never used [INFO] [stdout] --> core/crypto/src/ml_dsa/mod.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | const ML_DSA_GAMMA2: i32 = 95232; // parameter for low-order bits [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `security` and `g` are never read [INFO] [stdout] --> core/crypto/src/hqc.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Parameters { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 20 | /// Security level [INFO] [stdout] 21 | security: SecurityParameter, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | g: Vec, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Parameters` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> core/crypto/src/hqc.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct PublicKey { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | params: Parameters, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PublicKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> core/crypto/src/hqc.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct SecretKey { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | params: Parameters, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecretKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> core/crypto/src/hqc.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Ciphertext { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 76 | params: Parameters, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ciphertext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> core/crypto/src/kem/ml_kem.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | ct_hasher.finalize_xof().read(&mut ct); [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] 36 | let _ = ct_hasher.finalize_xof().read(&mut ct); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> core/crypto/src/kem/ml_kem.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | ss_hasher.finalize_xof().read(&mut ss); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 46 | let _ = ss_hasher.finalize_xof().read(&mut ss); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> core/crypto/src/kem/ml_kem.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | pk_hasher.finalize_xof().read(&mut derived_pk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 68 | let _ = pk_hasher.finalize_xof().read(&mut derived_pk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> core/crypto/src/kem/ml_kem.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | ss_hasher.finalize_xof().read(&mut ss); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 75 | let _ = ss_hasher.finalize_xof().read(&mut ss); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking multiaddr v0.18.2 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Checking libp2p-core v0.42.0 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Compiling pathfinder_simd v0.5.5 [INFO] [stderr] Checking proptest v1.7.0 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Checking libloading v0.8.8 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling font-kit v0.14.3 [INFO] [stderr] Checking weezl v0.1.10 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Checking libp2p-yamux v0.46.0 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking pathfinder_geometry v0.5.1 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking dirs v6.0.0 [INFO] [stderr] Checking float-ord v0.3.2 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking ttf-parser v0.20.0 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking plotters-bitmap v0.3.7 [INFO] [stdout] error[E0432]: unresolved import `criterion` [INFO] [stdout] --> core/crypto/benches/crypto_optimized.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{black_box, criterion_group, criterion_main, Criterion, BenchmarkId}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `criterion` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criterion`, use `cargo add criterion` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> core/crypto/benches/crypto_optimized.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [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: `AtomicU64` and `Ordering` [INFO] [stdout] --> core/crypto/benches/crypto_optimized.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::atomic::{AtomicU64, Ordering}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid format string: expected `}`, found `l` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | / prop_assert!(result.is_err() || { [INFO] [stdout] 253 | | let original_ss = MlKem768::decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] 254 | | result.unwrap().as_bytes() != original_ss.as_bytes() [INFO] [stdout] 255 | | }); [INFO] [stdout] | |______________^ expected `}` in format string [INFO] [stdout] | [INFO] [stdout] = note: if you intended to print `{`, you can escape it using `{{` [INFO] [stdout] = note: this error originates in the macro `concat` which comes from the expansion of the macro `prop_assert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] Checking libp2p-swarm v0.45.1 [INFO] [stdout] warning: unused imports: `MlDsaError`, `MlDsaKeyPair`, `MlDsaPublicKey`, and `MlDsa` [INFO] [stdout] --> core/crypto/tests/basic_ml_dsa_test.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | use qudag_crypto::ml_dsa::{MlDsa, MlDsaKeyPair, MlDsaPublicKey, MlDsaError}; [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` (bench "crypto_optimized") due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved imports `qudag_crypto::signatures`, `qudag_crypto::ml_dsa::MlDsa87` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | kem, signatures, encryption, fingerprint::Fingerprint, [INFO] [stdout] | ^^^^^^^^^^ no `signatures` in the root [INFO] [stdout] 4 | ml_kem::{MlKem768, Metrics as MlKemMetrics}, [INFO] [stdout] 5 | ml_dsa::MlDsa87, [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `MlDsa87` in `ml_dsa` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 3 - kem, signatures, encryption, fingerprint::Fingerprint, [INFO] [stdout] 3 + kem, signature, encryption, fingerprint::Fingerprint, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 5 - ml_dsa::MlDsa87, [INFO] [stdout] 5 + ml_dsa::MlDsa, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand::rngs::SeedableRng` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use rand::rngs::{StdRng, SeedableRng}; [INFO] [stdout] | ^^^^^^^^^^^ no `SeedableRng` in `rngs` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these traits instead: [INFO] [stdout] rand::SeedableRng [INFO] [stdout] rand_core::SeedableRng [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `criterion` [INFO] [stdout] --> core/crypto/benches/crypto_benchmarks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{black_box, criterion_group, criterion_main, Criterion}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `criterion` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criterion`, use `cargo add criterion` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: trait `KeyEncapsulation` is private [INFO] [stdout] --> core/crypto/benches/crypto_benchmarks.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use qudag_crypto::ml_kem::{MlKem768, KeyEncapsulation}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ private trait [INFO] [stdout] | [INFO] [stdout] note: the trait `KeyEncapsulation` is defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::kem::{KEMError, KeyEncapsulation, PublicKey, SecretKey, Ciphertext, SharedSecret}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: import `KeyEncapsulation` directly [INFO] [stdout] | [INFO] [stdout] 2 | use qudag_crypto::ml_kem::{MlKem768, qudag_crypto::kem::KeyEncapsulation}; [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (bench "crypto_benchmarks") due to 2 previous errors [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | kem::generate_keypair(&mut rng) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 25 | let (shared_secret1, ciphertext) = kem::encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | let shared_secret2 = kem::decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_compare` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | prop_assert!(bool::from(kem::constant_time_compare(&shared_secret1, &shared_secret2))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | let (_, ct1) = kem::encapsulate(&keypair1.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | let (_, ct2) = kem::encapsulate(&keypair2.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | let result1 = kem::decapsulate(&keypair2.secret_key, &ct1); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in module `kem` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | let result2 = kem::decapsulate(&keypair1.secret_key, &ct2); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `KeyPair` in module `encryption` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:94:78 [INFO] [stdout] | [INFO] [stdout] 94 | fn arb_enc_keypair()(mut rng in any::<[u8; 32]>()) -> Result { [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::kem::KeyPair; [INFO] [stdout] | [INFO] [stdout] 1 + use qudag_crypto::KeyPair; [INFO] [stdout] | [INFO] [stdout] help: if you import `KeyPair`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 94 - fn arb_enc_keypair()(mut rng in any::<[u8; 32]>()) -> Result { [INFO] [stdout] 94 + fn arb_enc_keypair()(mut rng in any::<[u8; 32]>()) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in module `encryption` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | encryption::generate_keypair(&mut rng) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 107 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encrypt` in module `encryption` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | let ciphertext = encryption::encrypt(&mut rng, &keypair.public_key, &message).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decrypt` in module `encryption` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:110:37 [INFO] [stdout] | [INFO] [stdout] 110 | let decrypted = encryption::decrypt(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 123 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encrypt` in module `encryption` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:125:42 [INFO] [stdout] | [INFO] [stdout] 125 | let mut ciphertext = encryption::encrypt(&mut rng, &keypair.public_key, &message).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decrypt` in module `encryption` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:130:31 [INFO] [stdout] | [INFO] [stdout] 130 | match encryption::decrypt(&keypair.secret_key, &ciphertext) { [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Metrics as MlKemMetrics`, `SecurityParameter`, and `error::CryptoError` [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | ml_kem::{MlKem768, Metrics as MlKemMetrics}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | ml_dsa::MlDsa87, [INFO] [stdout] 6 | hqc::{Hqc256, SecurityParameter}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | hash::HashFunction, [INFO] [stdout] 8 | error::CryptoError [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let mut rng = StdRng::from_seed(rng); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | let mut rng = StdRng::from_seed(rng); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | let mut rng = StdRng::from_seed(rng); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:184:32 [INFO] [stdout] | [INFO] [stdout] 184 | let mut rng1 = StdRng::from_seed(seed1); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:185:32 [INFO] [stdout] | [INFO] [stdout] 185 | let mut rng2 = StdRng::from_seed(seed2); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:188:37 [INFO] [stdout] | [INFO] [stdout] 188 | let mut rng1_copy = StdRng::from_seed(seed1); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::MlKem768` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:189:35 [INFO] [stdout] | [INFO] [stdout] 189 | let keypair1a = MlKem768::generate_keypair(&mut rng1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::MlKem768` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:190:35 [INFO] [stdout] | [INFO] [stdout] 190 | let keypair1b = MlKem768::generate_keypair(&mut rng1_copy).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::MlKem768` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:196:34 [INFO] [stdout] | [INFO] [stdout] 196 | let keypair2 = MlKem768::generate_keypair(&mut rng2).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:202:26 [INFO] [stdout] | [INFO] [stdout] 202 | let (ss1, ct1) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ --------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 202 - let (ss1, ct1) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng1).unwrap(); [INFO] [stdout] 202 + let (ss1, ct1) = MlKem768::encapsulate(&keypair1a.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:203:26 [INFO] [stdout] | [INFO] [stdout] 203 | let (ss2, ct2) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng2).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ --------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 203 - let (ss2, ct2) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng2).unwrap(); [INFO] [stdout] 203 + let (ss2, ct2) = MlKem768::encapsulate(&keypair1a.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:211:74 [INFO] [stdout] | [INFO] [stdout] 211 | let recovered_ss1 = MlKem768::decapsulate(&keypair1a.secret_key, &ct1).unwrap(); [INFO] [stdout] | --------------------- ^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:212:74 [INFO] [stdout] | [INFO] [stdout] 212 | let recovered_ss2 = MlKem768::decapsulate(&keypair1a.secret_key, &ct2).unwrap(); [INFO] [stdout] | --------------------- ^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:222:31 [INFO] [stdout] | [INFO] [stdout] 222 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::MlKem768` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:223:33 [INFO] [stdout] | [INFO] [stdout] 223 | let keypair = MlKem768::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:230:34 [INFO] [stdout] | [INFO] [stdout] 230 | let (shared_secret, _) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 230 - let (shared_secret, _) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] 230 + let (shared_secret, _) = MlKem768::encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:240:31 [INFO] [stdout] | [INFO] [stdout] 240 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::MlKem768` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:241:33 [INFO] [stdout] | [INFO] [stdout] 241 | let keypair = MlKem768::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:242:31 [INFO] [stdout] | [INFO] [stdout] 242 | let (_, ciphertext) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 242 - let (_, ciphertext) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] 242 + let (_, ciphertext) = MlKem768::encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes_mut` found for struct `SharedSecret` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:246:36 [INFO] [stdout] | [INFO] [stdout] 246 | let ct_bytes = tampered_ct.as_bytes_mut(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `as_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 246 - let ct_bytes = tampered_ct.as_bytes_mut(); [INFO] [stdout] 246 + let ct_bytes = tampered_ct.as_bytes(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:250:69 [INFO] [stdout] | [INFO] [stdout] 250 | let result = MlKem768::decapsulate(&keypair.secret_key, &tampered_ct); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:253:78 [INFO] [stdout] | [INFO] [stdout] 253 | let original_ss = MlKem768::decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | --------------------- ^^^^^^^^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:270:31 [INFO] [stdout] | [INFO] [stdout] 270 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:303:31 [INFO] [stdout] | [INFO] [stdout] 303 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:322:31 [INFO] [stdout] | [INFO] [stdout] 322 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:349:31 [INFO] [stdout] | [INFO] [stdout] 349 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:350:31 [INFO] [stdout] | [INFO] [stdout] 350 | let keypair = Hqc256::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `encrypt` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:354:38 [INFO] [stdout] | [INFO] [stdout] 354 | let ciphertext = Hqc256::encrypt(&keypair.public_key, plaintext, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `decrypt` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:355:37 [INFO] [stdout] | [INFO] [stdout] 355 | let decrypted = Hqc256::decrypt(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | ^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `encrypt` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:360:39 [INFO] [stdout] | [INFO] [stdout] 360 | let ciphertext2 = Hqc256::encrypt(&keypair.public_key, plaintext, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:371:31 [INFO] [stdout] | [INFO] [stdout] 371 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:372:31 [INFO] [stdout] | [INFO] [stdout] 372 | let keypair = Hqc256::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `encrypt` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:374:34 [INFO] [stdout] | [INFO] [stdout] 374 | let ciphertext = Hqc256::encrypt(&keypair.public_key, &plaintext, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `decrypt` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:386:38 [INFO] [stdout] | [INFO] [stdout] 386 | let decrypt_result = Hqc256::decrypt(&keypair.secret_key, &corrupted_ct); [INFO] [stdout] | ^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:412:22 [INFO] [stdout] | [INFO] [stdout] 412 | let hasher = HashFunction::blake3(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 412 | let hasher = ::blake3(); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:441:22 [INFO] [stdout] | [INFO] [stdout] 441 | let hasher = HashFunction::blake3(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 441 | let hasher = ::blake3(); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:469:31 [INFO] [stdout] | [INFO] [stdout] 469 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ associated function or constant not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::MlKem768` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:472:37 [INFO] [stdout] | [INFO] [stdout] 472 | let kem_keypair = MlKem768::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `generate_keypair` found for struct `qudag_crypto::hqc::Hqc256` in the current scope [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:474:35 [INFO] [stdout] | [INFO] [stdout] 474 | let hqc_keypair = Hqc256::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated function or constant not found in `qudag_crypto::hqc::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:475:22 [INFO] [stdout] | [INFO] [stdout] 475 | let hasher = HashFunction::blake3(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 475 | let hasher = ::blake3(); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:478:39 [INFO] [stdout] | [INFO] [stdout] 478 | let (shared_secret, kem_ct) = MlKem768::encapsulate(&kem_keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 478 - let (shared_secret, kem_ct) = MlKem768::encapsulate(&kem_keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] 478 + let (shared_secret, kem_ct) = MlKem768::encapsulate(&kem_keypair.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/crypto/tests/prop_tests.rs:489:79 [INFO] [stdout] | [INFO] [stdout] 489 | let recovered_secret = MlKem768::decapsulate(&kem_keypair.secret_key, &kem_ct).unwrap(); [INFO] [stdout] | --------------------- ^^^^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> core/crypto/src/ml_kem/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425, E0432, E0599, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "prop_tests") due to 61 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a6ff27d07ec8d4caca7f67d900eb169dcc397fe0acff69aef33b8272f7646883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6ff27d07ec8d4caca7f67d900eb169dcc397fe0acff69aef33b8272f7646883", kill_on_drop: false }` [INFO] [stdout] a6ff27d07ec8d4caca7f67d900eb169dcc397fe0acff69aef33b8272f7646883