-
Notifications
You must be signed in to change notification settings - Fork 85
Rust WASM toolchain not installed, please install it! #1206
Comments
Running MIRAI runs as an add-on to the rust compiler and it depends on the toolchain for the particular version of rustc against which it was built (see rust-toolchain.toml). Normally you don't have to worry about this because you'll have rustup installed and cargo will use rustup to get hold of this toolchain when it runs the MIRAI binary. Unfortunately, cross compilation complicates matters quite a bit and MIRAI is not configured and not tested for cross compilation scenarios. It is conceivable that if you run |
It seemed promising but in the end it errored out with "could not compile" |
I'm afraid that you are in a world of complexity where things just won't work out of the box. It might be more productive to concentrate on a small core library and see if you can verify that with --diag=library. |
No updates. |
After running
cargo mirai
against a Rust/Substrate blockchain project, I get this error. The project has multiple custom pallets. I also tried running it in each pallet directory (not sure if that is the correct approach) and it ran but produced no results. I then tried it with--diag=verify
and also--diag=paranoid
. It displayed issues but they were in crate dependencies and not in the project codebase. While I would like to believe that project has no issues, I am skeptical and it's more likely I am not running MIRAI properly. I did build the project withRUSTFLAGS="-Zalways_encode_mir" cargo build
The text was updated successfully, but these errors were encountered: