libbpf / libbpf-bootstrap

Scaffolding for BPF application development with libbpf and BPF CO-RE
BSD 3-Clause "New" or "Revised" License
1.1k stars 300 forks source link

Old libbpf-rs versions in Rust examples #295

Closed 0xB10C closed 1 week ago

0xB10C commented 2 weeks ago

While looking for example for libbpf-rs 0.24, I noticed the Rust examples use quite old libbpf-rs versions. The libbpf-rs API has changed quite a bit in recent versions. It would be good to have examples that work with libbpf-rs 0.24.

https://github.com/libbpf/libbpf-bootstrap/blob/4a567f229efe8fc79ee1a2249569eb6b9c02ad1b/examples/rust/xdp/Cargo.toml#L13

https://github.com/libbpf/libbpf-bootstrap/blob/4a567f229efe8fc79ee1a2249569eb6b9c02ad1b/examples/rust/tracecon/Cargo.toml#L10

https://github.com/libbpf/libbpf-bootstrap/blob/4a567f229efe8fc79ee1a2249569eb6b9c02ad1b/examples/rust/profile/Cargo.toml#L11

0xB10C commented 2 weeks ago

Note that there are up-to-date examples in https://github.com/libbpf/libbpf-rs/tree/master/examples if anyone else is looking for them.

danielocfb commented 2 weeks ago

Yeah, we should update. I was going to set up Dependabot, but it's probably too much noise for the maintainers...