leptos/router/Cargo.toml

66 lines
1.4 KiB
TOML
Raw Normal View History

2022-08-24 14:59:06 +00:00
[package]
name = "leptos_router"
2023-02-18 17:45:46 +00:00
version = "0.2.0-alpha2"
2022-08-24 14:59:06 +00:00
edition = "2021"
2022-10-07 10:50:21 +00:00
authors = ["Greg Johnston"]
license = "MIT"
README = "../README.md"
2023-01-10 02:59:13 +00:00
repository = "https://github.com/leptos-rs/leptos"
2022-10-07 10:50:21 +00:00
description = "Router for the Leptos web framework."
2022-08-24 14:59:06 +00:00
[dependencies]
leptos = { workspace = true }
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
lazy_static = "1"
linear-map = "1"
log = "0.4"
regex = { version = "1", optional = true }
url = { version = "2", optional = true }
percent-encoding = "2"
2022-08-24 14:59:06 +00:00
thiserror = "1"
serde_urlencoded = "0.7"
serde = "1"
tracing = "0.1"
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 = [
# History/Routing
"History",
"HtmlAnchorElement",
"MouseEvent",
"Url",
# Form
"FormData",
"HtmlButtonElement",
"HtmlFormElement",
"HtmlInputElement",
"SubmitEvent",
"Url",
"UrlSearchParams",
# Fetching in Hydrate Mode
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Window",
2022-08-24 14:59:06 +00:00
]
[features]
default = []
csr = ["leptos/csr"]
hydrate = ["leptos/hydrate"]
2022-10-07 20:05:28 +00:00
ssr = ["leptos/ssr", "dep:url", "dep:regex"]
stable = ["leptos/stable"]
[package.metadata.cargo-all-features]
# No need to test optional dependencies as they are enabled by the ssr feature
denylist = ["url", "regex", "stable"]
2023-01-07 12:43:52 +00:00
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]