Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
set-up-rust.sh
into sync with the README by making it executable (the README expects it to be executable)rust/
directory is being pulled in as a symlink---useful if you're holding on to multiple copies of verus during development, where you want to share the main rust installationCargo.lock
. See "rationale for cargo.lock" below.Hopefully all these changes are basically uncontroversial and since they're all minor enough, I rolled them all up into a single PR.
Rationale for (re)introducing
Cargo.lock
Cargo.lock
was originally.gitignore
d in d4ded8fThis was in 2021, as a "for now" measure, presumably since things were changing rapidly, and maintaining a lockfile was more trouble than was worth.
However, we've moved quite a bit from there, and our
Cargo.toml
s have been quite stable, changing very rarely. Thus it seems reasonable to rethink this decision to.gitignore
the lock file. Maintaining theCargo.lock
would help future-proof things.Maintaining a
Cargo.lock
file is considered good standard practice for bin crates (which is what Verus is): https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-librariesAlso, just as a quick point of comparison, rustc does maintain a
Cargo.lock
file too: https://github.com/rust-lang/rust/blob/master/Cargo.lock