Skip to content

CLI: only push a dioxus/* fallback feature if the crate being compiled depends on the dioxus crate.#5143

Merged
jkelleyrtp merged 1 commit into
DioxusLabs:mainfrom
nicoburns:non-dioxus-fallback
Dec 28, 2025
Merged

CLI: only push a dioxus/* fallback feature if the crate being compiled depends on the dioxus crate.#5143
jkelleyrtp merged 1 commit into
DioxusLabs:mainfrom
nicoburns:non-dioxus-fallback

Conversation

@nicoburns
Copy link
Copy Markdown
Member

@nicoburns nicoburns commented Dec 27, 2025

This allows the CLI to compile crates which do not depend on the dioxus crate for Android and iOS targets (for example crates which depend on dioxus_native directly).

Without this patch, the CLI unconditionally injects the dioxus/mobile feature when passing --android or --ios which causes the build to fail if the dioxus crate is not a depdendency.

@nicoburns nicoburns added the cli Related to the dioxus-cli program label Dec 27, 2025
@nicoburns nicoburns requested a review from a team as a code owner December 27, 2025 01:28
@jkelleyrtp jkelleyrtp merged commit c68a47b into DioxusLabs:main Dec 28, 2025
19 checks passed
SilentVoid13 pushed a commit to SilentVoid13/dioxus that referenced this pull request May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to the dioxus-cli program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: --android and --ios don't work if the dioxus crate is not a dependency

2 participants