Cargo.toml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. [package]
  2. name = "dioxus-cli"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley"]
  5. edition = "2021"
  6. description = "CLI tool for developing, testing, and publishing Dioxus apps"
  7. repository = "https://github.com/DioxusLabs/dioxus/"
  8. license = "MIT OR Apache-2.0"
  9. keywords = ["react", "gui", "cli", "dioxus", "wasm"]
  10. rust-version = "1.79.0"
  11. [dependencies]
  12. # cli core
  13. clap = { version = "4.2", features = ["derive", "cargo"] }
  14. thiserror = { workspace = true }
  15. wasm-bindgen-cli-support = "0.2"
  16. wasm-bindgen-shared = "0.2"
  17. colored = "2.0.0"
  18. dioxus-cli-config = { workspace = true, features = ["cli"], default-features = false }
  19. # features
  20. log = "0.4.14"
  21. fern = { version = "0.6.0", features = ["colored"] }
  22. serde = { version = "1.0.136", features = ["derive"] }
  23. serde_json = "1.0.79"
  24. toml = { workspace = true }
  25. fs_extra = "1.2.0"
  26. cargo_toml = { workspace = true }
  27. futures-util = { workspace = true, features = ["async-await-macro"] }
  28. notify = { workspace = true, features = ["serde"] }
  29. html_parser = { workspace = true }
  30. cargo_metadata = "0.18.1"
  31. tokio = { version = "1.16.1", features = ["fs", "sync", "rt", "macros", "process", "rt-multi-thread"] }
  32. tokio-stream = "0.1.15"
  33. atty = "0.2.14"
  34. chrono = "0.4.19"
  35. anyhow = "1"
  36. hyper = { workspace = true }
  37. hyper-util = "0.1.3"
  38. hyper-rustls = { workspace = true }
  39. rustls = { workspace = true }
  40. subprocess = "0.2.9"
  41. rayon = "1.8.0"
  42. console = "0.15.8"
  43. ctrlc = "3.2.3"
  44. futures-channel = { workspace = true }
  45. krates = { version = "0.17.0" }
  46. regex = "1.10.6"
  47. axum = { workspace = true, features = ["ws"] }
  48. axum-server = { workspace = true, features = ["tls-rustls"] }
  49. axum-extra = { workspace = true, features = ["typed-header"] }
  50. tower-http = { workspace = true, features = ["full"] }
  51. proc-macro2 = { workspace = true, features = ["span-locations"] }
  52. syn = { workspace = true, features = ["full", "extra-traits", "visit", "visit-mut"] }
  53. headers = "0.3.7"
  54. walkdir = "2"
  55. # tools download
  56. dirs = { workspace = true }
  57. reqwest = { workspace = true, features = [
  58. "rustls-tls",
  59. "stream",
  60. "trust-dns",
  61. "blocking",
  62. ] }
  63. flate2 = "1.0.22"
  64. tar = "0.4.38"
  65. zip = "0.6.2"
  66. tower = { workspace = true }
  67. once_cell = "1.19.0"
  68. # plugin packages
  69. open = "5.0.1"
  70. cargo-generate = "=0.21.3"
  71. toml_edit = "0.22.20"
  72. # bundling
  73. tauri-bundler = { workspace = true }
  74. # formatting
  75. # syn = { workspace = true }
  76. prettyplease = { workspace = true }
  77. # Assets
  78. manganis-cli-support = { workspace = true, features = ["html"] }
  79. brotli = "6.0.0"
  80. dioxus-autofmt = { workspace = true }
  81. dioxus-check = { workspace = true }
  82. dioxus-rsx-rosetta = { workspace = true }
  83. dioxus-rsx = { workspace = true, features = ["serde"]}
  84. dioxus-html = { workspace = true, features = ["hot-reload-context"] }
  85. dioxus-core = { workspace = true, features = ["serialize"] }
  86. dioxus-hot-reload = { workspace = true, features = ["serve"] }
  87. ignore = "0.4.22"
  88. env_logger = "0.11.3"
  89. tracing-subscriber = { version = "0.3.18", features = ["std", "env-filter"] }
  90. console-subscriber = { version = "0.3.0", optional = true }
  91. tracing = { workspace = true }
  92. wasm-opt = { version = "0.116.1", optional = true }
  93. ratatui = { version = "0.27.0", features = ["crossterm", "unstable"] }
  94. crossterm = { version = "0.27.0", features = ["event-stream"] }
  95. ansi-to-tui = "=5.0.0-rc.1"
  96. ansi-to-html = "0.2.1"
  97. # on macos, we need to specify the vendored feature on ssl when cross compiling
  98. # [target.'cfg(target_os = "macos")'.dependencies]
  99. # openssl = { version = "0.10", features = ["vendored"] }
  100. [build-dependencies]
  101. built = { version = "=0.7.4", features = ["git2"] }
  102. [features]
  103. default = []
  104. plugin = []
  105. tokio-console = ["dep:console-subscriber"]
  106. # when releasing dioxus, we want to enable wasm-opt
  107. wasm-opt = ["dep:wasm-opt"]
  108. [[bin]]
  109. path = "src/main.rs"
  110. name = "dx"
  111. [dev-dependencies]
  112. tempfile = "3.3"
  113. [package.metadata.binstall]
  114. # temporarily, we're going to use the 0.5.0 download page for all binaries
  115. pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }-v{ version }{ archive-suffix }"
  116. # the old one...
  117. # pkg-url = "{ repo }/releases/download/v0.5.0/dx-{ target }-v{ version }{ archive-suffix }"
  118. # pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }{ archive-suffix }"
  119. pkg-fmt = "tgz"
  120. [package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
  121. pkg-fmt = "zip"