You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at using bincode for a WASM project. However, it looks like compilation fails when multi-value returns are turned on.
Here are some steps to reproduce.
Cargo.toml
[package]
name = "my-bincode-lib"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bincode = "1.3.3"
serde = { version = "1.0.164", features = ["derive"] }
[lib]
crate-type = ["cdylib"]
>>> defined as (i32) -> i32 in /Users/adam/wasmtime/my-bincode-lib/target/wasm32-unknown-unknown/debug/deps/libbincode-f593fd3a6c844b6e.rlib(bincode-f593fd3a6c844b6e.bincode.aeaae391-cgu.2.rcgu.o)
>>> defined as (i32, i32) -> void in /Users/adam/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libstd-d66a635e2d91bd07.rlib(std-d66a635e2d91bd07.std.148725e7-cgu.0.rcgu.o)
error: could not compile `my-bincode-lib` (lib) due to previous error
The text was updated successfully, but these errors were encountered:
Going to close this as it does not seem to be a bincode issue, but rather an issue in rust itself. If there is something we can do in bincode to fix this feel free to re-open this
I was looking at using bincode for a WASM project. However, it looks like compilation fails when multi-value returns are turned on.
Here are some steps to reproduce.
Cargo.toml
src/lib.rs
Then compile to WASM with multi-value returns enabled by typing the following into terminal:
RUSTFLAGS="-C target-feature=+multivalue" cargo build --target=wasm32-unknown-unknown
This results in the following error:
The text was updated successfully, but these errors were encountered: