我正在尝试运行锚点构建,并收到以下响应:
BPF SDK: /root/.local/share/solana/install/releases/1.8.0/solana-release/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
error: failed to download `solana-frozen-abi v1.9.4`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-frozen-abi-1.9.4/Cargo.toml`
Caused by:
feature `edition2021` is required
consider adding `cargo-features = ["edition2021"]` to the manifest
PS:我已经尝试了以下建议:无法指定"edition2021"以便在Rust 中使用不稳定的包
您的solana安装似乎已经过时了。我会安装1.8.11
或只运行solana-install update
有时,也可以考虑下载到喜欢的版本。在我的情况下,我不得不将Cargo.toml
文件中的2021更改为2018,这在中起到了作用