dionysius / vaultwarden-deb

clean(er) debian packaging for vaultwarden
MIT License
30 stars 2 forks source link

What to do if a cargo dependency requires a newer rust-toolchain than rust-toolchain.toml is describing? #12

Closed dionysius closed 5 months ago

dionysius commented 5 months ago

Currently vaultwarden v1.35.0 can't be built because it still has the toolchain listed for 1.76.0 in its rust-toolchain.toml

buildpackage will fail with an error similar:

package migrations_internals v2.2.0 cannot be built because it requires rustc 1.78.0 or newer, while the currently active rustc version is 1.76.0

dionysius commented 5 months ago

Still digging through docs, but at a first glance cargo install seems not to use the package lock. Which explains the version inconsistencies for now. Still digging

dionysius commented 5 months ago

Found the fix, was just a --locked option for cargo install needed. You can use branch main or tag debian/1.30.5-2 for your build

dionysius commented 5 months ago

@Artim96 ^

Artim96 commented 5 months ago

Package built without any further problems. Thanks!