Cargo.toml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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", "web"]
  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 = "0.9.0"
  45. async-std = { version = "1.9.0", features = ["attributes"] }
  46. rand = { version = "0.8.4", features = ["small_rng"] }
  47. gloo-timers = "0.2.1"
  48. # surf = { version = "2.3.1", default-features = false, features = [
  49. # "wasm-client",
  50. # ] }
  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.2.0", default-features = false, features = [
  58. # "wasm-client",
  59. # ], git = "https://github.com/jkelleyrtp/surf/", branch = "jk/fix-the-wasm" }
  60. [dev-dependencies.getrandom]
  61. version = "0.2"
  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"