Skip to content

v0.22.0

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Dec 17:21
· 557 commits to refs/heads/master since this release

What's Changed

libbpf-rs

  • Reworked Error type:
    • Replaced enum with data variants with struct hiding internal structure
    • Added support for chaining of errors
    • Overhauled how errors are displayed
  • Overhauled query::ProgramInfo and query::ProgInfoIter to make them more readily usable
  • Added Btf::from_vmlinux constructor and adjusted Btf::from_path to work with both raw and ELF files
  • Reworked ObjectBuilder:
    • Made name method fallible
    • Adjusted opts to return a reference to libbpf_sys::bpf_object_open_opts
    • Removed object name argument from open_memory constructor
    • Added pin_root_path setter
  • Added AsRawLibbpf trait as a unified way to retrieve libbpf equivalents for libbpf-rs objects
  • Added Map::update_batch method
  • Implemented Send for Link
  • Bumped minimum Rust version to 1.65
  • Updated bitflags dependency to 2.0

libbpf-cargo

  • Adjusted skeleton creation logic to generate shared and exclusive datasec accessor functions
  • Removed Error enum in favor of anyhow::Error
  • Bumped minimum Rust version to 1.65

New Contributors

Full Changelog: v0.21.2...v0.22.0