Skip to content

How to verify individual crates build (and ideally pass tests) for distro packaging #3732

@igor-raits

Description

@igor-raits

In Fedora we're packaging each crate and there are definitely circular dependencies in dev-dependencies (memchr -> quickcheck(dev) -> regex -> memchr), so we first need to build memchr, then regex, then quickcheck and then we can rebuild memchr with enabled cargo-test.

We override crates.io registry, but cargo-build still tries to find quickcheck:

+ /usr/bin/cargo build --release -j8
error: no matching package named `quickcheck` found (required by `memchr`)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: ^0.4.1

But build doesn't really need that dependency to be present...

Metadata

Metadata

Assignees

Labels

A-crate-dependenciesArea: [dependencies] of any kindC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-buildCommand-testZ-build-planNightly: --build-plan feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions