Created
November 1, 2018 21:46
-
-
Save jjpe/6aa6d27009ebc00ace9ede17468d729b to your computer and use it in GitHub Desktop.
WASM/Rust build error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
j@lear ~/dev/accept/test/sbr-validate-npm master wasm-pack build | |
[1/9] Checking `rustc` version... | |
[2/9] Checking crate configuration... | |
[3/9] Adding WASM target... | |
info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date | |
[4/9] Compiling to WASM... | |
Compiling sbr-validate-npm v0.9.0 (/home/j/dev/accept/test/sbr-validate-npm) | |
error[E0277]: the trait bound `sbr_interpreter_api::Interpreter: wasm_bindgen::convert::IntoWasmAbi` is not satisfied | |
--> src/lib.rs:38:1 | |
| | |
38 | #[wasm_bindgen] | |
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::convert::IntoWasmAbi` is not implemented for `sbr_interpreter_api::Interpreter` | |
| | |
= note: required because of the requirements on the impl of `wasm_bindgen::convert::ReturnWasmAbi` for `sbr_interpreter_api::Interpreter` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0277`. | |
error: Could not compile `sbr-validate-npm`. | |
| To learn more, run the command again with --verbose. | |
Compiling your crate to WebAssembly | |
Caused by: Process exited with exit code: 101: `cargo build` did not exit successfully. | |
stdout: | |
stderr: | |
Compiling sbr-validate-npm v0.9.0 (/home/j/dev/accept/test/sbr-validate-npm) | |
error[E0277]: the trait bound `sbr_interpreter_api::Interpreter: wasm_bindgen::convert::IntoWasmAbi` is not satisfied | |
--> src/lib.rs:38:1 | |
| | |
38 | #[wasm_bindgen] | |
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::convert::IntoWasmAbi` is not implemented for `sbr_interpreter_api::Interpreter` | |
| | |
= note: required because of the requirements on the impl of `wasm_bindgen::convert::ReturnWasmAbi` for `sbr_interpreter_api::Interpreter` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0277`. | |
error: Could not compile `sbr-validate-npm`. | |
To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment