mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Enable dependabot for examples and tools. * Make everything to use Gloo. * Require features for binaries. * Update every Friday.
37 lines
887 B
TOML
37 lines
887 B
TOML
[package]
|
|
name = "ssr_router"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[[bin]]
|
|
name = "ssr_router_hydrate"
|
|
required-features = ["hydration"]
|
|
|
|
[[bin]]
|
|
name = "ssr_router_server"
|
|
required-features = ["ssr"]
|
|
|
|
[dependencies]
|
|
yew = { path = "../../packages/yew" }
|
|
function_router = { path = "../function_router" }
|
|
log = "0.4"
|
|
futures = "0.3"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = "0.4"
|
|
wasm-logger = "0.2"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
tokio = { version = "1.15.0", features = ["full"] }
|
|
axum = "0.5"
|
|
tower = { version = "0.4", features = ["make"] }
|
|
tower-http = { version = "0.3", features = ["fs"] }
|
|
env_logger = "0.9"
|
|
clap = { version = "3.1.7", features = ["derive"] }
|
|
|
|
[features]
|
|
ssr = ["yew/ssr"]
|
|
hydration = ["yew/hydration"]
|