The solana-program-library says to build apps with cargo build-bpf yet if you look at cargo --help this is not mentioned as a valid argument. How does cargo know to look at BPF SDK: /home/phil/Downloads/solana-1.10.8/bin/sdk/bpf Why don't you build with cargo b like most Rust apps.

1 Answer 1


cargo --list does contain the build-bpf

It is a cargo tool that is a super set of build. What is does is take the LLVM output of build (i.e. rustc) and transpiles it into BPF which is the acceptable form for a Solana program to run on the chain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.