Skip to content

Per platform config for workspace #5220

@pronebird

Description

@pronebird

Hi,

Is it possible to extend the workspace with more crates on per platform basis?

I've tried to add all of my stuff into workspace and then simply add #![cfg(target_os = "windows")] to main.rs of crates that are not meant to be built on certain platforms but that emits errors saying there is no main in the crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-workspacesArea: workspacesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions