@d-e-s-o @ work
@d-e-s-o @ work
Okay, short of that you can just fake a `'static` lifetime, as per my understanding: ```patch --- src/manager.rs +++ src/manager.rs @@ -1,4 +1,4 @@ -use std::mem::MaybeUninit; +use std::mem::{transmute, MaybeUninit}; use...
> Another breakage from this change is that I am no longer able to have a global static (behind LazyLock) of Bpf kind. This is because of `std::ptr::NonNull` not `Sync`,...
You'll have to share why it can't compile.
Did you check the Makefile? The program is very much part of the build process, but you need a Rust toolchain installed. https://github.com/libbpf/libbpf-bootstrap/blob/2dffae1fca82fd9ef4ba15df67606cbfd2eb5412/examples/c/Makefile#L30-L38
For Docker specifically, I am not really familiar with the infra we have there. It's possible that the container does not come with a Rust toolchain and so it would...
May be a good idea. Feel free to open a PR.
If you need a process to test against can you create one?
> The failing tests looks like are caused the test VMs' kernel being < 6.17? If that's the case you can mark them as ignored for now. https://github.com/libbpf/libbpf-rs/blob/e0caff4e52982ff5eca8c0008af0e70fcc709580/libbpf-rs/tests/test.rs#L1702 At the...
It's failing because you don't use all functions provided by the `common` module, which your new `test_stream` module uses, so Rust complains about unused code. I fixed it up and...
I am not sure there is a good way to inject custom derives. That being said, we have https://github.com/libbpf/libbpf-rs/issues/350 which would hopefully either make us come up with a general...