Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust Build error #227

Closed
bucanero opened this issue Dec 14, 2024 · 2 comments
Closed

Rust Build error #227

bucanero opened this issue Dec 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@bucanero
Copy link
Contributor

From a fresh repo clone, when running cargo near build, the build fails with the following error:

 │    Compiling near-crypto v0.27.0
 │ error[E0658]: use of unstable library feature 'lazy_cell'
 │   --> /Users/dparrino/.cargo/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/signature.rs:12:5
 │    |
 │ 12 | use std::sync::LazyLock;
 │    |     ^^^^^^^^^^^^^^^^^^^
 │    |
 │    = note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
 │
 │ error[E0658]: use of unstable library feature 'lazy_cell'
 │   --> /Users/dparrino/.cargo/registry/src/index.crates.io-6f17d22bba15001f/near-crypto-0.27.0/src/signature.rs:14:23
 │    |
 │ 14 | pub static SECP256K1: LazyLock<secp256k1::Secp256k1<secp256k1::All>> =
 │    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 │    |
 │    = note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
 │
...
@github-project-automation github-project-automation bot moved this to NEW❗ in DevRel Dec 14, 2024
@bucanero bucanero added the bug Something isn't working label Dec 16, 2024
@frol
Copy link

frol commented Dec 16, 2024

Try upgrading your Rust compiler: rustup update stable

@bucanero
Copy link
Contributor Author

Try upgrading your Rust compiler: rustup update stable

Thanks @frol !🙏 updating the stable toolchain fixed the issue.
(I had rustc 1.80.0 , and now, after installing 1.83.0, the NFT contract was built successfully)

I'll update the ReadMe and add a note so users are aware and can update their Rust environment.

@github-project-automation github-project-automation bot moved this from NEW❗ to Shipped 🚀 in DevRel Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants