Skip to content

Rust Build error #227

@bucanero

Description

@bucanero

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
 │
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions