[INFO] fetching crate zkvc 0.1.0... [INFO] testing zkvc-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate zkvc 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate zkvc 0.1.0 [INFO] finished tweaking crates.io crate zkvc 0.1.0 [INFO] tweaked toml for crates.io crate zkvc 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate zkvc 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate zkvc 0.1.0 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ark-relations v0.3.0 [INFO] [stderr] Downloaded actix-rt v2.10.0 [INFO] [stderr] Downloaded ark-poly v0.3.0 [INFO] [stderr] Downloaded ark-r1cs-std v0.3.1 [INFO] [stderr] Downloaded ark-crypto-primitives v0.3.0 [INFO] [stderr] Downloaded tracing-subscriber v0.2.25 [INFO] [stderr] Downloaded actix-web v4.10.2 [INFO] [stderr] Downloaded ark-bls12-381 v0.3.0 [INFO] [stderr] Downloaded actix-http v3.11.0 [INFO] [stderr] Downloaded ark-snark v0.3.0 [INFO] [stderr] Downloaded bytestring v1.4.0 [INFO] [stderr] Downloaded ark-serialize-derive v0.3.0 [INFO] [stderr] Downloaded ark-groth16 v0.3.0 [INFO] [stderr] Downloaded blake2 v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb9ea3fc3d32393c48d9d1b4f1e242fc5b57bb532c9599c2db01e2f0ab1d7319 [INFO] running `Command { std: "docker" "start" "-a" "bb9ea3fc3d32393c48d9d1b4f1e242fc5b57bb532c9599c2db01e2f0ab1d7319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb9ea3fc3d32393c48d9d1b4f1e242fc5b57bb532c9599c2db01e2f0ab1d7319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb9ea3fc3d32393c48d9d1b4f1e242fc5b57bb532c9599c2db01e2f0ab1d7319", kill_on_drop: false }` [INFO] [stdout] bb9ea3fc3d32393c48d9d1b4f1e242fc5b57bb532c9599c2db01e2f0ab1d7319 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78a2b5fe9c2d9f58ebf8c0a871e44dfddb8c43d108dae5851b8aaba32fa80d6d [INFO] running `Command { std: "docker" "start" "-a" "78a2b5fe9c2d9f58ebf8c0a871e44dfddb8c43d108dae5851b8aaba32fa80d6d", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling icu_properties_data v2.0.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling cc v1.2.22 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling blake2 v0.9.2 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling brotli v8.0.1 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling openssl-sys v0.9.108 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ark-std v0.3.0 [INFO] [stderr] Compiling ark-serialize-derive v0.3.0 [INFO] [stderr] Compiling ark-ff-asm v0.3.0 [INFO] [stderr] Compiling ark-ff-macros v0.3.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling ark-serialize v0.3.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling pest v2.8.0 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling semver-parser v0.10.3 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling ark-ff v0.3.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling ark-ec v0.3.0 [INFO] [stderr] Compiling ark-relations v0.3.0 [INFO] [stderr] Compiling ark-poly v0.3.0 [INFO] [stderr] Compiling ark-snark v0.3.0 [INFO] [stderr] Compiling ark-crypto-primitives v0.3.0 [INFO] [stderr] Compiling ark-bls12-381 v0.3.0 [INFO] [stderr] Compiling ark-r1cs-std v0.3.1 [INFO] [stderr] Compiling ark-groth16 v0.3.0 [INFO] [stderr] Compiling actix-http v3.11.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling actix-web v4.10.2 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling zkvc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "78a2b5fe9c2d9f58ebf8c0a871e44dfddb8c43d108dae5851b8aaba32fa80d6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78a2b5fe9c2d9f58ebf8c0a871e44dfddb8c43d108dae5851b8aaba32fa80d6d", kill_on_drop: false }` [INFO] [stdout] 78a2b5fe9c2d9f58ebf8c0a871e44dfddb8c43d108dae5851b8aaba32fa80d6d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10ab248350743acb4da5e5c93b484b7c3a67c787ca69665fa89dbe2d5e6d6192 [INFO] running `Command { std: "docker" "start" "-a" "10ab248350743acb4da5e5c93b484b7c3a67c787ca69665fa89dbe2d5e6d6192", kill_on_drop: false }` [INFO] [stderr] Compiling zkvc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.67s [INFO] running `Command { std: "docker" "inspect" "10ab248350743acb4da5e5c93b484b7c3a67c787ca69665fa89dbe2d5e6d6192", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10ab248350743acb4da5e5c93b484b7c3a67c787ca69665fa89dbe2d5e6d6192", kill_on_drop: false }` [INFO] [stdout] 10ab248350743acb4da5e5c93b484b7c3a67c787ca69665fa89dbe2d5e6d6192 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b1dd43881c3b7f2d9639ed0f400c049059c0fdf3f14d050d9a55ae31500e641e [INFO] running `Command { std: "docker" "start" "-a" "b1dd43881c3b7f2d9639ed0f400c049059c0fdf3f14d050d9a55ae31500e641e", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/zkvc-f633f28154c54a59) [INFO] [stderr] Doc-tests zkvc [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - (line 59) ... FAILED [INFO] [stdout] test src/lib.rs - (line 108) ... FAILED [INFO] [stdout] test src/lib.rs - (line 25) ... FAILED [INFO] [stdout] test src/lib.rs - (line 133) ... FAILED [INFO] [stdout] test src/lib.rs - (line 79) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 59) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MyCircuit` in this scope [INFO] [stdout] --> src/lib.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | let circuit = MyCircuit { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:73:2 [INFO] [stdout] | [INFO] [stdout] 60 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_59_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 73 | )?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 60 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_59_0() -> Result<(), Box> { [INFO] [stdout] 61 | use std::path::PathBuf; [INFO] [stdout] ... [INFO] [stdout] 73 | )?; [INFO] [stdout] 74 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 108) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:115:23 [INFO] [stdout] | [INFO] [stdout] 115 | proving_key_path: PathBuf::from("pk.bin"), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 107 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] 107 + use ark_std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 116 | proof_path: Some(PathBuf::from("proof.json")), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 107 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] 107 + use ark_std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MyCircuit` in this scope [INFO] [stdout] --> src/lib.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let circuit = MyCircuit { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:127:66 [INFO] [stdout] | [INFO] [stdout] 109 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 127 | let response = client.generate_and_send_proof(Box::new(circuit)).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:114:53 [INFO] [stdout] | [INFO] [stdout] 109 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 114 | server_url: Url::parse("http://127.0.0.1:65432")?, [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 109 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() -> Result<(), Box> { [INFO] [stdout] 110 | use zkvc::client::{ClientApp, ClientConfig}; [INFO] [stdout] ... [INFO] [stdout] 127 | let response = client.generate_and_send_proof(Box::new(circuit)).await?; [INFO] [stdout] 128 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:120:36 [INFO] [stdout] | [INFO] [stdout] 109 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 120 | let client = ClientApp::new(config)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 109 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() -> Result<(), Box> { [INFO] [stdout] 110 | use zkvc::client::{ClientApp, ClientConfig}; [INFO] [stdout] ... [INFO] [stdout] 127 | let response = client.generate_and_send_proof(Box::new(circuit)).await?; [INFO] [stdout] 128 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 25) stdout ---- [INFO] [stdout] error[E0599]: no method named `enforce_equal` found for enum `ark_r1cs_std::fields::fp::FpVar` in the current scope [INFO] [stdout] --> src/lib.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | private_var.enforce_equal(&public_var)?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ark-r1cs-std-0.3.1/src/eq.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn enforce_equal(&self, other: &Self) -> Result<(), SynthesisError> { [INFO] [stdout] | ------------- the method is available for `ark_r1cs_std::fields::fp::FpVar>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `EqGadget` which provides `enforce_equal` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 24 + use ark_r1cs_std::eq::EqGadget; [INFO] [stdout] | [INFO] [stdout] help: there is a method `enforce_not_equal` with a similar name [INFO] [stdout] | [INFO] [stdout] 49 | private_var.enforce_not_equal(&public_var)?; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 133) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arkworks_mimc` [INFO] [stdout] --> src/lib.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | use arkworks_mimc::{ [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `arkworks_mimc` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arkworks_mimc`, use `cargo add arkworks_mimc` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `context` in this scope [INFO] [stdout] --> src/lib.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | let public_zero = context.new_witness(|| Ok(Fr::from(0u64)))?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/lib.rs:141:45 [INFO] [stdout] | [INFO] [stdout] 141 | let public_zero = context.new_witness(|| Ok(Fr::from(0u64)))?; [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 141 - let public_zero = context.new_witness(|| Ok(Fr::from(0u64)))?; [INFO] [stdout] 141 + let public_zero = context.new_witness(|| Ok(Fn::from(0u64)))?; [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 133 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `context` in this scope [INFO] [stdout] --> src/lib.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | .map(|x| context.new_witness(|| Ok(*x))) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/lib.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | let mimc_var = MiMCVar::::new( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/function.rs:76:0 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 147 - let mimc_var = MiMCVar::::new( [INFO] [stdout] 147 + let mimc_var = MiMCVar::::new( [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 133 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `context` in this scope [INFO] [stdout] --> src/lib.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | let value = context.new_witness(|| Ok(Fr::from(42)))?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/lib.rs:153:39 [INFO] [stdout] | [INFO] [stdout] 153 | let value = context.new_witness(|| Ok(Fr::from(42)))?; [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 153 - let value = context.new_witness(|| Ok(Fr::from(42)))?; [INFO] [stdout] 153 + let value = context.new_witness(|| Ok(Fn::from(42)))?; [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 133 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/lib.rs:154:38 [INFO] [stdout] | [INFO] [stdout] 154 | let hash = MiMCNonFeistelCRHGadget::::evaluate( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/function.rs:76:0 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 154 - let hash = MiMCNonFeistelCRHGadget::::evaluate( [INFO] [stdout] 154 + let hash = MiMCNonFeistelCRHGadget::::evaluate( [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 133 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FpVar` [INFO] [stdout] --> src/lib.rs:156:6 [INFO] [stdout] | [INFO] [stdout] 156 | &FpVar::::Constant(Fr::from(0u64)).to_bytes()?, [INFO] [stdout] | ^^^^^ use of undeclared type `FpVar` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 133 + use ark_r1cs_std::fields::fp::FpVar; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/lib.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | &FpVar::::Constant(Fr::from(0u64)).to_bytes()?, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/function.rs:76:0 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 156 - &FpVar::::Constant(Fr::from(0u64)).to_bytes()?, [INFO] [stdout] 156 + &FpVar::::Constant(Fr::from(0u64)).to_bytes()?, [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 133 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/lib.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | &FpVar::::Constant(Fr::from(0u64)).to_bytes()?, [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 156 - &FpVar::::Constant(Fr::from(0u64)).to_bytes()?, [INFO] [stdout] 156 + &FpVar::::Constant(Fn::from(0u64)).to_bytes()?, [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 133 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 79) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | verification_key_path: PathBuf::from("vk.bin"), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 78 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] 78 + use ark_std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:102:14 [INFO] [stdout] | [INFO] [stdout] 80 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_79_0() { [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 102 | server.run().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 80 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_79_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 88 | let server = ServerApp::new(config)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 80 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_79_0() -> Result<(), Box> { [INFO] [stdout] 81 | use zkvc::server::{ServerApp, ServerConfig}; [INFO] [stdout] ... [INFO] [stdout] 102 | server.run().await?; [INFO] [stdout] 103 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 108) [INFO] [stdout] src/lib.rs - (line 133) [INFO] [stdout] src/lib.rs - (line 25) [INFO] [stdout] src/lib.rs - (line 59) [INFO] [stdout] src/lib.rs - (line 79) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b1dd43881c3b7f2d9639ed0f400c049059c0fdf3f14d050d9a55ae31500e641e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1dd43881c3b7f2d9639ed0f400c049059c0fdf3f14d050d9a55ae31500e641e", kill_on_drop: false }` [INFO] [stdout] b1dd43881c3b7f2d9639ed0f400c049059c0fdf3f14d050d9a55ae31500e641e