Cargo.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [package]
  2. name = "dioxus"
  3. version = "0.1.0"
  4. authors = ["Jonathan Kelley <jkelleyrtp@gmail.com>"]
  5. edition = "2018"
  6. description = "Core functionality for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
  7. "license" = "MIT/Apache-2.0"
  8. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  9. [dependencies]
  10. dioxus-core = { path = "./packages/core", version = "0.1.3" }
  11. dioxus-router = { path = "./packages/router", optional = true }
  12. dioxus-core-macro = { path = "./packages/core-macro", optional = true }
  13. dioxus-html = { path = "./packages/html", optional = true }
  14. dioxus-web = { path = "./packages/web", optional = true }
  15. dioxus-desktop = { path = "./packages/desktop", optional = true }
  16. dioxus-hooks = { path = "./packages/hooks", optional = true }
  17. dioxus-ssr = { path = "./packages/ssr", optional = true }
  18. dioxus-mobile = { path = "./packages/mobile", optional = true }
  19. [features]
  20. # core
  21. default = ["core"]
  22. core = ["macro", "hooks", "html"]
  23. macro = ["dioxus-core-macro"]
  24. hooks = ["dioxus-hooks"]
  25. html = ["dioxus-html"]
  26. router = ["dioxus-router"]
  27. # utilities
  28. atoms = []
  29. # targets
  30. ssr = ["dioxus-ssr"]
  31. web = ["dioxus-web"]
  32. desktop = ["dioxus-desktop"]
  33. mobile = ["dioxus-mobile"]
  34. [dev-dependencies]
  35. futures-util = "0.3.16"
  36. log = "0.4.14"
  37. num-format = "0.4.0"
  38. separator = "0.4.1"
  39. serde = { version = "1.0.130", features = ["derive"] }
  40. im-rc = "15.0.0"
  41. fxhash = "0.2.1"
  42. anyhow = "1.0.42"
  43. # reqwest = "0.11.4"
  44. serde_json = "1.0.68"
  45. simple_logger = "1.13.0"
  46. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  47. argh = "0.1.5"
  48. env_logger = "0.9.0"
  49. tokio = { version = "1.12.0", features = ["full"] }
  50. rand = { version = "0.8.4", features = ["small_rng"] }
  51. gloo-timers = "0.2.1"
  52. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  53. gloo-timers = "0.2.1"
  54. wasm-logger = "0.2.0"
  55. console_error_panic_hook = "0.1.6"
  56. rand = { version = "0.8.4", features = ["small_rng"] }
  57. wasm-bindgen = { version = "0.2.71", features = ["enable-interning"] }
  58. [dev-dependencies.getrandom]
  59. version = "0.2"
  60. features = ["js"]
  61. [workspace]
  62. members = [
  63. "packages/core",
  64. "packages/core-macro",
  65. "packages/html",
  66. "packages/hooks",
  67. "packages/web",
  68. "packages/ssr",
  69. "packages/desktop",
  70. "packages/mobile",
  71. ]
  72. [[example]]
  73. required-features = ["desktop"]
  74. name = "webview"
  75. path = "./examples/webview.rs"
  76. [[example]]
  77. required-features = ["desktop"]
  78. name = "tailwind"
  79. path = "./examples/tailwind.rs"