3 ms·
In cargo (Rust's primary build tool), there are two ways to pin dependencies: - `Cargo.lock`: handled implicitly so long as you check it in which, as of rust 1
by epage 3y ago
In cargo (Rust's primary build tool), there are two ways to pin dependencies:
- `Cargo.lock`: handled implicitly so long as you check it in which, as of rust 1.74 (next release), `cargo new` will scaffold all projects this way by default.
- `Cargo.toml`: requires using a `=` version requirement. We generally recommend against pinning this way; see https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#multiple-requirements https://doc.rust-lang.org/cargo/reference/specifying-depende...