CLI: don't enable default features in --no-default-features builds (#5147)

* Don't push default features in `--no-default-features` builds

Signed-off-by: Nico Burns <nico@nicoburns.com>

* add tests for default features and no default features outside of renderers

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
Nico BurnsandEvan Almloff authored and GitHub committed 2026-01-14 23:24:18 +00:00
1 parent 352e59ea01
commit 761c9503fd
7 files changed
+80 -13

No files matched your search

@@ -0,0 +1,16 @@
[package]
name = "harness-web-with-default-features"
version = "0.0.1"
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false
[dependencies]
dioxus = { workspace = true }
[features]
default=["other"]
other=[]
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
@@ -0,0 +1,16 @@
[package]
name = "harness-web-with-no-default-features"
version = "0.0.1"
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false
[dependencies]
dioxus = { workspace = true }
[features]
default=["other"]
other=[]
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}