Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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-depende...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: