mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 14:10:20 +00:00
176e67e5b7
* switch to a Document trait and introduce Script/Head/Style/Meta components * Fix desktop title * Insert special elements into the head during the inital SSR render * Make all head component attributes optional * hydrate head elements * improve the server streaming head warning * Document fullstack head hydration approach * deduplicate head elements by href * move Link into head::Link * document head components * add meta and title examples * Fix a few doc examples * fix formatting * Add title to playwright tests * serde is optional on web, but it is enabled by hydrate * remove leftover console log
51 lines
1.6 KiB
TOML
51 lines
1.6 KiB
TOML
[package]
|
|
name = "dioxus-ssr"
|
|
version = { workspace = true }
|
|
authors = ["Jonathan Kelley"]
|
|
edition = "2021"
|
|
description = "Dioxus render-to-string"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/DioxusLabs/dioxus/"
|
|
keywords = ["dom", "ui", "gui", "react", "ssr"]
|
|
|
|
[dependencies]
|
|
dioxus-core = { workspace = true, features = ["serialize"] }
|
|
dioxus-html = { workspace = true, features = ["document"]}
|
|
dioxus-cli-config = { workspace = true, features = ["read-config"], optional = true }
|
|
dioxus-interpreter-js = { workspace = true }
|
|
generational-box = { workspace = true }
|
|
askama_escape = "0.10.3"
|
|
thiserror = "1.0.23"
|
|
rustc-hash = "1.1.0"
|
|
lru = { workspace = true }
|
|
tracing = { workspace = true }
|
|
http = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
chrono = { version = "0.4.34", optional = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
tokio = { version = "1.28", features = ["io-util"], optional = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
tokio = { version = "1.28", features = ["fs", "io-util"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
dioxus = { workspace = true }
|
|
dioxus-signals = { workspace = true }
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
tracing = { workspace = true }
|
|
fern = { version = "0.6.0", features = ["colored"] }
|
|
anyhow = "1.0"
|
|
argh = "0.1.4"
|
|
serde = "1.0.120"
|
|
serde_json = "1.0.61"
|
|
fs_extra = "1.2.0"
|
|
|
|
[features]
|
|
default = []
|
|
incremental = ["dep:tokio", "dep:chrono", "dep:dioxus-cli-config"]
|
|
|
|
[package.metadata.docs.rs]
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|