Skip to content

Commit

Permalink
Improved version mismatch error message (#3428)
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver T <geronimooliver00@gmail.com>
  • Loading branch information
snOm3ad authored May 15, 2023
1 parent e6ec09c commit 4130092
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions crates/cli-support/src/wit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1475,26 +1475,25 @@ pub fn extract_programs<'a>(
it looks like the Rust project used to create this wasm file was linked against
version of wasm-bindgen that uses a different bindgen format than this binary:
rust wasm file schema version: {}
this binary schema version: {}
rust wasm file schema version: {their_version}
this binary schema version: {my_version}
Currently the bindgen format is unstable enough that these two schema versions
must exactly match. You can accomplish this by either updating the wasm-bindgen
dependency or this binary.
must exactly match. You can accomplish this by either updating this binary or
the wasm-bindgen dependency in the Rust project.
You should be able to update the wasm-bindgen dependency with:
cargo update -p wasm-bindgen
cargo update -p wasm-bindgen --precise {my_version}
or you can update the binary with
don't forget to recompile your wasm file! Alternatively, you can update the
binary with:
cargo install -f wasm-bindgen-cli
cargo install -f wasm-bindgen-cli --version {their_version}
if this warning fails to go away though and you're not sure what to do feel free
to open an issue at https://github.com/rustwasm/wasm-bindgen/issues!
",
their_version,
my_version,
"
);
}
let next = get_remaining(&mut payload).unwrap();
Expand Down

0 comments on commit 4130092

Please sign in to comment.