dioxus/packages/fullstack/examples/axum-desktop/Cargo.toml

32 lines
659 B
TOML
Raw Normal View History

2023-04-03 18:34:34 +00:00
[package]
name = "axum-desktop"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
[dependencies]
2023-06-19 19:29:11 +00:00
dioxus-desktop = { workspace = true, optional = true }
dioxus = { workspace = true }
dioxus-router = { workspace = true }
dioxus-fullstack = { workspace = true }
2023-04-03 18:34:34 +00:00
axum = { version = "0.6.12", optional = true }
2023-06-19 19:29:11 +00:00
tokio = { workspace = true, features = ["full"], optional = true }
2023-04-03 18:34:34 +00:00
serde = "1.0.159"
[features]
default = []
2023-05-02 15:15:34 +00:00
ssr = ["axum", "tokio", "dioxus-fullstack/axum"]
2023-04-03 18:34:34 +00:00
desktop = ["dioxus-desktop"]
[[bin]]
name = "client"
path = "src/client.rs"
required-features = ["desktop"]
[[bin]]
name = "server"
2023-05-04 16:44:32 +00:00
path = "src/server.rs"
2023-04-03 18:34:34 +00:00
required-features = ["ssr"]