Cargo.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. [package]
  2. name = "dioxus"
  3. version = "0.1.1"
  4. authors = ["Jonathan Kelley"]
  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. dioxus-liveview = { path = "./packages/liveview", optional = true }
  20. [features]
  21. # core
  22. default = ["core"]
  23. core = ["macro", "hooks", "html"]
  24. macro = ["dioxus-core-macro"]
  25. hooks = ["dioxus-hooks"]
  26. html = ["dioxus-html"]
  27. router = ["dioxus-router"]
  28. liveview = ["dioxus-liveview"]
  29. # utilities
  30. atoms = []
  31. # targets
  32. ssr = ["dioxus-ssr"]
  33. web = ["dioxus-web"]
  34. desktop = ["dioxus-desktop"]
  35. mobile = ["dioxus-mobile"]
  36. [dev-dependencies]
  37. futures-util = "0.3.17"
  38. log = "0.4.14"
  39. num-format = "0.4.0"
  40. separator = "0.4.1"
  41. serde = { version = "1.0.131", features = ["derive"] }
  42. im-rc = "15.0.0"
  43. fxhash = "0.2.1"
  44. anyhow = "1.0.51"
  45. # reqwest = "0.11.4"
  46. serde_json = "1.0.73"
  47. simple_logger = "1.16.0"
  48. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  49. argh = "0.1.7"
  50. env_logger = "0.9.0"
  51. tokio = { version = "1.14.0", features = ["full"] }
  52. rand = { version = "0.8.4", features = ["small_rng"] }
  53. gloo-timers = "0.2.2"
  54. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  55. gloo-timers = "0.2.2"
  56. wasm-logger = "0.2.0"
  57. console_error_panic_hook = "0.1.7"
  58. rand = { version = "0.8.4", features = ["small_rng"] }
  59. wasm-bindgen = { version = "0.2.78", features = ["enable-interning"] }
  60. [dev-dependencies.getrandom]
  61. version = "0.2.3"
  62. features = ["js"]
  63. [workspace]
  64. members = [
  65. "packages/core",
  66. "packages/core-macro",
  67. "packages/html",
  68. "packages/hooks",
  69. "packages/web",
  70. "packages/ssr",
  71. "packages/desktop",
  72. "packages/mobile",
  73. ]
  74. [[example]]
  75. required-features = ["desktop"]
  76. name = "webview"
  77. path = "./examples/webview.rs"
  78. [[example]]
  79. required-features = ["desktop"]
  80. name = "tailwind"
  81. path = "./examples/tailwind.rs"
  82. # [patch.crates-io]
  83. # wasm-bindgen = { path = "../Tinkering/wasm-bindgen" }