Skip to content

Minimum supported Rust version v.s. SemVer #566

Closed
@rjloura

Description

@rjloura

When running clippy on rust 1.35 I encounter the following error:

error[E0658]: use of unstable library feature 'alloc': this library is unlikely to be stabilized in its current form or name (see issue #27783)
  --> /home/rui/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.0.0/lib.rs:38:1
   |
38 | extern crate alloc;
   | ^^^^^^^^^^^^^^^^^^^

For my project the url crate is pulled in by gotham, but this occurs when I run clippy on rust-url by itself. The tree is:

$ cargo tree
url v2.1.0 (/home/rui/git/rust-url)
├── idna v0.2.0 (/home/rui/git/rust-url/idna)
│   ├── matches v0.1.8
│   ├── unicode-bidi v0.3.4
│   │   └── matches v0.1.8 (*)
│   └── unicode-normalization v0.1.11
│       └── smallvec v1.0.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
├── matches v0.1.8 (*)
└── percent-encoding v2.1.0 (/home/rui/git/rust-url/percent_encoding)
SNIP!

What I don't understand is how this tree was built. idna is currently at version 0.2.0 and it specifies unicode-normalization version of 0.1.5 (https://github.com/servo/rust-url/blob/master/idna/Cargo.toml).

The only thing I did notice was that unicode-normalization was bumped to it's new version 3 days ago and that brought in the smallvec v1.0.0 dependency. (https://github.com/unicode-rs/unicode-normalization/blame/master/Cargo.toml)

For this project I need to stay on rust 1.35. I am not sure why the dependency tree changed without the rust-url version changing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions