dioxus/packages/router/Cargo.toml

61 lines
1.6 KiB
TOML
Raw Normal View History

2021-11-03 04:35:56 +00:00
[package]
2022-02-01 20:13:18 +00:00
name = "dioxus-router"
version = "0.2.3"
2022-02-01 19:40:29 +00:00
edition = "2018"
description = "Cross-platform router for Dioxus apps"
2022-02-01 19:40:29 +00:00
license = "MIT/Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
2022-02-01 20:13:18 +00:00
homepage = "https://dioxuslabs.com"
documentation = "https://dioxuslabs.com"
keywords = ["dom", "ui", "gui", "react", "wasm"]
2021-11-03 04:35:56 +00:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dioxus = { path = "../dioxus" }
2022-03-02 22:57:57 +00:00
futures-channel = "0.3.21"
2022-03-03 04:45:36 +00:00
url = { version = "2.2.2", default-features = false }
2021-12-19 04:03:59 +00:00
# for wasm
2022-02-01 20:13:18 +00:00
web-sys = { version = "0.3", features = [
"Attr",
"Document",
"History",
"HtmlBaseElement",
"Event",
"NamedNodeMap",
"Url",
"UrlSearchParams",
"Window",
"Location",
2022-02-01 20:13:18 +00:00
], optional = true }
wasm-bindgen = { version = "0.2", optional = true }
js-sys = { version = "0.3", optional = true }
2022-03-03 03:35:57 +00:00
gloo-events = { version = "0.1.1", optional = true }
log = "0.4.14"
2022-03-02 22:57:57 +00:00
thiserror = "1.0.30"
futures-util = "0.3.21"
2022-03-03 04:03:10 +00:00
serde = { version = "1", optional = true }
2022-03-03 04:45:36 +00:00
serde_urlencoded = { version = "0.7.1", optional = true }
2021-11-03 04:35:56 +00:00
[features]
2022-03-03 04:03:10 +00:00
default = ["query"]
2022-03-03 03:35:57 +00:00
web = ["web-sys", "gloo-events", "js-sys", "wasm-bindgen"]
2022-03-03 04:08:05 +00:00
query = ["serde", "serde_urlencoded"]
2022-03-03 04:45:36 +00:00
wasm_test = []
hot-reload = ["dioxus/hot-reload"]
2021-11-19 05:49:04 +00:00
[dev-dependencies]
console_error_panic_hook = "0.1.7"
log = "0.4.14"
wasm-logger = "0.2.0"
2022-02-01 20:13:18 +00:00
wasm-bindgen-test = "0.3"
gloo-utils = "0.1.2"
dioxus-web = { path = "../web" }
2022-03-02 22:57:57 +00:00
2022-03-03 04:03:10 +00:00
[target.wasm32-unknown-unknown.dev-dependencies]
dioxus-router = { path = ".", features = ["web"] }
2022-03-02 22:57:57 +00:00
[dev-dependencies.web-sys]
version = "0.3"
2022-03-02 22:57:57 +00:00
features = ["Document"]