From dfc9b13ebe4f3c304c8749bd21ce1a16657bc7c2 Mon Sep 17 00:00:00 2001 From: AmirAli Date: Sun, 24 Aug 2025 15:47:28 +0330 Subject: [PATCH] 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 --- .cargo/config.toml | 2 ++ README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..366daff --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target."cfg(all())"] +runner = "sudo -E" diff --git a/README.md b/README.md index 894d9ed..7563af3 100644 --- a/README.md +++ b/README.md @@ -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