dalek-cryptography / bulletproofs

A pure-Rust implementation of Bulletproofs using Ristretto.
MIT License
1.02k stars 216 forks source link

run `cargo test` failed #366

Closed zjingwang closed 1 year ago

zjingwang commented 1 year ago

hi, there. i am learning how to use this projects and had this problem: ` Caused by: unable to get packages from source

Caused by: failed to parse manifest at /.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-1.6.1/Cargo.toml

Caused by: failed to parse the edition key

Caused by: supported edition values are 2015 or 2018, but 2021 is unknown `

ripa1995 commented 1 year ago

Your issue lacks a bit of information and also seems to be more an issue related to rayon rather than bulletproofs, but I'll try to help.

It looks like you are trying to use bulletproofs with rayon in your custom project, which version of Rustc are you using (rayon 1.6.1 requires rustc version 1.56+)? Try to run rustup update.

zjingwang commented 1 year ago

thanks for your help, sir, i'll try to update.

19231224lhr commented 1 year ago

thanks for your help, sir, i'll try to update.

Dear friends, do you solve this problem? image

ripa1995 commented 1 year ago

thanks for your help, sir, i'll try to update.

Dear friends, do you solve this problem? image

Hey, the issue seems to be related Rust version described in the toolchain and supported by the bulletproofs main branch. syn 2.0.15 requires version 1.56. There are some PRs open / forks that fix such issues (one from our team actually).

19231224lhr commented 1 year ago

thanks for your help, sir, i'll try to update.

Dear friends, do you solve this problem? image

Hey, the issue seems to be related Rust version described in the toolchain and supported by the bulletproofs main branch. syn 2.0.15 requires version 1.56. There are some PRs open / forks that fix such issues (one from our team actually).

very thanks! I used your method and finally : image

is this successfully passing the cargo test?

ripa1995 commented 1 year ago

thanks for your help, sir, i'll try to update.

Dear friends, do you solve this problem? image

Hey, the issue seems to be related Rust version described in the toolchain and supported by the bulletproofs main branch. syn 2.0.15 requires version 1.56. There are some PRs open / forks that fix such issues (one from our team actually).

very thanks! I used your method and finally : image

is this successfully passing the cargo test?

Yes it should be.