Skip to content

v0.6.0: Squashed commits from bencedit

Compare
Choose a tag to compare
@manokara manokara released this 12 Nov 23:36
· 54 commits to main since this release
2ae33a1

Added

  • Load bencode files
  • Display Values
  • Value::select() method
  • Customizable ValueDisplay
  • Show bytes left in repr_bytes()
  • Bencode samples
  • Value::traverse() method
  • Value::len() method

Changed

  • Limit stack depth in ValueDisplay
  • Fixed empty dicts causing syntax errors
  • Decrease stack count when popping containers in ValueDisplay
  • Truncate long lists in ValueDisplay
  • Dict iterators do not need to be peekable in ValueDisplay
  • Use a builder pattern to change parameters in ValueDisplay
  • Use container stacks with last/last_mut() instead of indexing
  • Make dict keys Strings
  • Make Value::select() and ValueDisplay::fmt() use Value::traverse()
  • Fixed list remainder in ValueDisplay being off by 10. Turns out I was using the iterator to get the number of items.

Removed

  • Ref variants from Value
  • Debug prints