Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run MSRV checks with minimal dep versions #670

Merged
merged 10 commits into from Jun 17, 2022
Merged

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Jun 17, 2022

In many cases, new releases of a dependency can break compatibility with
Tower's minimum supported Rust version (MSRV). It shouldn't be necessary
for Tower to bump its MSRV when a dependency does, as users on older
Rust versions should be able to depend on older versions of that crate.
Instead, we should probably just run our MSRV checks with minimal
dependency versions.

This branch changes Tower's CI jobs to do that.

Signed-off-by: Eliza Weisman eliza@buoyant.io

In many cases, new releases of a dependency can break compatibility with
Tower's minimum supported Rust version (MSRV). It shouldn't be necessary
for Tower to bump its MSRV when a dependency does, as users on older
Rust versions should be able to depend on older versions of that crate.
Instead, we should probably just run our MSRV checks with minimal
dependency versions.

This branch changes Tower's CI jobs to do that.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@hawkw hawkw requested review from LucioFranco and olix0r June 17, 2022 17:21
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@hawkw
Copy link
Member Author

hawkw commented Jun 17, 2022

Oh. Nevermind. We can't do this, because -Z minimal-versions is an unstable cargo feature and requires a nightly toolchain (https://github.com/taiki-e/cargo-minimal-versions#prerequisites). Hmm...

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
this fixes the minimal version build

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
i hate this but whatever lol

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@hawkw hawkw merged commit 22b6fc7 into master Jun 17, 2022
@hawkw hawkw deleted the eliza/msrv-min-versions branch June 17, 2022 18:23
hawkw added a commit that referenced this pull request Jun 17, 2022
In many cases, new releases of a dependency can break compatibility with
Tower's minimum supported Rust version (MSRV). It shouldn't be necessary
for Tower to bump its MSRV when a dependency does, as users on older
Rust versions should be able to depend on older versions of that crate.
Instead, we should probably just run our MSRV checks with minimal
dependency versions.

This branch changes Tower's CI jobs to do that. It was also necessary to 
make some changes to the `Cargo.toml` to actually fix the build with
minimal dependency versions.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants