* re-export the axum feature flag under "server" * remove the axum prefix from all the fullstack examples
94 lines
3.8 KiB
TOML
94 lines
3.8 KiB
TOML
[package]
|
|
name = "dioxus"
|
|
version = { workspace = true }
|
|
authors = ["Jonathan Kelley", "Dioxus Labs", "ealmloff"]
|
|
edition = "2021"
|
|
description = "Portable, performant, and ergonomic framework for building cross-platform user interfaces in Rust"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/DioxusLabs/dioxus/"
|
|
homepage = "https://dioxuslabs.com/learn/0.5/"
|
|
keywords = ["dom", "ui", "gui", "react", "wasm"]
|
|
rust-version = "1.79.0"
|
|
|
|
[dependencies]
|
|
dioxus-core = { workspace = true }
|
|
dioxus-html = { workspace = true, default-features = false, optional = true }
|
|
dioxus-core-macro = { workspace = true, optional = true }
|
|
dioxus-config-macro = { workspace = true, optional = true }
|
|
dioxus-hooks = { workspace = true, optional = true }
|
|
dioxus-signals = { workspace = true, optional = true }
|
|
dioxus-router = { workspace = true, optional = true }
|
|
dioxus-web = { workspace = true, default-features = false, optional = true }
|
|
dioxus-mobile = { workspace = true, optional = true }
|
|
dioxus-desktop = { workspace = true, default-features = true, optional = true }
|
|
dioxus-fullstack = { workspace = true, default-features = true, optional = true }
|
|
dioxus-static-site-generation = { workspace = true, optional = true }
|
|
dioxus-liveview = { workspace = true, optional = true }
|
|
dioxus-ssr = { workspace = true, optional = true }
|
|
manganis = { workspace = true, optional = true }
|
|
|
|
serde = { version = "1.0.136", optional = true }
|
|
axum = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "android")))'.dependencies]
|
|
dioxus-hot-reload = { workspace = true, optional = true }
|
|
|
|
[features]
|
|
default = ["macro", "html", "hot-reload", "signals", "hooks", "launch", "mounted", "file_engine", "document", "asset"]
|
|
minimal = ["macro", "html", "signals", "hooks", "launch"]
|
|
signals = ["dep:dioxus-signals"]
|
|
macro = ["dep:dioxus-core-macro"]
|
|
html = ["dep:dioxus-html"]
|
|
hooks = ["dep:dioxus-hooks"]
|
|
hot-reload = ["dep:dioxus-hot-reload", "dioxus-web?/hot_reload", "dioxus-fullstack?/hot-reload"]
|
|
mounted = ["dioxus-web?/mounted", "dioxus-html?/mounted"]
|
|
file_engine = ["dioxus-web?/file_engine"]
|
|
asset = ["dep:manganis", "dioxus-core/manganis"]
|
|
document = ["dioxus-web?/document", "dioxus-html?/document"]
|
|
|
|
launch = ["dep:dioxus-config-macro"]
|
|
router = ["dep:dioxus-router"]
|
|
|
|
# Platforms
|
|
fullstack = ["dep:dioxus-fullstack", "dioxus-config-macro/fullstack", "dep:serde", "dioxus-router?/fullstack"]
|
|
desktop = ["dep:dioxus-desktop", "dioxus-fullstack?/desktop", "dioxus-config-macro/desktop"]
|
|
mobile = ["dep:dioxus-mobile", "dioxus-fullstack?/mobile", "dioxus-config-macro/mobile"]
|
|
web = ["dep:dioxus-web", "dioxus-fullstack?/web", "dioxus-static-site-generation?/web", "dioxus-config-macro/web", "dioxus-router?/web"]
|
|
ssr = ["dep:dioxus-ssr", "dioxus-router?/ssr", "dioxus-config-macro/ssr"]
|
|
liveview = ["dep:dioxus-liveview", "dioxus-config-macro/liveview", "dioxus-router?/liveview"]
|
|
static-generation = ["dep:dioxus-static-site-generation", "dioxus-config-macro/static-generation"]
|
|
axum = ["server"]
|
|
server = ["dioxus-fullstack?/axum", "dioxus-fullstack?/server", "dioxus-static-site-generation?/server", "ssr", "dioxus-liveview?/axum", "dep:axum"]
|
|
|
|
# This feature just disables the no-renderer-enabled warning
|
|
third-party-renderer = []
|
|
|
|
[dev-dependencies]
|
|
futures-util = { workspace = true }
|
|
tracing = { workspace = true }
|
|
rand = { version = "0.8.4", features = ["small_rng"] }
|
|
criterion = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
env_logger = "0.10.0"
|
|
tokio = { workspace = true, features = ["full"] }
|
|
dioxus = { workspace = true }
|
|
|
|
[[bench]]
|
|
name = "jsframework"
|
|
harness = false
|
|
|
|
[package.metadata.docs.rs]
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
|
features = [
|
|
"router",
|
|
"ssr",
|
|
"web",
|
|
"fullstack",
|
|
"signals",
|
|
"hooks",
|
|
"html",
|
|
"liveview",
|
|
"static-generation",
|
|
"server"
|
|
]
|