Description:
This update modernizes the Kunai eBPF project’s build system by migrating from a custom xtask-based setup to aya-build, simplifying the development and build workflow, aligning with Aya (Rust eBPF ecosystem) best practices. The PR also addresses build and test issues, removes obsolete configurations, and improves CI compatibility.
Progress:
-
Build System:
-
Replaced the custom
xtaskbuild system withaya-buildintegration. -
Added a new
build.rsfor proper eBPF program building. -
Removed the
xtaskcrate and related infrastructure.
-
-
Configuration:
-
Updated
.cargo/config.tomlto use the LLD linker for musl-based targets. -
Added a sudo runner configuration for privilege handling.
-
Removed redundant eBPF-specific Cargo configurations.
-
-
Code Quality:
-
Fixed Clippy warnings and import formatting issues.
-
Removed unused functions and obsolete code.
-
Resolved broken tests and a
probe_namemacro bug.
-
-
Cleanup:
-
Removed obsolete IDE settings (VSCode, Zed).
-
Cleaned up unused eBPF toolchain configurations.
-
Simplified the Cargo workspace configuration.
-
-
CI Improvements:
-
Updated CI commands for better compatibility.
-
Removed Docker-based builds in favor of native
x86_64andaarch64runners. -
Fixed musl build configurations.
-
Next Steps:
-
Monitor for any integration issues with the new build system.
-
Gather feedback on the updated CI and build process.