2021-11-03 04:35:56 +00:00
|
|
|
[package]
|
2022-02-01 20:13:18 +00:00
|
|
|
name = "dioxus-router"
|
2023-01-04 19:31:07 +00:00
|
|
|
version = "0.3.0"
|
2022-02-01 19:40:29 +00:00
|
|
|
edition = "2018"
|
2022-03-09 19:24:05 +00:00
|
|
|
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]
|
2023-01-04 19:31:07 +00:00
|
|
|
dioxus = { path = "../dioxus", version = "0.3.0"}
|
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
|
|
|
|
2022-01-05 05:27:22 +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",
|
2022-07-09 19:15:20 +00:00
|
|
|
"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 }
|
2022-01-05 05:27:22 +00:00
|
|
|
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 = []
|
2021-11-19 05:49:04 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
console_error_panic_hook = "0.1.7"
|
|
|
|
wasm-logger = "0.2.0"
|
2022-02-01 20:13:18 +00:00
|
|
|
wasm-bindgen-test = "0.3"
|
2022-02-02 23:11:38 +00:00
|
|
|
gloo-utils = "0.1.2"
|
2023-01-04 19:31:07 +00:00
|
|
|
dioxus-web = { path = "../web", version = "0.3.0" }
|
2022-12-13 20:38:27 +00:00
|
|
|
# dioxus-desktop = { path = "../desktop", optional = true }
|
|
|
|
|
|
|
|
# not wasm
|
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
|
|
|
|
2022-02-02 23:11:38 +00:00
|
|
|
[dev-dependencies.web-sys]
|
|
|
|
version = "0.3"
|
2022-03-02 22:57:57 +00:00
|
|
|
features = ["Document"]
|