Files
telecom-platform/apps/packet-gateway/build.rs
T
nutcas3 c32d377488 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
2026-04-23 03:00:58 +03:00

14 lines
308 B
Rust

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");
}
}