feat: Add build script for eBPF program compilation with cargo build-bpf integration

- Add build.rs with Command execution for cargo build-bpf --release
- Add status check with panic on build failure for eBPF program compilation
This commit is contained in:
nutcas3
2026-04-23 03:00:58 +03:00
parent 3d868580ae
commit c32d377488
+13
View File
@@ -0,0 +1,13 @@
use std::process::Command;
fn main() {
// Build the eBPF program
let status = Command::new("cargo")
.args(&["build-bpf", "--release"])
.status()
.expect("Failed to execute cargo build-bpf");
if !status.success() {
panic!("Failed to build eBPF program");
}
}