Go to file
Tamir Duberstein a9d42d7c65
Build on ubuntu-22.04
This matches the version used in the bpf-linker binstall job. Otherwise
we fail with:
```
  = note: bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by bpf-linker)
          bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by bpf-linker)
          bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by bpf-linker)
```

Add a nightly build so we catch these earlier.
.cargo Remove branch specifications
.github Build on ubuntu-22.04
.vim lsp: use project-name instead of crate_name to generate Cargo.toml path
.vscode lsp: use project-name instead of crate_name to generate Cargo.toml path
xtask add a build command ()
{{project-name}} chore: Use `aya`, `aya-ebpf` and `aya-log` from crates.io
{{project-name}}-common chore: Use `aya`, `aya-ebpf` and `aya-log` from crates.io
{{project-name}}-ebpf lsp: support rust-analyzer on helix editor ()
.dir-locals.el fix: emacs directory locals
.gitignore chore: remove Cargo.lock from .gitignore ()
Cargo.toml build: Set `resolver = "2"` at the workspace's Cargo.toml
README.md add a build command ()
cargo-generate.toml Remove branch specifications
pre-script.rhai include and use clap only if needed
test.sh socket_filter: fix build

README.md

{{project-name}}

Prerequisites

  1. 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

Build eBPF and Userspace

cargo xtask build

Run

RUST_LOG=info cargo xtask run