Commit Graph

12 Commits (940a60e0a3a731dcebce84fe49cbeb6f8588316a)

Author SHA1 Message Date
Tamir Duberstein 5811d6ff56 Replace xtask builds with build scripts
Adapt https://github.com/aya-rs/aya/commit/3d463a3 and subsequent work
to the template. This has worked very well for us in the main project,
and our users should get the same hotness.

Note that xtask is still used for running, as it is in the main project.
wanjunlei 7c143de8af
add a build command ()
Add a new command to build ebpf and userspace programs without running.

```
cargo xtask build
```

Co-authored-by: Michal Rostecki <vadorovsky@protonmail.com>
Tamir Duberstein 0c06a47bc2 Remove redundant instructions
We just need to install bpf-linker; the rest of this is already encoded
in rust-toolchain.toml.

Fixes .
Dmitry Savintsev 732b7ea930 sync run nightly install directions with Book
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Dmitry Savintsev 715967772f upgrade deps: tokio and anyhow
Michal Rostecki cba4774787 readme: Mention `RUST_LOG` env variable
The default log level of env_logger is `error`. We are using `info!` in
the template, so let's suggest running the example with `RUST_LOG=info`.

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
William Findlay a80359acca
userspace: use include_bytes_aligned! instead of --path flag
William Findlay 329731038b
readme: document new cargo xtask run helper
Alessandro Decina bf54208f6a README: fix run command
Michal Rostecki f3a8f5d003 readme: Fix the cargo run --bin flag
The flag for `cargo run` is `--bin`, not `-bin`.

Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Dave Tucker 5d018fd6ba Add xtask for building ebpf programs
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker 9e1c761d8d Initial Commit
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>