Skip to content

blueshift-gg/solana-upstream-bpf-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Upstream BPF Template

A template for creating Solana BPF programs using the upstream LLVM toolchain.

Prerequisites

Install the required tools:

# Install sbpf-linker
cargo install sbpf-linker

# Install cargo-generate
cargo install cargo-generate

Usage

Create a new project from this template:

cargo generate --git https://github.com/blueshift-gg/solana-upstream-bpf-template.git

Building

Build your BPF program:

cargo +nightly build-bpf

The compiled program will be at:

target/bpfel-unknown-none/release/libyour_program_name.so

Testing

Run tests:

cargo test

License

MIT

About

A template to initialize a new upstream BPF project for Solana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages