If a crate has edition="2018"
in the [package]
section of Cargo.toml, does cargo vendor
require cargo-features = ["edition"]
at the beginning of the file for it to work?
I'm finding this problematic for crates I don't control. For example, doing cargo vendor
inside librsvg's make distcheck
produces this:
tlacoyo:~/src/librsvg/master (master *)$ cargo vendor
error: failed to sync
Caused by:
failed to fetch package
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/home/federico/.cargo/registry/src/github.com-1ecc6299db9ec823/fuchsia-cprng-0.1.1/Cargo.toml`
Caused by:
editions are unstable
Caused by:
feature `edition` is required
consider adding `cargo-features = ["edition"]` to the manifest