mirror of https://github.com/yewstack/yew
36 lines
887 B
TOML
36 lines
887 B
TOML
[package]
|
|
name = "simple_ssr"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
[[bin]]
|
|
name = "simple_ssr_hydrate"
|
|
required-features = ["hydration"]
|
|
|
|
[[bin]]
|
|
name = "simple_ssr_server"
|
|
required-features = ["ssr"]
|
|
|
|
[dependencies]
|
|
yew = { path = "../../packages/yew" }
|
|
reqwest = { version = "0.11.22", features = ["json"] }
|
|
serde = { version = "1.0.189", features = ["derive"] }
|
|
uuid = { version = "1.5.0", features = ["serde"] }
|
|
futures = "0.3"
|
|
bytes = "1.5"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = "0.4"
|
|
wasm-logger = "0.2"
|
|
log = "0.4"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
tokio = { version = "1.33.0", features = ["full"] }
|
|
warp = "0.3"
|
|
clap = { version = "4", features = ["derive"] }
|
|
|
|
[features]
|
|
hydration = ["yew/hydration"]
|
|
ssr = ["yew/ssr"]
|