|
@@ -126,6 +126,8 @@ publish = false
|
|
|
|
|
|
[dependencies]
|
|
|
manganis = { workspace = true, optional = true}
|
|
|
+reqwest = { version = "0.11.9", features = ["json"], optional = true}
|
|
|
+http-range = {version = "0.1.5", optional = true }
|
|
|
|
|
|
[dev-dependencies]
|
|
|
dioxus = { workspace = true, features = ["desktop"] }
|
|
@@ -133,23 +135,33 @@ dioxus-desktop = { workspace = true, features = ["transparent"] }
|
|
|
dioxus-ssr = { workspace = true }
|
|
|
dioxus-router = { workspace = true }
|
|
|
dioxus-signals = { workspace = true }
|
|
|
-# fermi = { workspace = true }
|
|
|
futures-util = "0.3.21"
|
|
|
-log = "0.4.14"
|
|
|
-num-format = "0.4.0"
|
|
|
separator = "0.4.1"
|
|
|
serde = { version = "1.0.136", features = ["derive"] }
|
|
|
-anyhow = "1.0.53"
|
|
|
serde_json = "1.0.79"
|
|
|
rand = { version = "0.8.4", features = ["small_rng"] }
|
|
|
tokio = { version = "1.16.1", features = ["full"] }
|
|
|
-reqwest = { version = "0.11.9", features = ["json"] }
|
|
|
-env_logger = "0.10.0"
|
|
|
-thiserror = { workspace = true }
|
|
|
-tracing-subscriber = "0.3.17"
|
|
|
-http-range = "0.1.5"
|
|
|
+# fermi = { workspace = true }
|
|
|
|
|
|
+# To make most examples faster to compile, we split out assets and http-related stuff
|
|
|
+# This trims off like 270 dependencies, leading to a significant speedup in compilation time
|
|
|
[features]
|
|
|
default = []
|
|
|
collect-assets = ["manganis"]
|
|
|
+http = ["reqwest", "http-range"]
|
|
|
+
|
|
|
+[[example]]
|
|
|
+name = "login_form"
|
|
|
+required-features = ["http"]
|
|
|
+
|
|
|
+[[example]]
|
|
|
+name = "dog_app"
|
|
|
+required-features = ["http"]
|
|
|
+
|
|
|
+[[example]]
|
|
|
+name = "video_stream"
|
|
|
+required-features = ["http"]
|
|
|
|
|
|
+[[example]]
|
|
|
+name = "suspense"
|
|
|
+required-features = ["http"]
|