verus-lang / verus-analyzer

A Verus compiler front-end for IDEs (derived from rust-analyzer)
Apache License 2.0
10 stars 4 forks source link

Use `--verify-module` and `--verify-root`, instead of directly using command from user's input #6

Closed chanheec closed 1 year ago

chanheec commented 1 year ago

When this was first developed, Verus was in an earlier stage, and most Verus codes were self-contained on a single file. Since we are directly using the command from the user's input, the current user interface is wrong for non-trivial projects with more than one file.

Now, when hitting the save button, this custom rust-analyzer uses --verify-module for non-root files, and --verify-root for root files.

For example, to run Verus on ironsht/src/environment_t.rs, we now run path_to/rust-verify.sh ironsht/src/main.rs --verify-module environment_t.