Cargo.toml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. wasm-logger = "0.2.0"
  52. console_error_panic_hook = "0.1.6"
  53. rand = { version = "0.8.4", features = ["small_rng"] }
  54. wasm-bindgen = { version = "0.2.71", features = ["enable-interning"] }
  55. # surf = { version = "2.2.0", default-features = false, features = [
  56. # "wasm-client",
  57. # ], git = "https://github.com/jkelleyrtp/surf/", branch = "jk/fix-the-wasm" }
  58. [dev-dependencies.getrandom]
  59. version = "0.2"
  60. features = ["js"]
  61. [workspace]
  62. members = [
  63. "packages/core",
  64. "packages/core-macro",
  65. "packages/html",
  66. "packages/hooks",
  67. "packages/web",
  68. "packages/ssr",
  69. "packages/desktop",
  70. "packages/mobile",
  71. ]
  72. [[example]]
  73. required-features = ["desktop"]
  74. name = "webview"
  75. path = "./examples/webview.rs"
  76. [[example]]
  77. required-features = ["desktop"]
  78. name = "tailwind"
  79. path = "./examples/tailwind.rs"