Skip to content

Releases: sunilkr/rustbin

Breaking changes to external API

27 May 23:54

Choose a tag to compare

Pre-release

There are breaking changes to PE parsing external API.

This version skips loading entire file in memory before parsing. As a result, following changes are introduced.

Parameters are consumed:

  • Pass a File type directly to the parse_file. This value is consumed.
  • Pass a Vec<u8> to parse_bytes. This value is consumed.
  • New trait BufReadExt extends BufRead trait and Pe::parse_readable can accept any type implementing BufReadExt.
  • Resource data is not loaded during parsing. Explicit call to load_data is required on a mut instance of ResourceData.