Skip to content

v1.0.0

Compare
Choose a tag to compare
@atenart atenart released this 19 Dec 15:28
· 26 commits to main since this release
718852d

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.