Make dependency resolution with -Zminimal-versions build properly.
#4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cargo uses SemVer, which means that a dependency constraint of
version = "1"should build with version1.0.0and1.99.... The cargo-nightly-Zminimal-versionsswitch will make Cargo resolve dependencies with the oldest matching version.Direct dependencies should be precise enough to build under this configuration.
Grand-dependencies may not be doing this, so the graph may still have errors in it. In this case, add direct dependencies on those packages to try setting a program-wide minimum for Cargo to prefer.
Progress has been made, but there is a shiny new problem: The minimum suported
openssl-sys = 0.9.55tries to use OpenSSL 1.x. When it isn't installed, the build fails. Debian 11 has this package, but Debian 12 does not.On branch "minimal-versions", I'm pinning to a minimum of
openssl-sys = 0.9.64which uses OpenSSL 3.x and things work nicely. However, the package can build correctly when OpenSSL 1.x is made available. Building on Debian 11 is successful.