In Manifest mode, can I restrict a feature to only be available on a particular platform? #44407
-
Let's say I have a library in my dependencies that has a feature that has platform specific features: It offers for windows:
Or this for other platforms:
Is there a way to combine them somehow? Or a command that lets me say that a feature is just for a particular platform? |
Beta Was this translation helpful? Give feedback.
Answered by
autoantwort
Mar 16, 2025
Replies: 1 comment 1 reply
-
Yes, you can do: "features": [
{
"name": "win-version",
"platform": "windows"
},
{
"name": "other-version",
"platform": "!windows"
}
] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AshwinKumarVijay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can do: