Cargo.toml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 = "0.3.15"
  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. surf = "2.2.0"
  40. env_logger = "*"
  41. async-std = { version = "1.9.0", features = ["attributes"] }
  42. im-rc = "15.0.0"
  43. rand = { version = "0.8.4", features = ["small_rng"] }
  44. fxhash = "0.2.1"
  45. [workspace]
  46. members = [
  47. "packages/core",
  48. "packages/core-macro",
  49. "packages/html",
  50. "packages/hooks",
  51. "packages/web",
  52. "packages/ssr",
  53. "packages/desktop",
  54. "packages/mobile",
  55. ]
  56. [[example]]
  57. required-features = ["desktop"]
  58. name = "webview"
  59. path = "./examples/webview.rs"
  60. [[example]]
  61. required-features = ["desktop"]
  62. name = "tailwind"
  63. path = "./examples/tailwind.rs"