-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I am using cargo minimal-versions (which internally simply uses -Z minimal-versions and -Z direct-minimal-versions) to test if my library compiles when using the specified minimum versions for dependencies.
When I want to use educe this tool complains because the most recent version of educe (0.6.0) has as a dependency enum-ordinalize = "4.2" with the derive feature enabled, this means the minimum version of the derive crate enum-ordinalize-derive is 4.2.0 which depends on num-bigint = "0.4" whose minimum version 0.4.0 does not compile.
This is the error I get from the cargo minimal-versions tool:
error[E0308]: mismatched types
--> /home/xxx/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-bigint-0.4.0/src/biguint/convert.rs:70:19
|
70 | .div_ceil(&big_digit::BITS.into())
| -------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `&_`
| |
| arguments to this method are incorrect
|
= note: expected type `u64`
found reference `&_`
Note that this broken dependency does not occur when using enum-ordinalize-derive = "4.2.1" or higher. I would therefore suggest to specify enum-ordinalize = "4.2.1" as minimum dependency in educe.