Skip to content

Allow specifying target-dependent build.rs scripts #4932

Open
@nagisa

Description

@nagisa

Currently it is possible to specify something like following in Cargo.toml:

[target.'cfg(unix)'.build-dependencies.cc]
version = "1.0"

however it is not feasible to use this functionality, because you cannot conditionally extern use crates or specify per-target build.rs scripts (i.e. the following does not work):

[target.'cfg(unix)'.package]
build = "build/unix.rs"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-dependenciesArea: [build-dependencies]A-build-scriptsArea: build.rs scriptsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions