You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while allowing consumers of the library to automatically use old versions
29
29
if they need compatibility with older toolchains.
30
30
31
+
You can opt-in to the MSRV-aware resolver via [`.cargo/config.toml`](https://doc.rust-lang.org/cargo/reference/config.html#resolverincompatible-rust-versions):
32
+
```toml
33
+
[resolver]
34
+
incompatible-rust-versions = "fallback"
35
+
```
36
+
Then when adding a dependency:
37
+
```console
38
+
$ cargo add clap
39
+
Updating crates.io index
40
+
warning: ignoring clap@4.5.23 (which requires rustc 1.74) to maintain demo's rust-version of 1.60
41
+
Adding clap v4.0.32 to dependencies
42
+
Updating crates.io index
43
+
Locking 33 packages to latest Rust 1.60 compatible versions
When [verifying the latest dependencies in CI](https://doc.rust-lang.org/cargo/guide/continuous-integration.html#verifying-latest-dependencies), you can override this:
0 commit comments