Solana 锚点构建需要货物版本 2021
cargo version 2021 required on Solana anchor build
我正在尝试 运行 锚定构建并收到以下响应:
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:我已经尝试过以下建议:
您的 solana 安装似乎已经过时了。我会安装 1.8.11
或 运行 solana-install update
有时,也考虑下载点赞,在我的情况下,我不得不将 Cargo.toml
文件中的 2021 年更改为 2018 年,这很有效
我正在尝试 运行 锚定构建并收到以下响应:
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:我已经尝试过以下建议:
您的 solana 安装似乎已经过时了。我会安装 1.8.11
或 运行 solana-install update
有时,也考虑下载点赞,在我的情况下,我不得不将 Cargo.toml
文件中的 2021 年更改为 2018 年,这很有效