Skip to content

Commit

Permalink
Add cargo-verus tool and split out verus-driver
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed May 24, 2024
1 parent b6e55a7 commit bf22caf
Show file tree
Hide file tree
Showing 22 changed files with 1,551 additions and 71 deletions.
381 changes: 328 additions & 53 deletions source/Cargo.lock

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions source/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ members = [
"air",
"builtin",
"builtin_macros",
"cargo-verus",
"vir",
"vir_macros",
"rust_verify",
"verus",
"verus-driver",
"verus-sysroot-dummy",
"rust_verify_test",
"rust_verify_test_macros",
"state_machines_macros",
"verusdoc",
"vstd",
"vstd_build",
"tools/internals_interface",
"tools/line_count",
"tools/qi-graph",
]
exclude = [
"vstd",
]

# do not modify the following two lines
[workspace.metadata.vargo]
Expand Down
3 changes: 3 additions & 0 deletions source/builtin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ name = "builtin"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[package.metadata.verus]
is-builtin = true
3 changes: 3 additions & 0 deletions source/builtin_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ synstructure = "0.12"
syn = "1.0"
syn_verus = { path="../../dependencies/syn", features = ["full", "visit", "visit-mut", "extra-traits"] }
prettyplease_verus = { path="../../dependencies/prettyplease" }

[package.metadata.verus]
is-builtin-macros = true
15 changes: 15 additions & 0 deletions source/cargo-verus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "cargo-verus"
version = "0.1.0"
edition = "2021"

[dependencies]
cargo_metadata = "0.18.1"
rustc_tools_util = "0.3.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = "0.10.8"
hex = "0.4.3"

[build-dependencies]
rustc_tools_util = "0.3.0"
12 changes: 12 additions & 0 deletions source/cargo-verus/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Copyright (c) 2024 The Verus Contributors
//
// SPDX-License-Identifier: MIT
//

fn main() {
rustc_tools_util::setup_version_info!();

// See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed
println!("cargo:rerun-if-changed=build.rs");
}
Loading

0 comments on commit bf22caf

Please sign in to comment.