2022-08-24 14:59:06 +00:00
|
|
|
[package]
|
|
|
|
name = "leptos_router"
|
2023-01-02 21:35:00 +00:00
|
|
|
version = "0.1.0-beta"
|
2022-08-24 14:59:06 +00:00
|
|
|
edition = "2021"
|
2022-10-07 10:50:21 +00:00
|
|
|
authors = ["Greg Johnston"]
|
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/gbj/leptos"
|
|
|
|
description = "Router for the Leptos web framework."
|
2022-08-24 14:59:06 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2023-01-02 21:35:00 +00:00
|
|
|
leptos = { path = "../leptos", version = "0.1.0-beta", default-features = false }
|
2022-11-03 01:46:47 +00:00
|
|
|
cfg-if = "1"
|
2022-08-24 14:59:06 +00:00
|
|
|
common_macros = "0.1"
|
2022-10-31 00:37:50 +00:00
|
|
|
gloo-net = "0.2"
|
2022-08-24 14:59:06 +00:00
|
|
|
itertools = "0.10"
|
|
|
|
lazy_static = "1"
|
|
|
|
linear-map = "1"
|
|
|
|
log = "0.4"
|
|
|
|
regex = { version = "1", optional = true }
|
2022-09-26 02:11:32 +00:00
|
|
|
bincode = "1"
|
2022-08-24 14:59:06 +00:00
|
|
|
url = { version = "2", optional = true }
|
|
|
|
urlencoding = "2"
|
|
|
|
thiserror = "1"
|
2022-11-17 01:16:21 +00:00
|
|
|
serde_urlencoded = "0.7"
|
2022-11-18 18:25:46 +00:00
|
|
|
serde = "1"
|
2022-11-03 01:46:47 +00:00
|
|
|
js-sys = { version = "0.3" }
|
|
|
|
wasm-bindgen = { version = "0.2" }
|
|
|
|
wasm-bindgen-futures = { version = "0.4" }
|
2022-08-24 14:59:06 +00:00
|
|
|
|
|
|
|
[dependencies.web-sys]
|
|
|
|
version = "0.3"
|
|
|
|
features = [
|
2022-09-14 14:14:47 +00:00
|
|
|
# History/Routing
|
2022-08-24 14:59:06 +00:00
|
|
|
"History",
|
|
|
|
"HtmlAnchorElement",
|
|
|
|
"MouseEvent",
|
2022-09-14 14:14:47 +00:00
|
|
|
"Url",
|
|
|
|
# Form
|
|
|
|
"FormData",
|
|
|
|
"HtmlButtonElement",
|
|
|
|
"HtmlFormElement",
|
|
|
|
"HtmlInputElement",
|
|
|
|
"SubmitEvent",
|
|
|
|
"Url",
|
2022-09-26 02:11:32 +00:00
|
|
|
"UrlSearchParams",
|
|
|
|
# Fetching in Hydrate Mode
|
|
|
|
"Headers",
|
|
|
|
"Request",
|
|
|
|
"RequestInit",
|
|
|
|
"RequestMode",
|
|
|
|
"Response",
|
|
|
|
"Window",
|
2022-08-24 14:59:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[features]
|
2022-11-14 22:31:45 +00:00
|
|
|
default = ["csr"]
|
2022-11-03 01:46:47 +00:00
|
|
|
csr = ["leptos/csr"]
|
|
|
|
hydrate = ["leptos/hydrate"]
|
2022-10-07 20:05:28 +00:00
|
|
|
ssr = ["leptos/ssr", "dep:url", "dep:regex"]
|
2022-12-29 23:10:14 +00:00
|
|
|
stable = ["leptos/stable"]
|
2022-11-03 02:25:19 +00:00
|
|
|
|
|
|
|
[package.metadata.cargo-all-features]
|
|
|
|
# No need to test optional dependencies as they are enabled by the ssr feature
|
2022-12-29 23:10:14 +00:00
|
|
|
denylist = ["url", "regex", "stable"]
|
2023-01-07 12:43:52 +00:00
|
|
|
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]
|