Giter Site home page Giter Site logo

Comments (4)

hermanventer avatar hermanventer commented on June 9, 2024 1

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.

rlaferla avatar rlaferla commented on June 9, 2024

It seemed promising but in the end it errored out with "could not compile"

from mirai.

hermanventer avatar hermanventer commented on June 9, 2024

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.

hermanventer avatar hermanventer commented on June 9, 2024

No updates.

from mirai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.