Replace struct-opt with clap

This commit is contained in:
Aster committed 2022-02-07 05:28:18 +08:00
1 parent 025efc9120
commit eb7388794a
3 files changed
+20 -14

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
/target /target
Cargo.lock Cargo.lock
.idea/
+13 -13
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "dioxus-cli" name = "dioxus-cli"
version = "0.1.2" version = "0.1.3"
authors = ["Jonathan Kelley"] authors = ["Jonathan Kelley"]
edition = "2018" edition = "2018"
description = "CLI tool for developing, testing, and publishing Dioxus apps" description = "CLI tool for developing, testing, and publishing Dioxus apps"
@@ -9,31 +9,31 @@ license = "MIT/Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
thiserror = "1.0.23" thiserror = "1.0.30"
log = "0.4.13" log = "0.4.14"
fern = { version = "0.6.0", features = ["colored"] } fern = { version = "0.6.0", features = ["colored"] }
wasm-bindgen-cli-support = "0.2.79" wasm-bindgen-cli-support = "0.2.79"
anyhow = "1.0.38" anyhow = "1.0.53"
serde = { version = "1.0.133", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1" serde_json = "1.0.79"
toml = "0.5.8" toml = "0.5.8"
fs_extra = "1.2.0" fs_extra = "1.2.0"
cargo_toml = "0.10.0" cargo_toml = "0.11.4"
futures = "0.3.12" futures = "0.3.21"
notify = { version = "5.0.0-pre.13", features = ["serde"] } notify = { version = "5.0.0-pre.13", features = ["serde"] }
html_parser = "0.6.2" html_parser = "0.6.2"
binary-install = "0.0.2" binary-install = "0.0.2"
convert_case = "0.5.0" convert_case = "0.5.0"
structopt = "0.3.25"
cargo_metadata = "0.14.1" cargo_metadata = "0.14.1"
tokio = { version = "1.15.0", features = ["full"] } tokio = { version = "1.16.1", features = ["full"] }
atty = "0.2.14" atty = "0.2.14"
regex = "1.5.4" regex = "1.5.4"
chrono = "0.4.19" chrono = "0.4.19"
clap = "3.0.14"
axum = { version = "0.4.4", features = ["ws", "headers"] } axum = { version = "0.4.5", features = ["ws", "headers"] }
tower-http = { version = "0.2.0", features = ["fs", "trace"] } tower-http = { version = "0.2.2", features = ["fs", "trace"] }
headers = "0.3" headers = "0.3.7"
# hyper = { version = "0.14.11", features = ["full"] } # hyper = { version = "0.14.11", features = ["full"] }
[[bin]] [[bin]]
+6 -1
View File
@@ -15,8 +15,13 @@ dioxus-cli (inspired by wasm-pack and webpack) is a tool to help get dioxus proj
## Installation ## Installation
``` ```shell
# for stable
$ cargo install dioxus-cli $ cargo install dioxus-cli
# for latest
$ cargo install --git https://github.com/DioxusLabs/cli
# for developing
$ cargo install --path . --debug
``` ```
Now, `dioxus` is in your path. Now, `dioxus` is in your path.