Cargo.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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" }
  11. dioxus-core-macro = { path = "./packages/core-macro", optional = true }
  12. dioxus-html = { path = "./packages/html", optional = true }
  13. dioxus-web = { path = "./packages/web", optional = true }
  14. dioxus-desktop = { path = "./packages/desktop", optional = true }
  15. dioxus-hooks = { path = "./packages/hooks", optional = true }
  16. dioxus-ssr = { path = "./packages/ssr", optional = true }
  17. dioxus-mobile = { path = "./packages/mobile", optional = true }
  18. [features]
  19. # core
  20. default = ["core"]
  21. core = ["macro", "hooks", "html"]
  22. macro = ["dioxus-core-macro"]
  23. hooks = ["dioxus-hooks"]
  24. html = ["dioxus-html"]
  25. # utilities
  26. atoms = []
  27. router = []
  28. # targets
  29. ssr = ["dioxus-ssr"]
  30. web = ["dioxus-web"]
  31. desktop = ["dioxus-desktop"]
  32. mobile = ["dioxus-mobile"]
  33. [dev-dependencies]
  34. futures-util = "0.3.16"
  35. log = "0.4.14"
  36. num-format = "0.4.0"
  37. separator = "0.4.1"
  38. serde = { version = "1.0.130", features = ["derive"] }
  39. im-rc = "15.0.0"
  40. fxhash = "0.2.1"
  41. anyhow = "1.0.42"
  42. reqwest = "0.11.4"
  43. serde_json = "1.0.68"
  44. simple_logger = "1.13.0"
  45. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  46. argh = "0.1.5"
  47. env_logger = "0.9.0"
  48. tokio = { version = "1.12.0", features = ["full"] }
  49. rand = { version = "0.8.4", features = ["small_rng"] }
  50. gloo-timers = "0.2.1"
  51. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  52. gloo-timers = "0.2.1"
  53. wasm-logger = "0.2.0"
  54. console_error_panic_hook = "0.1.6"
  55. rand = { version = "0.8.4", features = ["small_rng"] }
  56. wasm-bindgen = { version = "0.2.71", features = ["enable-interning"] }
  57. # surf = { version = "2.3.1", default-features = false, features = [
  58. # "wasm-client",
  59. # ] }
  60. # surf = { version = "2.2.0", default-features = false, features = [
  61. # "wasm-client",
  62. # ], git = "https://github.com/jkelleyrtp/surf/", branch = "jk/fix-the-wasm" }
  63. [dev-dependencies.getrandom]
  64. version = "0.2"
  65. features = ["js"]
  66. [workspace]
  67. members = [
  68. "packages/core",
  69. "packages/core-macro",
  70. "packages/html",
  71. "packages/hooks",
  72. "packages/web",
  73. "packages/ssr",
  74. "packages/desktop",
  75. "packages/mobile",
  76. "packages/webview-client",
  77. ]
  78. [[example]]
  79. required-features = ["desktop"]
  80. name = "webview"
  81. path = "./examples/webview.rs"
  82. [[example]]
  83. required-features = ["desktop"]
  84. name = "tailwind"
  85. path = "./examples/tailwind.rs"