mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-25 03:53:08 +00:00
32 lines
679 B
TOML
32 lines
679 B
TOML
|
[package]
|
||
|
name = "axum-desktop"
|
||
|
version = "0.1.0"
|
||
|
edition = "2021"
|
||
|
publish = false
|
||
|
|
||
|
[lib]
|
||
|
|
||
|
[dependencies]
|
||
|
dioxus-desktop = { path = "../../../desktop", optional = true }
|
||
|
dioxus = { path = "../../../dioxus" }
|
||
|
dioxus-router = { path = "../../../router" }
|
||
|
dioxus-server = { path = "../../" }
|
||
|
axum = { version = "0.6.12", optional = true }
|
||
|
tokio = { version = "1.27.0", features = ["full"], optional = true }
|
||
|
serde = "1.0.159"
|
||
|
|
||
|
[features]
|
||
|
default = []
|
||
|
ssr = ["axum", "tokio", "dioxus-server/axum"]
|
||
|
desktop = ["dioxus-desktop"]
|
||
|
|
||
|
[[bin]]
|
||
|
name = "client"
|
||
|
path = "src/client.rs"
|
||
|
required-features = ["desktop"]
|
||
|
|
||
|
[[bin]]
|
||
|
name = "server"
|
||
|
path = "src/server.rs"
|
||
|
required-features = ["ssr"]
|