-
Notifications
You must be signed in to change notification settings - Fork 42
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
compile_test
fails with non-nightly compiler
#250
Comments
BPF is not a stabilized target in Rust, it's in Tier 3 and therefore available only in Rust nightly. So it's not even possible to compile BPF programs with stable Rust toolchains yet. |
Oh, do I understand correctly that this package can't work with stable Rust at all, and therefore mitmproxy just implicitly started requiring a nightly compiler? |
I don't know about mitmproxy, but if they are using Aya (on the eBPF side; using Aya just as a loader in user-space is possible with stable Rust) and bpf-linker, then yes, it requires a nightly compiler. We were thinking about starting the process of stabilizing and moving the BPF target towards Tier 2 after adding a proper support of:
And letting these features sink in and stabilize, before we declare 100% feature parity with libbpf. But in case mitmproxy or any other well established project is already using Aya and that's blocking you from updating the package in Gentoo, then I think we should just ping the Rust community already and figure out whether we can move towards Tier 2 now. Let me take a look at mitmproxy, I will think of what we can do. |
OK, yeah, this part needs Rust nightly https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-linux-ebpf We have an open issue about stabilizing the target, #6, let's discuss it there. Do you mind if I close this one? |
I'm trying to package bpf-linker for Gentoo. As part of the packaging effort, we find it important to run tests to verify that the package works correctly. Currently, the test suite seems to fail hard with the production version of the Rust toolchain:
Could you please either make the test work with production versions of the Rust compiler, or make it possible to skip it gracefully (e.g. via
--features
)?The text was updated successfully, but these errors were encountered: