DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.37k stars 747 forks source link

If specified platform is found as feature in a crate, enable that feature #2080

Closed jkelleyrtp closed 3 months ago

jkelleyrtp commented 3 months ago

Feature Request

Right now if you have a crate setup to target multiple platforms, you have to also set the appropriate features for multi-feature setups.

This leads to stuttering:

dx serve --plaform desktop --features desktop

We should check the cargo.toml feature set and add in the appropriate features if we find them and they match platform.

IE --platform web implicitly passes --features web if the web feature is available in the cargo.toml