I have been following a tutorial on Solana native development and need to interact with SPL-Token crate at some point.
However, I can not build (cargo-build-bpf
), it throws:
BPF SDK: /Users/user1/.local/share/solana/install/releases/1.9.28/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
Updating crates.io index
error: failed to select a version for the requirement 'toml_edit = "^0.18"'
candidate versions found which didn't match: 0.14.4, 0.14.3, 0.14.2, ...
location searched: crates.io index
required by package 'proc-macro-crate v1.3.0'
... which satisfies dependency 'proc-macro-crate = "^1"' (locked to 1.3.0) of package 'num_enum_derive v0.5.7'
... which satisfies dependency 'num_enum_derive = "^0.5.7"' (locked to 0.5.7) of package 'num_enum v0.5.7'
... which satisfies dependency 'num_enum = "^0.5.4"' (locked to 0.5.7) of package 'spl-token v3.5.0'
... which satisfies dependency 'spl-token = "^3.5.0"' (locked to 3.5.0) of package 'core-4 v0.1.0 (/Users/rog/Desktop/Solana Development/Buildspace/core-4)'
I tried to build on Windows10 (WSL
) and on Mac, the result is exactly same.
Any ideas?