Skip to content

Releases: retis-org/btf-rs

v1.1.1

08 Aug 11:44
Compare
Choose a tag to compare
  • Fix license information in Cargo.toml.

v1.1.0

27 Feb 16:53
2a06cc5
Compare
Choose a tag to compare
  • Fwd now has is_struct and is_union helpers.
  • Fixed an issue where resolve_types_by_name failed to find a type if it was defined in a split BTF and the name was in the base one.

v1.0.0

19 Dec 15:28
718852d
Compare
Choose a tag to compare

Breaking changes:

  • resolve_id_by_name and resolve_type_by_name were renamed to resolve_ids_by_name and resolve_types_by_name respectively. They now return a Vec instead of a single match. This is because strings in a BTF definition might be reused by different types. Eg. a function can have the same name as a struct.

Improvements:

  • Btf::type_iter() was added and returns an iterator to traverse types referenced by a given type.
  • Array now reports its number of elements.
  • Btf::resolve_chained_type() and Btf::resolve_name() now accept ?Sized types.

And multiple fixes.