Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@SwishSwushPow SwishSwushPow released this 15 May 19:08

What's Changed

Full Changelog: v0.2.7...v0.3.0

Migrating to BuFFI 0.3.0

  • BuFFI has a slightly different dependency structure now. This means that you only need to add buffi to your Cargo.toml files. buffi_macro should not be used directly.
  • Because of the change described above, the proc macro is now available via buffi::exported and not via buffi_macro::exported.
  • BuFFI now also defines which version and features of bincode it requires. This version of bincode is being re-exported via buffi::bincode. In case you have added bincode only to work with BuFFI, you can now remove it from your Cargo.toml file.
  • With this update we have also update the version of bincode from 1 to 2. bincode 2 comes with some breaking changes, so the From implementations for the SerializableError need to be adjusted slightly. Check out the readme or the example to see how that could look like. Essentially you need to provide a From implementation from a DecodeError and an EncodeError since bincode makes that distinction now. You can use the types from the re-exported bincode in BuFFI via buffi::bincode::error::DecodeError.