libbpf / libbpf-rs

Minimal and opinionated eBPF tooling for the Rust ecosystem
Other
790 stars 138 forks source link

libbpf-cargo: Implement PartialEq for generated Rust "enums" #1014

Closed danielocfb closed 2 weeks ago

danielocfb commented 2 weeks ago

With the switch from emitting C enums as Rust enums to mapping them to Rust struct instead, we dropped the PartialEq and Eq derives. Add them back to make working with these generated types more convenient.