Go to file
Dave Tucker 250c9ff653
Merge pull request from vadorovsky/readme-fix-arg
readme: Fix the cargo run --bin flag
.cargo Add xtask for building ebpf programs
xtask Add xtask for building ebpf programs
{{project-name}} aya isn't optional for the main program
{{project-name}}-common Initial Commit
{{project-name}}-ebpf Add xtask for building ebpf programs
.gitignore Initial Commit
Cargo.toml Add xtask for building ebpf programs
README.md readme: Fix the cargo run --bin flag

README.md

{{project-name}}

Prerequisites

  1. Install a rust stable toolchain: rustup install stable
  2. Install a rust nightly toolchain: rustup install nightly
  3. Install bpf-linker: cargo install bpf-linker

Build eBPF

cargo xtask build-ebpf

To perform a release build you can use the --release flag. You may also change the target architecture with the --target flag

Build Userspace

cargo build

Run

cargo run --package {{project-name}} --bin {{project-name}}