Cargo.toml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [package]
  2. name = "dioxus-native"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley", "Nico Burns"]
  5. edition = "2021"
  6. description = "Native renderer for Dioxus based on blitz"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com/learn/0.6/getting_started"
  10. keywords = ["dom", "ui", "gui", "react"]
  11. [features]
  12. default = ["accessibility", "hot-reload", "menu", "tracing", "net", "svg"]
  13. svg = ["blitz-dom/svg", "blitz-renderer-vello/svg"]
  14. net = ["dep:tokio", "dep:blitz-net"]
  15. accessibility = ["blitz-shell/accessibility", "blitz-dom/accessibility"]
  16. menu = ["blitz-shell/menu"]
  17. tracing = ["dep:tracing", "blitz-shell/tracing", "blitz-dom/tracing"]
  18. hot-reload = ["dep:dioxus-cli-config", "dep:dioxus-devtools"]
  19. autofocus = []
  20. [dependencies]
  21. # Blitz dependencies
  22. blitz-renderer-vello = { version = "0.1.0-alpha.1", default-features = false }
  23. blitz-dom = { version = "0.1.0-alpha.1", default-features = false }
  24. blitz-net = { version = "0.1.0-alpha.1", optional = true }
  25. blitz-traits = { version = "0.1.0-alpha.1" }
  26. blitz-shell = { version = "0.1.0-alpha.1", default-features = false }
  27. # blitz-renderer-vello = { git = "https://github.com/dioxuslabs/blitz", rev="c1a7ecf06d1760a268e0046dc0e43f6c796ddc3c", default-features = false }
  28. # blitz-dom = { git = "https://github.com/dioxuslabs/blitz", rev="c1a7ecf06d1760a268e0046dc0e43f6c796ddc3c", default-features = false }
  29. # blitz-net = { git = "https://github.com/dioxuslabs/blitz", rev="c1a7ecf06d1760a268e0046dc0e43f6c796ddc3c", optional = true }
  30. # blitz-traits = { git = "https://github.com/dioxuslabs/blitz", rev="c1a7ecf06d1760a268e0046dc0e43f6c796ddc3c" }
  31. # blitz-shell = { git = "https://github.com/dioxuslabs/blitz", rev="c1a7ecf06d1760a268e0046dc0e43f6c796ddc3c", default-features = false }
  32. # DioxusLabs dependencies
  33. dioxus-core = { workspace = true }
  34. dioxus-html = { workspace = true }
  35. dioxus-asset-resolver = { workspace = true }
  36. dioxus-cli-config = { workspace = true, optional = true }
  37. dioxus-devtools = { workspace = true, optional = true }
  38. dioxus-history = { workspace = true }
  39. dioxus-document = { workspace = true }
  40. # Windowing & Input
  41. winit = { workspace = true }
  42. keyboard-types = { workspace = true }
  43. # IO & Networking
  44. tokio = { workspace = true, features = ["rt-multi-thread"], optional = true }
  45. # Other dependencies
  46. tracing = { workspace = true, optional = true }
  47. rustc-hash = { workspace = true }
  48. futures-util = { workspace = true }
  49. [package.metadata.docs.rs]
  50. all-features = true
  51. rustdoc-args = ["--cfg", "docsrs"]