From b61f19a54df3bef1b0057389d00a767a7c722447 Mon Sep 17 00:00:00 2001 From: Ez-FlawLess Date: Thu, 2 Oct 2025 17:17:56 +0330 Subject: [PATCH] Move sudo runner configuration to .cargo/config.toml (#155) This simplifies common usage. --- .cargo/config.toml | 2 ++ README.md | 2 +- test.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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 diff --git a/test.sh b/test.sh index d9a2dd8..6c0aad8 100755 --- a/test.sh +++ b/test.sh @@ -102,7 +102,7 @@ case $OS in expect <