Comments (4)
Running cargo mirai
is the preferred way. Since you seem to be concerned with verification rather than just bug finding, so probably want to run MIRAI_FLAGS=--diag=verify cargo mirai
. Note that this assumes that you are willing and able to add explicit annotations to the source code being analyzed.
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 rustup +nightly-2023-03-22 target add wasm32-unknown-unknown
before running cargo mirai
, things will just work. (I tend never to be quite so lucky whenever I try to cross compile anything, but you never know.)
from mirai.
It seemed promising but in the end it errored out with "could not compile"
from mirai.
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.
from mirai.
No updates.
from mirai.
Related Issues (20)
- Environment variable MIRAI_FLAGS or MIRAI_LOG do not work HOT 2
- MIRAI fails analysing: error: could not compile <bin> HOT 2
- feature request: Annotating traits for attaching tags HOT 3
- question: propagation through closure containing tagged values HOT 14
- suggestion: add example + usage in the README HOT 1
- Memory Usage for rebuild_std.sh HOT 3
- Question: Foreign contracts HOT 6
- Add JSON structure reporting HOT 1
- MIRAI only sees one member of a workspace HOT 4
- Compiler unexpectedly panicked when execute `cargo mirai`
- How to pass `--cfg` to mirai? HOT 1
- Does the behavior of add_tag!() and does_not_have_tag!() be affected by type and clone()? HOT 1
- Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT
- No warnings shown for library methods HOT 6
- Is it possible for it to work with async code
- OOM during cargo mirai project analysis
- MacOS Mirai errors HOT 1
- Panic while compiling `libm` HOT 3
- Panic on `std::f64::<impl f64>::log2` HOT 1
- Compilation issues on older versions of crates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirai.