-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking changes between 2.0.0 and 2.1.1 #2749
Comments
Thanks for reporting @Michael-F-Bryan. This breaking change is affecting 2.1 and 2.1.1. We are thinking on publishing 2.0.1 and pin-point the exact versions for wasmer-related crates so that way you can depend on We apologize for any inconvenience the breaking change caused on your side. |
WasmPtr had breaking changes on it's public API and this was not indicated properly on the changelog. Related issue: #2749
2759: Use exact version for Wasmer crate dependencies r=ptitSeb a=Amanieu We don't guarantee API compatibility between internal Wasmer crates when making minor version bumps. This will avoid issues like #2749 in the future. Co-authored-by: Amanieu d'Antras <[email protected]>
Thanks @syrusakbary! Luckily, we were able to pin to a specific version and had already committed our #2759 pinned internal crate versions, so this issue should now be resolved. |
Due to stupid breaking change: wasmerio/wasmer#2749
Due to stupid breaking change: wasmerio/wasmer#2749
It looks like the return type of
WasmPtr::<T, Array>::deref()
was changed from&[Cell<u8>]
toVec<WasmCell<u8>>
between version 2.0.0 and 2.1.1 of thewasmer
crate without bumping the major version number.Before:
wasmer/lib/api/src/ptr.rs
Lines 146 to 154 in 327192c
After:
wasmer/lib/api/src/sys/ptr.rs
Lines 126 to 139 in 9f92666
I was initally unable to reproduce this issue because there seem to be breaking changes in other parts of the API. That meant when I pinned
wasmer
to2.0.0
it tried to use version2.1.1
ofwasmer-engine
and friends, which triggers other compile errors.Steps to reproduce:
Git bisect says the breaking change was introduced around 5ede1ac (#2442). Depending on your versioning policy, you may want to yank
2.0.0
or yank2.1.1
and re-release it as3.0.0
.The text was updated successfully, but these errors were encountered: