We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attempting to use rust_wasm_bindgen to cause a transition results in a wasm file with a bad magic number:
error: failed to parse input file as wasm caused by: Bad magic number (at offset 0)
My BUILD:
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary") load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library") load("@io_bazel_rules_rust//wasm_bindgen:wasm_bindgen.bzl", "rust_wasm_bindgen") rust_binary( name = "example", edition = "2018", srcs = [ "src/main.rs", ], deps = [ "//cargo:wasmer_runtime", ], data = [":wasm_bindgen_bg.wasm"] ) rust_wasm_bindgen( name = "wasm_bindgen", wasm_file = ":wasm" ) rust_library( name = "wasm", srcs = [ "wasm/src/lib.rs", ], edition = "2018", )
I invoke bazel using bazel build //app:example
bazel build //app:example
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Attempting to use rust_wasm_bindgen to cause a transition results in a wasm file with a bad magic number:
My BUILD:
I invoke bazel using
bazel build //app:example
The text was updated successfully, but these errors were encountered: