dioxus/packages/fullstack/Cargo.toml

67 lines
2.3 KiB
TOML
Raw Normal View History

2023-03-28 18:35:17 +00:00
[package]
2023-05-02 15:15:34 +00:00
name = "dioxus-fullstack"
2023-03-28 18:35:17 +00:00
version = "0.1.0"
edition = "2021"
2023-04-03 18:58:54 +00:00
description = "Fullstack Dioxus Utilities"
license = "MIT/Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
homepage = "https://dioxuslabs.com"
documentation = "https://dioxuslabs.com"
keywords = ["dom", "ui", "gui", "react", "ssr", "fullstack"]
2023-03-28 18:35:17 +00:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
2023-04-02 20:07:51 +00:00
# server functions
server_fn = { git = "https://github.com/leptos-rs/leptos", rev = "15a4e54435eb5a539afb75891292bcccd2cc8e85", default-features = false, features = ["stable"] }
2023-04-03 22:39:09 +00:00
dioxus_server_macro = { path = "server-macro" }
2023-03-28 18:35:17 +00:00
# warp
warp = { version = "0.3.3", optional = true }
2023-03-31 14:40:58 +00:00
http-body = { version = "0.4.5", optional = true }
2023-03-28 18:35:17 +00:00
# axum
2023-04-02 22:45:28 +00:00
axum = { version = "0.6.1", features = ["ws"], optional = true }
2023-03-30 15:34:13 +00:00
tower-http = { version = "0.4.0", optional = true, features = ["fs"] }
axum-macros = "0.3.7"
2023-03-28 18:35:17 +00:00
# salvo
2023-04-02 22:45:28 +00:00
salvo = { version = "0.37.7", optional = true, features = ["serve-static", "ws"] }
2023-03-28 18:35:17 +00:00
serde = "1.0.159"
2023-04-02 20:07:51 +00:00
# Dioxus + SSR
2023-03-30 15:34:13 +00:00
dioxus-core = { path = "../core", version = "^0.3.0" }
dioxus-ssr = { path = "../ssr", version = "^0.3.0", optional = true }
hyper = { version = "0.14.25", optional = true }
http = { version = "0.2.9", optional = true }
2023-03-30 01:20:26 +00:00
log = "0.4.17"
once_cell = "1.17.1"
thiserror = "1.0.40"
2023-03-30 15:34:13 +00:00
tokio = { version = "1.27.0", features = ["full"], optional = true }
object-pool = "0.5.4"
2023-04-01 22:00:12 +00:00
anymap = "0.12.1"
2023-03-30 01:20:26 +00:00
2023-04-02 22:45:28 +00:00
serde_json = { version = "1.0.95", optional = true }
tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
futures-util = { version = "0.3.28", optional = true }
postcard = { version = "1.0.4", features = ["use-std"] }
yazi = "0.1.5"
2023-04-30 21:35:11 +00:00
base64 = "0.21.0"
2023-04-02 22:45:28 +00:00
2023-04-02 20:07:51 +00:00
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
dioxus-hot-reload = { path = "../hot-reload" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
2023-03-30 01:20:26 +00:00
[features]
2023-05-24 16:11:17 +00:00
default = ["hot-reload", "default-tls"]
2023-04-02 22:45:28 +00:00
hot-reload = ["serde_json", "tokio-stream", "futures-util"]
2023-04-01 22:05:44 +00:00
warp = ["dep:warp", "http-body", "ssr"]
axum = ["dep:axum", "tower-http", "ssr"]
salvo = ["dep:salvo", "ssr"]
ssr = ["server_fn/ssr", "tokio", "dioxus-ssr", "hyper", "http"]
2023-05-24 16:11:17 +00:00
default-tls = ["server_fn/default-tls"]
rustls = ["server_fn/rustls"]