dioxus/packages/router/Cargo.toml

62 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.3.0"
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]
2023-06-19 19:29:11 +00:00
dioxus = { workspace = true}
futures-channel = { workspace = true }
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 }
2023-06-19 19:29:11 +00:00
wasm-bindgen = { workspace = true, optional = true }
2022-02-01 20:13:18 +00:00
js-sys = { version = "0.3", optional = true }
2022-03-03 03:35:57 +00:00
gloo-events = { version = "0.1.1", optional = true }
2023-06-19 19:29:11 +00:00
log = { workspace = true }
2022-03-02 22:57:57 +00:00
thiserror = "1.0.30"
2023-06-19 19:29:11 +00:00
futures-util = { workspace = true }
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"
gloo-utils = "0.1.2"
2023-06-19 19:29:11 +00:00
dioxus-web = { workspace = true }
# dioxus-desktop = { workspace = true, optional = true }
2022-12-13 20:38:27 +00:00
# not wasm
2022-03-02 22:57:57 +00:00
2022-03-03 04:03:10 +00:00
[target.wasm32-unknown-unknown.dev-dependencies]
2023-06-19 19:29:11 +00:00
dioxus-router = { workspace = true, 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"]