A template for creating Solana BPF programs using the upstream LLVM toolchain.
Install the required tools:
# Install sbpf-linker
cargo install sbpf-linker
# Install cargo-generate
cargo install cargo-generateCreate a new project from this template:
cargo generate --git https://github.com/blueshift-gg/solana-upstream-bpf-template.gitBuild your BPF program:
cargo +nightly build-bpfThe compiled program will be at:
target/bpfel-unknown-none/release/libyour_program_name.so
Run tests:
cargo testMIT