[求助] cargo 配置

ASDF 发布于 2026-01-15 阅读 637

solana课程,按照老师的步骤,cargobuild-sbf命令始终报错,尝试无数次请问哪位大佬能帮我?cargobuild-sbferror:failedtodownloadconstant_time_eqv0.4.2Causedby:unabletogetp

solana 课程,按照老师的步骤,cargo build-sbf 命令始终报错,尝试无数次 请问哪位大佬能帮我?

cargo build-sbf

error: failed to download constant_time_eq v0.4.2

Caused by: unable to get packages from source

Caused by: failed to download replaced source registry crates-io

Caused by: failed to parse manifest at /root/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/constant_time_eq-0.4.2/Cargo.toml

Caused by: feature edition2024 is required

The package requires the Cargo feature called edition2024, but that feature is not stabilized in this version of Cargo (1.84.0 (12fe57a9d 2025-04-07)). Consider trying a more recent nightly release. See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.

相关文章

0 条评论