v0.23.0
·
554 commits
to refs/heads/master
since this release
What's Changed
libbpf-rs
- Overhauled crate feature set:
- Removed
novendorfeature - Added
vendoredfeature to use vendored copies of all needed libraries
- Removed
- Added
Program::attach_ksyscallfor attaching to ksyscall handlers - Added
Program::test_runas a way for test-running programs - Added
OpenMap::initial_value{,_mut}for retrieving a map's initial value - Added
replacefunctionality toXdptype - Added low-level
consume_rawandpoll_rawmethods toRingBuffertype - Added
recursion_missesattribute toquery::ProgramInfotype - Added
AsRawLibbpfimpl forOpenProgram - Fixed incorrect inference of
btf::types::MemberAttr::Bitfieldvariant - Fixed examples not building on non-x86 architectures
- Fixed potentially missing padding byte initialization on some target architectures
- Fixed compilation issues caused by mismatching function signatures in certain cross-compilation contexts
- Updated
libbpf-sysdependency to1.4.0 - Bumped minimum Rust version to
1.71
libbpf-cargo
- Removed
novendorfeature in favor of having disableable default feature - Added support for
struct_opsshadow objects for generated skeletons - Added support for handling custom data sections in generated skeletons
- Adjusted
SkeletonBuilder::clang_argsto accept an iterator of arguments instead of a string - Added
--clang-argsargument tomakeandbuildsub-commands - Put all generated types into single
<project>_typesmodule as opposed to having multiple modules for various sections (.bss,.rodata, etc.) - Fixed potential naming issues by escaping reserved keywords used in identifiers
- Fixed potential unsoundness issues in generated skeletons by wrapping "unsafe" type in
MaybeUninit - Added pointer based ("raw") access to datasec type to generated skeletons
- Added better handling for bitfields to code generation logic
- Updated
libbpf-sysdependency to1.4.0 - Bumped minimum Rust version to
1.71
New Contributors
- @arighi made their first contribution in #680
- @jfernandez made their first contribution in #687
- @honsunrise made their first contribution in #693
- @EHfive made their first contribution in #742
- @eliad-wiz made their first contribution in #750
Full Changelog: v0.22.1...v0.23.0