Skip to content

build-dependencies and dependencies should not have features unified #4866

Closed
@whitequark

Description

Consider this real-world example from crc-rs:

[dependencies]
build_const = { version = "0.2", default-features = false }

[build-dependencies]
build_const = "0.2"

The build dependency, of course, needs (and has) the std feature. The runtime dependency does not. Moreover, on my platform, there is no std. However, cargo treats them as the same package, and as a result it is impossible to actually build crc-rs at all.

Metadata

Assignees

Labels

A-build-dependenciesArea: [build-dependencies]A-featuresArea: features — conditional compilationC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions