mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
245003a5d4
* create static site generation helpers in the router crate * work on integrating static site generation into fullstack * move ssg into a separate crate * integrate ssg with the launch builder * simplify ssg example * fix static_routes for child routes * move CLI hot reloading websocket code into dioxus-hot-reload * fix some unused imports * use the same hot reloading websocket code for fullstack * fix fullstack hot reloading * move cli hot reloading logic into the hot reload crate * ssg example working with dx serve * add more examples * fix clippy * fix formatting * fix hot reload doctest imports * fix axum imports * don't run server doc tests * Fix hot reload websocket doc examples
64 lines
2.3 KiB
TOML
64 lines
2.3 KiB
TOML
[package]
|
|
name = "dioxus-router"
|
|
authors = ["Jonathan Kelley", "Evan Almloff"]
|
|
version = { workspace = true }
|
|
edition = "2021"
|
|
description = "Cross-platform router for Dioxus apps"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/DioxusLabs/dioxus/"
|
|
homepage = "https://dioxuslabs.com"
|
|
keywords = ["dom", "ui", "gui", "react", "wasm"]
|
|
|
|
[dependencies]
|
|
dioxus-lib = { workspace = true }
|
|
dioxus-router-macro = { workspace = true }
|
|
gloo = { version = "0.8.0", optional = true }
|
|
tracing = { workspace = true }
|
|
urlencoding = "2.1.3"
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
serde_json = { version = "1.0.91", optional = true }
|
|
url = "2.3.1"
|
|
wasm-bindgen = { workspace = true, optional = true }
|
|
web-sys = { version = "0.3.60", optional = true, features = [
|
|
"ScrollRestoration",
|
|
] }
|
|
js-sys = { version = "0.3.63", optional = true }
|
|
gloo-utils = { version = "0.1.6", optional = true }
|
|
dioxus-liveview = { workspace = true, optional = true }
|
|
dioxus-ssr = { workspace = true, optional = true }
|
|
http = { workspace = true, optional = true }
|
|
dioxus-fullstack = { workspace = true, optional = true }
|
|
tokio = { workspace = true, features = ["full"], optional = true }
|
|
dioxus-cli-config = { workspace = true, features = ["read-config"] }
|
|
|
|
[features]
|
|
default = []
|
|
ssr = ["dioxus-ssr/incremental", "tokio", "dioxus-fullstack?/server", "http"]
|
|
liveview = ["dioxus-liveview", "tokio", "dep:serde", "serde_json"]
|
|
wasm_test = []
|
|
web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils", "js-sys", "dioxus-router-macro/web"]
|
|
fullstack = ["dioxus-fullstack"]
|
|
|
|
[dev-dependencies]
|
|
axum = { workspace = true, features = ["ws"] }
|
|
dioxus = { workspace = true, features = ["router"] }
|
|
dioxus-ssr = { workspace = true }
|
|
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
|
|
|
|
[[example]]
|
|
name = "static_generation"
|
|
required-features = ["ssr"]
|
|
|
|
[[bench]]
|
|
name = "incremental"
|
|
required-features = ["ssr"]
|
|
harness = false
|
|
|
|
# you need to comment this out when publishing since cargo workspaces is not smart enough to wipe this when dropping
|
|
# dev-dependncey crates
|
|
[target.'cfg(target_family = "wasm")'.dev-dependencies]
|
|
console_error_panic_hook = "0.1.7"
|
|
dioxus-router = { workspace = true, features = ["web"] }
|
|
# dioxus-web = { workspace = true }
|
|
gloo = "0.8.0"
|
|
wasm-bindgen-test = "0.3.33"
|