mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-15 00:47:09 +00:00
100 lines
2.6 KiB
TOML
100 lines
2.6 KiB
TOML
[package]
|
|
name = "dioxus"
|
|
version = "0.1.0"
|
|
authors = ["Jonathan Kelley <jkelleyrtp@gmail.com>"]
|
|
edition = "2018"
|
|
description = "Core functionality for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
|
|
"license" = "MIT/Apache-2.0"
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
dioxus-core = { path = "./packages/core" }
|
|
dioxus-core-macro = { path = "./packages/core-macro", optional = true }
|
|
dioxus-html = { path = "./packages/html", optional = true }
|
|
dioxus-web = { path = "./packages/web", optional = true }
|
|
dioxus-desktop = { path = "./packages/desktop", optional = true }
|
|
dioxus-hooks = { path = "./packages/hooks", optional = true }
|
|
dioxus-ssr = { path = "./packages/ssr", optional = true }
|
|
dioxus-mobile = { path = "./packages/mobile", optional = true }
|
|
|
|
[features]
|
|
# core
|
|
default = ["core", "ssr", "web"]
|
|
core = ["macro", "hooks", "html"]
|
|
macro = ["dioxus-core-macro"]
|
|
hooks = ["dioxus-hooks"]
|
|
html = ["dioxus-html"]
|
|
|
|
# utilities
|
|
atoms = []
|
|
router = []
|
|
|
|
# targets
|
|
ssr = ["dioxus-ssr"]
|
|
web = ["dioxus-web"]
|
|
desktop = ["dioxus-desktop"]
|
|
mobile = ["dioxus-mobile"]
|
|
|
|
|
|
[dev-dependencies]
|
|
futures-util = "0.3.16"
|
|
log = "0.4.14"
|
|
num-format = "0.4.0"
|
|
separator = "0.4.1"
|
|
serde = { version = "1.0.130", features = ["derive"] }
|
|
im-rc = "15.0.0"
|
|
fxhash = "0.2.1"
|
|
anyhow = "1.0.42"
|
|
reqwest = "0.11.4"
|
|
serde_json = "1.0.68"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
argh = "0.1.5"
|
|
env_logger = "0.9.0"
|
|
tokio = { version = "1.12.0", features = ["full"] }
|
|
rand = { version = "0.8.4", features = ["small_rng"] }
|
|
gloo-timers = "0.2.1"
|
|
# surf = { version = "2.3.1", default-features = false, features = [
|
|
# "wasm-client",
|
|
# ] }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
gloo-timers = "0.2.1"
|
|
wasm-logger = "0.2.0"
|
|
console_error_panic_hook = "0.1.6"
|
|
rand = { version = "0.8.4", features = ["small_rng"] }
|
|
wasm-bindgen = { version = "0.2.71", features = ["enable-interning"] }
|
|
|
|
# surf = { version = "2.2.0", default-features = false, features = [
|
|
# "wasm-client",
|
|
# ], git = "https://github.com/jkelleyrtp/surf/", branch = "jk/fix-the-wasm" }
|
|
|
|
|
|
[dev-dependencies.getrandom]
|
|
version = "0.2"
|
|
features = ["js"]
|
|
|
|
|
|
[workspace]
|
|
members = [
|
|
"packages/core",
|
|
"packages/core-macro",
|
|
"packages/html",
|
|
"packages/hooks",
|
|
"packages/web",
|
|
"packages/ssr",
|
|
"packages/desktop",
|
|
"packages/mobile",
|
|
"packages/webview-client"
|
|
]
|
|
|
|
|
|
[[example]]
|
|
required-features = ["desktop"]
|
|
name = "webview"
|
|
path = "./examples/webview.rs"
|
|
|
|
[[example]]
|
|
required-features = ["desktop"]
|
|
name = "tailwind"
|
|
path = "./examples/tailwind.rs"
|