Skip to content

Need ability to add dependencies based on #[cfg()] #1007

Closed
@codyps

Description

@codyps

For example, in curl-rust:

Usage: https://github.com/carllerche/curl-rust/blob/5d0f5c8848e3cf1e12480a1923ae888e24d58f63/src/lib.rs#L10
Dependence: https://github.com/carllerche/curl-rust/blob/5d0f5c8848e3cf1e12480a1923ae888e24d58f63/curl-sys/Cargo.toml#L18-L30

Also see alexcrichton/curl-rust#30

In summary: without this, we end up with ad-hoc lists of triples in various Cargo.toml files, which breaks the build for targets with a non-matching triple that do match #[cfg(...)].

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-highPriority: High

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions