Strange half <2.3.0
upper-bound breaks compatibility with other crates
#230
Labels
bug
Something isn't working
Consider this sample crate, which compiles:
The
half <2.3.0
bound introduced #213 (to work around starkat99/half-rs#97) prevents this crate to be used with crates - e.g.re_log_types
fromrerun
- which depend onhalf ^2.3.1
. If theCargo.toml
sample above is bumped toexr 1.6.5
, those bounds are now incompatible according tocargo
:I don't see why
exr
needs to take a stake inhalf
's MSRV bump. If you wish to maintain a low MSRV based on minimal versions, I recommend leaving the semver-compatible upper bound open (^2.1.0
) and testing your MSRV with a fixedcargo update -p half --precise 2.1.0
orcargo +nightly -Zminimal-version generate-lockfile
in the CI.It looks like that was intended to be done in 42a92aa but that ended up reverted in 3d43e30 without commit message, so I can only assume that at least
rust-version = "1.70.0"
broke building on Rust <1.69 even with the intended/documented workaround.The text was updated successfully, but these errors were encountered: