Skip to content

clairechingching/upstream-128

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Upstream BPF Template

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

Prerequisites

Set up the custom LLVM and SBPF linker:

cargo run --package xtask -- setup

This will clone and build the modified LLVM BPF backend and SBPF linker.

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages