Cargo.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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", "ssr"]
  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.126", features = ["derive"] }
  39. im-rc = "15.0.0"
  40. fxhash = "0.2.1"
  41. anyhow = "1.0.42"
  42. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  43. argh = "0.1.5"
  44. env_logger = "*"
  45. async-std = { version = "1.9.0", features = ["attributes"] }
  46. rand = { version = "0.8.4", features = ["small_rng"] }
  47. surf = { version = "2.2.0", git = "https://github.com/jkelleyrtp/surf/", branch = "jk/fix-the-wasm" }
  48. gloo-timers = "0.2.1"
  49. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  50. gloo-timers = "0.2.1"
  51. surf = { version = "2.2.0", default-features = false, features = [
  52. "wasm-client",
  53. ], git = "https://github.com/jkelleyrtp/surf/", branch = "jk/fix-the-wasm" }
  54. [dependencies.getrandom]
  55. version = "0.2"
  56. features = ["js"]
  57. [workspace]
  58. members = [
  59. "packages/core",
  60. "packages/core-macro",
  61. "packages/html",
  62. "packages/hooks",
  63. "packages/web",
  64. "packages/ssr",
  65. "packages/desktop",
  66. "packages/mobile",
  67. ]
  68. [[example]]
  69. required-features = ["desktop"]
  70. name = "webview"
  71. path = "./examples/webview.rs"
  72. [[example]]
  73. required-features = ["desktop"]
  74. name = "tailwind"
  75. path = "./examples/tailwind.rs"