What is the point of specifying the minimum rustc version via rust-version in Cargo.toml if you are going to force a specific toolchain via rust-toolchain.toml? Having both means having to keep track of two separate things that frequently go out of sync; and worse, if one updates rust-version such that it's newer than what is in rust-toolchain.toml, one will needlessly download the specified toolchain just for the compiler to fail with a message that the toolchain is not new enough. Seems to me that it's better to remove rust-version from Cargo.toml or allow newer toolchains to be used and remove rust-toolchain.toml instead. I realize that if you have to go back to using nightly, then rust-toolchain.toml is your only option.
Originally created by @zacknewman on GitHub (Sep 21, 2023).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3906
What is the point of specifying the minimum `rustc` version via `rust-version` in `Cargo.toml` if you are going to force a specific toolchain via `rust-toolchain.toml`? Having both means having to keep track of two separate things that frequently go out of sync; and worse, if one updates `rust-version` such that it's newer than what is in `rust-toolchain.toml`, one will needlessly download the specified toolchain just for the compiler to fail with a message that the toolchain is not new enough. Seems to me that it's better to remove `rust-version` from `Cargo.toml` or allow newer toolchains to be used and remove `rust-toolchain.toml` instead. I realize that if you have to go back to using `nightly`, then `rust-toolchain.toml` is your only option.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @zacknewman on GitHub (Sep 21, 2023).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3906
What is the point of specifying the minimum
rustcversion viarust-versioninCargo.tomlif you are going to force a specific toolchain viarust-toolchain.toml? Having both means having to keep track of two separate things that frequently go out of sync; and worse, if one updatesrust-versionsuch that it's newer than what is inrust-toolchain.toml, one will needlessly download the specified toolchain just for the compiler to fail with a message that the toolchain is not new enough. Seems to me that it's better to removerust-versionfromCargo.tomlor allow newer toolchains to be used and removerust-toolchain.tomlinstead. I realize that if you have to go back to usingnightly, thenrust-toolchain.tomlis your only option.