Jelajahi Sumber

Replace struct-opt with clap

Aster 3 tahun lalu
induk
melakukan
eb7388794a
3 mengubah file dengan 20 tambahan dan 14 penghapusan
  1. 1 0
      .gitignore
  2. 13 13
      Cargo.toml
  3. 6 1
      README.md

+ 1 - 0
.gitignore

@@ -1,2 +1,3 @@
 /target
 Cargo.lock
+.idea/

+ 13 - 13
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "dioxus-cli"
-version = "0.1.2"
+version = "0.1.3"
 authors = ["Jonathan Kelley"]
 edition = "2018"
 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
 
 [dependencies]
-thiserror = "1.0.23"
-log = "0.4.13"
+thiserror = "1.0.30"
+log = "0.4.14"
 fern = { version = "0.6.0", features = ["colored"] }
 wasm-bindgen-cli-support = "0.2.79"
-anyhow = "1.0.38"
-serde = { version = "1.0.133", features = ["derive"] }
-serde_json = "1"
+anyhow = "1.0.53"
+serde = { version = "1.0.136", features = ["derive"] }
+serde_json = "1.0.79"
 toml = "0.5.8"
 fs_extra = "1.2.0"
-cargo_toml = "0.10.0"
-futures = "0.3.12"
+cargo_toml = "0.11.4"
+futures = "0.3.21"
 notify = { version = "5.0.0-pre.13", features = ["serde"] }
 html_parser = "0.6.2"
 binary-install = "0.0.2"
 convert_case = "0.5.0"
-structopt = "0.3.25"
 cargo_metadata = "0.14.1"
-tokio = { version = "1.15.0", features = ["full"] }
+tokio = { version = "1.16.1", features = ["full"] }
 atty = "0.2.14"
 regex = "1.5.4"
 chrono = "0.4.19"
+clap = "3.0.14"
 
-axum = { version = "0.4.4", features = ["ws", "headers"] }
-tower-http = { version = "0.2.0", features = ["fs", "trace"] }
-headers = "0.3"
+axum = { version = "0.4.5", features = ["ws", "headers"] }
+tower-http = { version = "0.2.2", features = ["fs", "trace"] }
+headers = "0.3.7"
 # hyper = { version = "0.14.11", features = ["full"] }
 
 [[bin]]

+ 6 - 1
README.md

@@ -15,8 +15,13 @@ dioxus-cli (inspired by wasm-pack and webpack) is a tool to help get dioxus proj
 
 ## Installation
 
-```
+```shell
+# for stable
 $ 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.