|
|
|
@ -3,11 +3,11 @@
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
1. stable rust toolchains: `rustup toolchain install stable`
|
|
|
|
|
1. nightly rust toolchains: `rustup toolchain install nightly --component rust-src`
|
|
|
|
|
1. (if cross-compiling) rustup target: `rustup target add ${ARCH}-unknown-linux-musl`
|
|
|
|
|
1. (if cross-compiling) LLVM: (e.g.) `brew install llvm` (on macOS)
|
|
|
|
|
1. (if cross-compiling) C toolchain: (e.g.) [`brew install filosottile/musl-cross/musl-cross`](https://github.com/FiloSottile/homebrew-musl-cross) (on macOS)
|
|
|
|
|
1. bpf-linker: `cargo install bpf-linker` (`--no-default-features` on macOS)
|
|
|
|
|
2. nightly rust toolchains: `rustup toolchain install nightly --component rust-src`
|
|
|
|
|
3. (if cross-compiling) rustup target: `rustup target add ${ARCH}-unknown-linux-musl`
|
|
|
|
|
4. (if cross-compiling) LLVM: (e.g.) `brew install llvm` (on macOS)
|
|
|
|
|
5. (if cross-compiling) C toolchain: (e.g.) [`brew install filosottile/musl-cross/musl-cross`](https://github.com/FiloSottile/homebrew-musl-cross) (on macOS)
|
|
|
|
|
6. bpf-linker: `cargo install bpf-linker` (`--no-default-features` on macOS)
|
|
|
|
|
|
|
|
|
|
## Build & Run
|
|
|
|
|
|
|
|
|
|