-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
cargo-saw-build
and saw-rustc
commands
Fixes #39.
- Loading branch information
1 parent
b999962
commit 0fcb195
Showing
6 changed files
with
268 additions
and
163 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//! `cargo saw-build`: Compile a MIR JSON file for SAW verification purposes. | ||
//! | ||
//! Despite the name, this is actually a wrapper around `cargo test --no-run`, | ||
//! not `cargo build`. This is because we need to produce a binary in order for | ||
//! `mir-json-rustc-wrapper` to work, and building a test binary is a reliable | ||
//! way to do so. | ||
//! | ||
//! Crucible-specific build options can be set in the `[package.metadata.crux]` section of | ||
//! `Cargo.toml`. Currently supported options: | ||
//! | ||
//! * `use_override_crates` (list of strings): Use Crucible overrides for the named crates. These | ||
//! crates will be hidden from their downstream dependencies, causing fallback to the | ||
//! verifier-friendly implementations shipped with Crux. | ||
|
||
#![feature(rustc_private)] | ||
extern crate cargo; | ||
extern crate clap; | ||
extern crate rustc; | ||
extern crate rustc_session; | ||
extern crate serde_json; | ||
|
||
mod cargo_test_common; | ||
use cargo_test_common::*; | ||
|
||
fn main() { | ||
cargo_test_common("saw-build", "Build a MIR JSON file for SAW verification purposes", &vec!["--no-run".to_owned()]); | ||
} |
Oops, something went wrong.