2021-11-03 04:35:56 +00:00
|
|
|
[package]
|
2022-02-01 20:13:18 +00:00
|
|
|
name = "dioxus-router"
|
2023-08-01 00:30:18 +00:00
|
|
|
authors = ["Jonathan Kelley", "Evan Almloff"]
|
2023-08-01 01:49:54 +00:00
|
|
|
version = { workspace = true }
|
2024-01-19 03:27:55 +00:00
|
|
|
edition = "2021"
|
2022-03-09 19:24:05 +00:00
|
|
|
description = "Cross-platform router for Dioxus apps"
|
2023-07-20 17:00:07 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2022-02-01 19:40:29 +00:00
|
|
|
repository = "https://github.com/DioxusLabs/dioxus/"
|
2022-02-01 20:13:18 +00:00
|
|
|
homepage = "https://dioxuslabs.com"
|
|
|
|
keywords = ["dom", "ui", "gui", "react", "wasm"]
|
2021-11-03 04:35:56 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2024-01-16 01:14:11 +00:00
|
|
|
dioxus-lib = { workspace = true }
|
2023-06-28 15:56:07 +00:00
|
|
|
dioxus-router-macro = { workspace = true }
|
2023-05-23 16:22:57 +00:00
|
|
|
gloo = { version = "0.8.0", optional = true }
|
2023-09-06 22:47:33 +00:00
|
|
|
tracing = { workspace = true }
|
2023-09-06 17:56:43 +00:00
|
|
|
urlencoding = "2.1.3"
|
2023-06-28 15:56:07 +00:00
|
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
2023-10-26 19:19:51 +00:00
|
|
|
serde_json = { version = "1.0.91", optional = true }
|
2023-05-22 21:42:32 +00:00
|
|
|
url = "2.3.1"
|
2023-06-28 15:56:07 +00:00
|
|
|
wasm-bindgen = { workspace = true, optional = true }
|
2023-07-20 17:55:52 +00:00
|
|
|
web-sys = { version = "0.3.60", optional = true, features = [
|
|
|
|
"ScrollRestoration",
|
|
|
|
] }
|
2023-06-01 16:03:44 +00:00
|
|
|
js-sys = { version = "0.3.63", optional = true }
|
|
|
|
gloo-utils = { version = "0.1.6", optional = true }
|
2023-10-26 19:19:51 +00:00
|
|
|
dioxus-liveview = { workspace = true, optional = true }
|
2023-06-28 15:56:07 +00:00
|
|
|
dioxus-ssr = { workspace = true, optional = true }
|
2024-05-22 12:24:15 +00:00
|
|
|
http = { workspace = true, optional = true }
|
2024-01-17 20:02:49 +00:00
|
|
|
dioxus-fullstack = { workspace = true, optional = true }
|
2023-06-28 15:56:07 +00:00
|
|
|
tokio = { workspace = true, features = ["full"], optional = true }
|
2024-03-27 02:10:26 +00:00
|
|
|
dioxus-cli-config = { workspace = true, features = ["read-config"] }
|
2024-06-07 01:15:17 +00:00
|
|
|
rustversion = "1.0.17"
|
2021-11-03 04:35:56 +00:00
|
|
|
|
2024-05-28 20:05:55 +00:00
|
|
|
# you need to comment this out when publishing since cargo workspaces is not smart enough to wipe this when dropping
|
|
|
|
# dev-dependncey crates
|
|
|
|
[target.'cfg(target_family = "wasm")'.dev-dependencies]
|
|
|
|
console_error_panic_hook = "0.1.7"
|
|
|
|
dioxus-router = { workspace = true, features = ["web"] }
|
|
|
|
# dioxus-web = { workspace = true }
|
|
|
|
gloo = "0.8.0"
|
|
|
|
wasm-bindgen-test = "0.3.33"
|
|
|
|
|
2021-11-03 04:35:56 +00:00
|
|
|
[features]
|
2024-01-18 20:41:19 +00:00
|
|
|
default = []
|
2024-07-02 03:50:36 +00:00
|
|
|
ssr = []
|
|
|
|
liveview = ["dioxus-liveview", "dep:tokio", "dep:serde", "dep:serde_json"]
|
2022-03-03 04:45:36 +00:00
|
|
|
wasm_test = []
|
2024-06-18 23:39:15 +00:00
|
|
|
web = ["dep:gloo", "dep:web-sys", "dep:wasm-bindgen", "dep:gloo-utils", "dep:js-sys", "dioxus-router-macro/web"]
|
|
|
|
fullstack = ["dep:dioxus-fullstack"]
|
2021-11-19 05:49:04 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-02-16 02:05:30 +00:00
|
|
|
axum = { workspace = true, features = ["ws"] }
|
2024-03-18 09:02:31 +00:00
|
|
|
dioxus = { workspace = true, features = ["router"] }
|
|
|
|
dioxus-ssr = { workspace = true }
|
2023-07-27 04:02:39 +00:00
|
|
|
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
|
2024-05-28 20:05:55 +00:00
|
|
|
ciborium = { version = "0.2.1" }
|
|
|
|
base64 = { version = "0.21.0" }
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
2022-12-13 20:38:27 +00:00
|
|
|
|
2024-05-28 20:05:55 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
|
|
|
# Most of the examples live in the workspace. We include some here so that docs.rs can scrape our examples for better inline docs
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "hash_fragment_state"
|
|
|
|
path = "../../examples/hash_fragment_state.rs"
|
|
|
|
doc-scrape-examples = true
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "query_segment_search"
|
|
|
|
path = "../../examples/query_segment_search.rs"
|
|
|
|
doc-scrape-examples = true
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "simple_router"
|
|
|
|
path = "../../examples/simple_router.rs"
|
|
|
|
doc-scrape-examples = true
|