create fullstack hello world example

This commit is contained in:
Evan Almloff committed 2023-03-30 10:34:13 -05:00
1 parent 939e75541e
commit fdc8ebd1b1
11 files changed
+312 -117

No files matched your search

+16 -7
View File
@@ -1,5 +1,5 @@
[package]
name = "server"
name = "dioxus-server"
version = "0.1.0"
edition = "2021"
@@ -7,28 +7,37 @@ edition = "2021"
[dependencies]
server_fn = { version = "0.2.4", features = ["stable"] }
server_macro = { path = "server_macro" }
# warp
warp = { version = "0.3.3", optional = true }
# axum
axum = { version = "0.6.1", optional = true, features = ["ws"] }
tower-http = { version = "0.4.0", optional = true, features = ["fs"] }
hyper = { version = "0.14.25", optional = true }
# salvo
salvo = { version = "0.37.7", optional = true, features = ["ws"] }
serde = "1.0.159"
dioxus = { path = "../dioxus", version = "^0.3.0" }
dioxus-core = { path = "../core", version = "^0.3.0" }
dioxus-ssr = { path = "../ssr", version = "^0.3.0", optional = true }
log = "0.4.17"
once_cell = "1.17.1"
thiserror = "1.0.40"
hyper = "0.14.25"
tokio = { version = "1.27.0", features = ["full"] }
tokio = { version = "1.27.0", features = ["full"], optional = true }
[features]
default = ["axum", "ssr"]
default = []
warp = ["dep:warp"]
axum = ["dep:axum"]
axum = ["dep:axum", "tower-http", "hyper"]
salvo = ["dep:salvo"]
ssr = ["server_fn/ssr"]
ssr = ["server_fn/ssr", "tokio", "dioxus-ssr"]
[workspace]
members = [
"server_macro",
"examples/hello-world",
]