aya-rs / aya-template

A cargo-generate template for Rust eBPF Projects using Aya
81 stars 41 forks source link

feat: custom target directory support #110

Closed gamedolphin closed 4 weeks ago

gamedolphin commented 5 months ago

If you have CARGO_TARGET_DIR in your config, a new aya project would not compile/execute out of the box. This PR attempts to fix that by reading the CARGO_TARGET_DIR path from the environment and using that to locate the compiled ebpf bundle.

gamedolphin commented 5 months ago

Oh ofc I broke the base case 🤦‍♂️ fixing soon!

tamird commented 4 weeks ago

Can you rebase or close this?

tamird commented 4 weeks ago

This will be closed by #124 which should make the machinery respect CARGO_TARGET_DIR.