rustc 1.69.0 does not compile 1.29.2 #1713

Closed
opened 2026-02-05 01:32:51 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @zacknewman on GitHub (Sep 22, 2023).

Cargo.toml has rust-version with the value 1.69.0; however that version does not work as can be seen below:

[zack@laptop projects]$ git clone https://github.com/dani-garcia/vaultwarden/ && cd vaultwarden && git checkout refs/tags/1.29.2 && truncate rust-toolchain && echo "1.69.0" >> rust-toolchain && cargo check
info: syncing channel updates for '1.69.0-x86_64-unknown-linux-gnu'
info: latest update on 2023-04-20, rust version 1.69.0 (84c898d65 2023-04-16)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
    Updating git repository `https://github.com/SergioBenitez/Rocket`
    Updating crates.io index
    ⋮
error: package `rmpv v1.0.1` cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.69.0
Either upgrade to rustc 1.70 or newer, or use
cargo update -p rmpv@1.0.1 --precise ver
where `ver` is the latest version of `rmpv` supporting rustc 1.69.0

Solution
Since rust-toolchain.toml is already used, change its value to the actual MSRV and drop the use of rust-version altogether.

Originally created by @zacknewman on GitHub (Sep 22, 2023). `Cargo.toml` has `rust-version` with the value `1.69.0`; however that version does not work as can be seen below: ```bash [zack@laptop projects]$ git clone https://github.com/dani-garcia/vaultwarden/ && cd vaultwarden && git checkout refs/tags/1.29.2 && truncate rust-toolchain && echo "1.69.0" >> rust-toolchain && cargo check info: syncing channel updates for '1.69.0-x86_64-unknown-linux-gnu' info: latest update on 2023-04-20, rust version 1.69.0 (84c898d65 2023-04-16) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' info: downloading component 'rust-std' info: downloading component 'rustc' info: downloading component 'rustfmt' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' info: installing component 'rust-std' info: installing component 'rustc' info: installing component 'rustfmt' Updating git repository `https://github.com/SergioBenitez/Rocket` Updating crates.io index ⋮ error: package `rmpv v1.0.1` cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.69.0 Either upgrade to rustc 1.70 or newer, or use cargo update -p rmpv@1.0.1 --precise ver where `ver` is the latest version of `rmpv` supporting rustc 1.69.0 ``` **Solution** Since `rust-toolchain.toml` is already used, change its value to the actual MSRV and drop the use of `rust-version` altogether.
Author
Owner

@BlackDex commented on GitHub (Sep 22, 2023):

Already fixed in main.

@BlackDex commented on GitHub (Sep 22, 2023): Already fixed in main.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1713