Move sudo runner configuration to .cargo/config.toml

- Added [target."cfg(all())"] runner = "sudo -E" to .cargo/config.toml
- Updated README to remove manual --config runner instructions for cargo run
- Simplifies running the
pull/155/head
AmirAli 2 weeks ago
parent e50b81fd67
commit dfc9b13ebe

@ -0,0 +1,2 @@
[target."cfg(all())"]
runner = "sudo -E"

@ -14,7 +14,7 @@
Use `cargo build`, `cargo check`, etc. as normal. Run your program with:
```shell
cargo run --release --config 'target."cfg(all())".runner="sudo -E"'
cargo run --release
```
Cargo build scripts are used to automatically build the eBPF correctly and include it in the

Loading…
Cancel
Save