Skip to content

cargo prove build --ignore-rust-versionnot working #163

@MauroToscano

Description

@MauroToscano

Error when building as the documentation suggests

While following the documented steps to build the program, the following error appears after cargo prove build --ignore-rust-version:

cargo:warning=rustc +succinct --version: "rustc 1.85.0-dev\n"
[sp1]     Compiling alloy-eip2930 v0.2.3
[sp1]     Compiling revm-bytecode v7.1.0
[sp1]     Compiling revm-precompile v29.0.0
[sp1]     Compiling icu_provider v2.1.1
[sp1]     Compiling alloy-json-rpc v1.1.0
[sp1]     Compiling alloy-signer v1.1.0
[sp1]     Compiling getrandom v0.3.4
[sp1]     Compiling libm v0.2.15
[sp1]     Compiling rlp v0.5.2
[sp1]     Compiling alloy-rpc-types-debug v1.1.0
[sp1]     Compiling kzg-rs v0.2.7 (https://github.com/succinctlabs/kzg-rs#15bdc9bf)
[sp1]  error: `Vec::<T, A>::capacity` is not yet stable as a const fn
[sp1]    --> /Users/maurofab/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alloy-eip2930-0.2.3/src/lib.rs:31:37
[sp1]     |
[sp1]  31 |         mem::size_of::<Address>() + self.storage_keys.capacity() * mem::size_of::<B256>()
[sp1]     |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[sp1]     |
[sp1]     = help: add `#![feature(const_vec_string_slice)]` to the crate attributes to enable
[sp1]  
[sp1]  error: could not compile `alloy-eip2930` (lib) due to 1 previous error
[sp1]  warning: build failed, waiting for other jobs to finish...
[sp1]  error[E0658]: use of unstable library feature `unsigned_is_multiple_of`
[sp1]    --> /Users/maurofab/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/revm-precompile-29.0.0/src/bls12_381/g1_msm.rs:27:37
[sp1]     |
[sp1]  27 |     if input_len == 0 || !input_len.is_multiple_of(G1_MSM_INPUT_LENGTH) {
[sp1]     |                                     ^^^^^^^^^^^^^^
[sp1]     |
[sp1]     = note: see issue #128101 <https://github.com/rust-lang/rust/issues/128101> for more information
[sp1]     = help: add `#![feature(unsigned_is_multiple_of)]` to the crate attributes to enable
[sp1]  

Notice using --locked ends up with this error:

cargo prove build --locked
cargo:warning=rustc +succinct --version: "rustc 1.85.0-dev\n"
[sp1]  error: rustc 1.85.0-dev is not supported by the following packages:
[sp1]    [email protected] requires rustc 1.88
[sp1]    [email protected] requires rustc 1.88

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions