google / google/zerocopy

Use both minimal and maximal versions in CI

Open
#305 0 comments 0 reactions 0 assignees View on GitHub
compatibility-nonbreaking
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

*See also: #1595*

By default, when Cargo is performing dependency resolution, it tries to find the maximum version of each dependency which satisfies the dependency constraints. However, this can hide issues such as accidentally depending upon a feature that was introduced after the minimum version specified by a dependency. In order to catch these errors, we should also test with Cargo's [`minimal-version` flag](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#minimal-versions). This flag is unstable, so we'll only be able to do this on the nightly toolchain, and we may have to remove it at some point if the feature breaks or is removed.

Once #2883 lands, we should be able to simply force all vendored versions to their lowest compatible versions, commit them, and call it a day.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.