What's Changed
- Update to bincode 2 by @SwishSwushPow in #15
- Restructuring dependencies a bit by @SwishSwushPow in #16
- Toolchain update 1.87.0 by @SwishSwushPow in #17
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 viabuffi_macro::exported
. - BuFFI now also defines which version and features of
bincode
it requires. This version ofbincode
is being re-exported viabuffi::bincode
. In case you have addedbincode
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 theFrom
implementations for theSerializableError
need to be adjusted slightly. Check out the readme or the example to see how that could look like. Essentially you need to provide aFrom
implementation from aDecodeError
and anEncodeError
sincebincode
makes that distinction now. You can use the types from the re-exportedbincode
in BuFFI viabuffi::bincode::error::DecodeError
.