mir-json provides rustc and cargo integration for
mir-verifier.
-
If you are starting from scratch, you need to first install the rust compiler via the
rustuptool. (Instructions are from the rust book).$ curl https://sh.rustup.rs -sSf | shTo finish the compiler installation you need to add the tools to your path:
$ source $HOME/.cargo/env -
Next, install a version of
rustcthat works with mir-json.$ rustup toolchain install nightly-2020-03-22 --force $ rustup component add --toolchain nightly-2020-03-22 rustc-dev $ rustup default nightly-2020-03-22 -
Now compile
mir-jsonand install its executables to your path.$ cargo install --locked -
Check that
mir-jsonwas installed correctly$ mir-json --versionThis should print a version string.
See the mir-verifier README for usage instructions.