I used the official documentation. Install the latest Rust stable from https://rustup.rs/ . Install the latest Solana command-line tools.
But when i try cargo build-bpf
in command line in windows 10 i get error:
D:\hello_world\>cargo build-bpf
info: uninstalling toolchain 'solana'
info: toolchain 'solana' uninstalled
error: no such command: `+solana`
Cargo does not handle `+toolchain` directives.
Did you mean to invoke `cargo` through `rustup` instead?
Cargo.toml:
[package]
name = "hello_world"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
solana-sdk = "1.17.4"
[lib]
name = "hello_world"
crate-type = ["cdylib", "lib"]
How to solve a problem?