Skip to content

v0.4.0

Compare
Choose a tag to compare
@tmfink tmfink released this 02 Jun 23:56
· 292 commits to master since this release
v0.4.0
56c0ebb

Added

  • Criterion benchmark
  • cstool example
  • Codecov code coverage integration
  • PartialOrd/Ord implementation for InsnId, InsnGroupId, RegId
  • Lifetime to Capstone/Insn struct
  • alloc_system feature to use the system allocator instead of the default allocator (currently requires nightly)

Changed

  • Minimum Rust version to 1.23.0
  • Capstone::disasm() methods take &mut self instead of &self and returns a new lifetime
  • Capstone is no longer Send/Sync (it was mistakenly auto-implemented)
  • Capstone::new() builder pattern methods take self instead of &mut self
  • Capstone::set_endian() is now public (allowed since internal Capstone version was upgraded)

Removed

  • Duplicate/unneeded Capstone methods that have equivalents in InsnDetail
    • insn_belongs_to_group(), insn_group_ids(), register_id_is_read(), read_register_ids(),
      register_id_is_written(), write_register_ids()

Fixed

  • Race condition and memory unsafety in issue most easily observed on Mac OS (issue #26)