make some extra dependencies only enabled for the CLI

This commit is contained in:
Evan Almloff committed 2023-11-21 13:11:49 -06:00
1 parent 532ffaa614
commit 4ff86d9763
2 files changed
+30 -21

No files matched your search

+8 -8
View File
@@ -9,18 +9,18 @@ license = "MIT OR Apache-2.0"
keywords = ["react", "gui", "cli", "dioxus", "wasm"]
[dependencies]
clap = { version = "4.2", features = ["derive"] }
clap = { version = "4.2", features = ["derive"], optional = true }
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
toml = "0.5.8"
cargo_toml = "0.16.0"
# bundling
tauri-bundler = { version = "=1.3.0", features = ["native-tls-vendored"], optional = true }
tauri-utils = { version = "=1.4.*", optional = true }
toml = { version = "0.5.8", optional = true }
cargo_toml = { version = "0.16.0", optional = true }
once_cell = "1.18.0"
tracing.workspace = true
# bundling
tauri-bundler = { version = "=1.3.0", features = ["native-tls-vendored"], optional = true }
tauri-utils = { version = "=1.4.*", optional = true }
[features]
default = []
cli = ["tauri-bundler", "tauri-utils"]
cli = ["tauri-bundler", "tauri-utils", "clap", "toml", "cargo_toml"]