Skip to content

V2.0.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@VictorKoenders VictorKoenders released this 14 Dec 14:33
· 114 commits to trunk since this release
dd7fbd8

Breaking:

  • All decode_from_slice functions now also return the number of bytes read #445
  • Bincode-derive now auto-implements T: Encode when implementing #[derive(Encode)] (same for Decode/DecodeBorrowed)
    • See #451 for more information

Config integer limit

Bincode now supports size limits again. Size limits can be configured as followed:

let config = Configuration::standard() // or ::legacy()
    .with_limit::<10000>();

Other changes:

  • Added Decode/Encode for HashMap<K, V>: #438
  • Added test case for a borrowed str: #441
  • Fixed clippy warnings: #447
  • Impl BorrowDecode for Option<&[u8]> and Option<&str>: #446
  • Extract virtue: #443
  • Made the CI also check the benchmarks, fixed compile issue in benchmarks: #449
  • Made the derive macros automatically implement the required traits on generic arguments: #454

Full Changelog: v2.0.0-alpha.1...V2.0.0-alpha.2