Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically trigger ebpf build on cargo run in workspace root #30

Open
tomaszjonak opened this issue Apr 24, 2023 · 1 comment
Open

Comments

@tomaszjonak
Copy link
Contributor

Poked a little today but no satisfying results. Looks like this would be a clean solution rust-lang/cargo#9096. It is not stabilized yet though.

@vadorovsky
Copy link
Contributor

vadorovsky commented Apr 25, 2023

An another problem is that the ebpf crate has to be built with -Z build-std=core argument. I don't think that the current bindep solution supports providing rustc flags for a single crate inside workspace.

https://github.com/deepfence/guardity/blob/main/xtask/src/build_ebpf.rs#L49-L50

We tried to think many times how could we drop the build-ebpf xtask, but there is no way to make it work now.

https://discord.com/channels/855676609003651072/855676609003651075/1014674111475241082
https://discord.com/channels/855676609003651072/855676609003651075/872750358231928833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants