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

32 lines
659 B
TOML
Raw Normal View History

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