-
Notifications
You must be signed in to change notification settings - Fork 515
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
bincode
v2.0.0 error: cannot find decode_borrowed_from_slice
#2876
Comments
Burn uses For the released Burn versions, please add an explicit dependency to the pre-release version in your [dependencies]
burn = { version = "0.16.0", features = ["wgpu"] }
bincode = "=2.0.0-rc.3"
bincode_derive = "=2.0.0-rc.3" The new |
Thank you so much for your detailed explanation and solution. |
Re-opening in favor of #2880 since an explanation and solution has been given here. |
bincode
v2.0.0 error: cannot find decode_borrowed_from_slice
is there an eta for the fix on main branch? or new release ideally. |
For some reason cargo was not resolving to bincode v2.0 locally or on the CI so I thought the pinned rc3 had been merged, but it's still contained in another PR. Just opened a PR for this fix specifically. Will update to 2.0 once rust 1.86 comes out because we always support current (1.85) and prev (1.84), and bincode 2.0 has MSRV 1.85. No ETA for a release at this time, we have a couple of things we still want to do to wrap up the next release 🙂 |
Describe the bug
When I do a
cargo build
with Burn as a dependency, cargo reports that Burn Core cannot findbincode::serde
.To Reproduce
cargo add burn --features wgpu
.cargo test
.Expected behavior
Pass the test without any problems.
Screenshots

Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: