mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-22 10:33:07 +00:00
d9546d9504
* feat: use synchronous router design * feat: function to get router out of dom * chore: restructure workspace to use renderers as packages, not features
60 lines
1.6 KiB
TOML
60 lines
1.6 KiB
TOML
[package]
|
|
name = "dioxus-router"
|
|
version = "0.2.3"
|
|
edition = "2018"
|
|
description = "Cross-platform router for Dioxus apps"
|
|
license = "MIT/Apache-2.0"
|
|
repository = "https://github.com/DioxusLabs/dioxus/"
|
|
homepage = "https://dioxuslabs.com"
|
|
documentation = "https://dioxuslabs.com"
|
|
keywords = ["dom", "ui", "gui", "react", "wasm"]
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
dioxus = { path = "../dioxus" }
|
|
futures-channel = "0.3.21"
|
|
url = { version = "2.2.2", default-features = false }
|
|
|
|
# for wasm
|
|
web-sys = { version = "0.3", features = [
|
|
"Attr",
|
|
"Document",
|
|
"History",
|
|
"HtmlBaseElement",
|
|
"Event",
|
|
"NamedNodeMap",
|
|
"Url",
|
|
"UrlSearchParams",
|
|
"Window",
|
|
"Location",
|
|
], optional = true }
|
|
wasm-bindgen = { version = "0.2", optional = true }
|
|
js-sys = { version = "0.3", optional = true }
|
|
gloo-events = { version = "0.1.1", optional = true }
|
|
log = "0.4.14"
|
|
thiserror = "1.0.30"
|
|
futures-util = "0.3.21"
|
|
serde = { version = "1", optional = true }
|
|
serde_urlencoded = { version = "0.7.1", optional = true }
|
|
|
|
[features]
|
|
default = ["query"]
|
|
web = ["web-sys", "gloo-events", "js-sys", "wasm-bindgen"]
|
|
query = ["serde", "serde_urlencoded"]
|
|
wasm_test = []
|
|
hot-reload = ["dioxus/hot-reload"]
|
|
|
|
[dev-dependencies]
|
|
console_error_panic_hook = "0.1.7"
|
|
log = "0.4.14"
|
|
wasm-logger = "0.2.0"
|
|
wasm-bindgen-test = "0.3"
|
|
gloo-utils = "0.1.2"
|
|
dioxus-web = { path = "../web" }
|
|
|
|
[target.wasm32-unknown-unknown.dev-dependencies]
|
|
dioxus-router = { path = ".", features = ["web"] }
|
|
|
|
[dev-dependencies.web-sys]
|
|
version = "0.3"
|
|
features = ["Document"]
|