Skip to content

Does not compile when using minimum version dependencies #39

@benediktsatalia

Description

@benediktsatalia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions