Skip to content

Allow a build script (build.rs) in a virtual manifest Cargo.toml #8732

Open
@stanislav-tkach

Description

Describe the problem you are trying to solve

I have a package with several crates and "virtual" Cargo.toml (virtual manifest). I would like to execute some code before building this package or any containing crate. Currently it isn't allowed to have build.rs in the virtual manifest.

Describe the solution you'd like

Allow the build field to appear in the virtual manifest.

Notes

As a workaround I have created an empty crate with build.rs and made all other crates depend on it.

Metadata

Assignees

No one assigned

    Labels

    A-build-scriptsArea: build.rs scriptsA-workspacesArea: workspacesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions