2023-05-12 20:22:16 +01:00
|
|
|
[package]
|
|
|
|
name = "leptos-use"
|
2024-02-23 02:24:27 +00:00
|
|
|
version = "0.10.3"
|
2023-05-12 20:22:16 +01:00
|
|
|
edition = "2021"
|
|
|
|
authors = ["Marc-Stefan Cassola"]
|
|
|
|
categories = ["gui", "web-programming"]
|
|
|
|
description = "Collection of essential Leptos utilities inspired by SolidJS USE / VueUse"
|
|
|
|
exclude = ["examples/", "tests/"]
|
|
|
|
keywords = ["leptos", "utilities"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
2023-05-13 23:05:08 +01:00
|
|
|
readme = "README.md"
|
2023-05-12 20:22:16 +01:00
|
|
|
repository = "https://github.com/Synphonyte/leptos-use"
|
2023-06-05 00:02:13 +01:00
|
|
|
homepage = "https://leptos-use.rs"
|
2023-05-12 20:22:16 +01:00
|
|
|
|
|
|
|
[dependencies]
|
2024-01-21 17:41:14 +05:30
|
|
|
actix-web = { version = "4", optional = true, default-features = false }
|
2023-12-11 22:12:21 +00:00
|
|
|
async-trait = "0.1"
|
2023-10-27 10:05:02 +01:00
|
|
|
base64 = { version = "0.21", optional = true }
|
2023-10-23 20:15:05 -05:00
|
|
|
cfg-if = "1"
|
2024-01-21 17:33:53 +05:30
|
|
|
cookie = { version = "0.18", features = ["percent-encode"] }
|
2023-08-04 15:58:03 +01:00
|
|
|
default-struct-builder = "0.5"
|
2023-10-23 20:15:05 -05:00
|
|
|
futures-util = "0.3"
|
|
|
|
gloo-timers = { version = "0.3.0", features = ["futures"] }
|
2023-12-11 22:10:36 +00:00
|
|
|
gloo-utils = { version = "0.2.0" }
|
2024-01-27 03:29:14 +05:30
|
|
|
http1 = { version = "1", optional = true, package = "http" }
|
|
|
|
http0_2 = { version = "0.2", optional = true, package = "http" }
|
2023-10-23 20:15:05 -05:00
|
|
|
js-sys = "0.3"
|
|
|
|
lazy_static = "1"
|
2024-01-27 03:15:21 +05:30
|
|
|
leptos = "0.6"
|
|
|
|
leptos_axum = { version = "0.6", optional = true }
|
2024-01-31 16:54:25 +00:00
|
|
|
leptos_actix = { version = "0.6", optional = true }
|
2023-06-21 18:14:43 +02:00
|
|
|
num = { version = "0.4", optional = true }
|
2023-10-23 20:15:05 -05:00
|
|
|
paste = "1"
|
2023-10-29 12:23:33 +00:00
|
|
|
prost = { version = "0.12", optional = true }
|
2023-12-11 22:12:21 +00:00
|
|
|
rmp-serde = { version = "1.1", optional = true }
|
2023-06-21 18:16:16 +02:00
|
|
|
serde = { version = "1", optional = true }
|
|
|
|
serde_json = { version = "1", optional = true }
|
2024-01-23 15:55:12 +00:00
|
|
|
thiserror = "1"
|
2023-11-15 23:45:51 +00:00
|
|
|
wasm-bindgen = "0.2.88"
|
2023-10-23 23:49:11 -05:00
|
|
|
wasm-bindgen-futures = "0.4"
|
2023-05-28 17:42:16 +01:00
|
|
|
|
2023-05-29 01:52:03 +01:00
|
|
|
[dependencies.web-sys]
|
2024-01-27 03:15:21 +05:30
|
|
|
version = "0.3"
|
2023-05-29 01:52:03 +01:00
|
|
|
features = [
|
2023-07-29 15:12:09 +01:00
|
|
|
"AddEventListenerOptions",
|
2023-07-14 16:43:42 +01:00
|
|
|
"BinaryType",
|
2024-01-29 19:18:27 +00:00
|
|
|
"BroadcastChannel",
|
2024-01-31 16:54:25 +00:00
|
|
|
"Coordinates",
|
2024-02-09 03:18:53 +00:00
|
|
|
"Clipboard",
|
2023-07-10 15:55:17 +02:00
|
|
|
"CloseEvent",
|
2023-09-12 23:53:43 +01:00
|
|
|
"CssStyleDeclaration",
|
2023-06-09 23:10:33 +01:00
|
|
|
"CustomEvent",
|
|
|
|
"CustomEventInit",
|
2023-12-11 22:10:36 +00:00
|
|
|
"DisplayMediaStreamConstraints",
|
2023-07-17 03:17:08 +01:00
|
|
|
"DomRect",
|
2023-06-02 13:38:01 +01:00
|
|
|
"DomRectReadOnly",
|
2023-07-15 00:55:02 +01:00
|
|
|
"DataTransfer",
|
|
|
|
"DragEvent",
|
2023-06-05 00:02:13 +01:00
|
|
|
"Element",
|
2023-07-29 15:12:09 +01:00
|
|
|
"EventListener",
|
|
|
|
"EventListenerOptions",
|
|
|
|
"EventTarget",
|
2023-07-15 00:55:02 +01:00
|
|
|
"File",
|
|
|
|
"FileList",
|
2023-09-12 23:53:43 +01:00
|
|
|
"Geolocation",
|
2024-01-29 19:18:27 +00:00
|
|
|
"HtmlDocument",
|
2024-01-31 16:54:25 +00:00
|
|
|
"HtmlElement",
|
2023-06-10 13:49:00 +01:00
|
|
|
"HtmlLinkElement",
|
2023-06-23 22:04:16 +01:00
|
|
|
"HtmlStyleElement",
|
2023-06-10 23:59:32 +01:00
|
|
|
"IntersectionObserver",
|
|
|
|
"IntersectionObserverInit",
|
|
|
|
"IntersectionObserverEntry",
|
2024-02-11 01:03:12 +01:00
|
|
|
"Location",
|
2023-12-11 22:10:36 +00:00
|
|
|
"MediaDevices",
|
2023-06-10 03:19:00 +01:00
|
|
|
"MediaQueryList",
|
2023-12-11 22:10:36 +00:00
|
|
|
"MediaStream",
|
|
|
|
"MediaStreamTrack",
|
2024-01-31 16:54:25 +00:00
|
|
|
"MessageEvent",
|
2023-06-02 13:38:01 +01:00
|
|
|
"MouseEvent",
|
2023-06-13 00:31:38 +01:00
|
|
|
"MutationObserver",
|
|
|
|
"MutationObserverInit",
|
|
|
|
"MutationRecord",
|
2023-06-02 13:38:01 +01:00
|
|
|
"Navigator",
|
2023-06-10 13:49:00 +01:00
|
|
|
"NodeList",
|
2023-12-11 22:10:36 +00:00
|
|
|
"Notification",
|
|
|
|
"NotificationDirection",
|
|
|
|
"NotificationOptions",
|
|
|
|
"NotificationPermission",
|
2024-02-09 03:18:53 +00:00
|
|
|
"Permissions",
|
|
|
|
"PermissionState",
|
|
|
|
"PermissionStatus",
|
2023-07-17 03:17:08 +01:00
|
|
|
"PointerEvent",
|
2023-09-12 23:53:43 +01:00
|
|
|
"Position",
|
|
|
|
"PositionError",
|
|
|
|
"PositionOptions",
|
2023-08-11 13:48:53 +01:00
|
|
|
"ReadableStream",
|
2023-08-31 18:26:03 +01:00
|
|
|
"ReadableStreamDefaultReader",
|
2023-08-11 13:48:53 +01:00
|
|
|
"ReadableStreamGetReaderOptions",
|
|
|
|
"ReadableStreamReaderMode",
|
2023-05-29 01:52:03 +01:00
|
|
|
"ResizeObserver",
|
|
|
|
"ResizeObserverBoxOptions",
|
|
|
|
"ResizeObserverEntry",
|
2023-06-02 13:38:01 +01:00
|
|
|
"ResizeObserverOptions",
|
|
|
|
"ResizeObserverSize",
|
|
|
|
"ScrollBehavior",
|
|
|
|
"ScrollToOptions",
|
2023-12-11 22:10:36 +00:00
|
|
|
"ServiceWorker",
|
|
|
|
"ServiceWorkerContainer",
|
|
|
|
"ServiceWorkerRegistration",
|
|
|
|
"ServiceWorkerState",
|
2023-06-23 22:04:16 +01:00
|
|
|
"Storage",
|
2023-12-11 22:10:36 +00:00
|
|
|
"StorageEvent",
|
2023-06-02 13:38:01 +01:00
|
|
|
"Touch",
|
|
|
|
"TouchEvent",
|
|
|
|
"TouchList",
|
2024-02-11 01:03:12 +01:00
|
|
|
"Url",
|
|
|
|
"UrlSearchParams",
|
2023-07-07 23:34:50 +01:00
|
|
|
"VisibilityState",
|
2023-07-14 16:43:42 +01:00
|
|
|
"WebSocket",
|
2023-07-28 21:04:44 +01:00
|
|
|
"WebTransport",
|
|
|
|
"WebTransportOptions",
|
2023-08-11 13:48:53 +01:00
|
|
|
"WebTransportDatagramDuplexStream",
|
2023-08-22 14:34:04 +01:00
|
|
|
"WebTransportBidirectionalStream",
|
2023-06-08 23:52:14 +01:00
|
|
|
"Window",
|
2023-08-22 14:34:04 +01:00
|
|
|
"WebTransportReceiveStream",
|
|
|
|
"WebTransportSendStream",
|
2023-08-11 13:48:53 +01:00
|
|
|
"WritableStream",
|
|
|
|
"WritableStreamDefaultWriter",
|
2023-05-29 01:52:03 +01:00
|
|
|
]
|
|
|
|
|
2024-01-31 16:54:25 +00:00
|
|
|
[dev-dependencies]
|
|
|
|
rand = "0.8"
|
|
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
|
|
|
2023-05-28 17:42:16 +01:00
|
|
|
[features]
|
2024-01-31 16:54:25 +00:00
|
|
|
actix = ["dep:actix-web", "dep:leptos_actix", "dep:http0_2"]
|
2024-01-27 03:29:14 +05:30
|
|
|
axum = ["dep:leptos_axum", "dep:http1"]
|
2023-06-03 05:25:45 +01:00
|
|
|
docs = []
|
2023-06-10 19:15:41 +01:00
|
|
|
math = ["num"]
|
2023-10-27 14:32:03 +01:00
|
|
|
prost = ["base64", "dep:prost"]
|
|
|
|
serde = ["dep:serde", "serde_json"]
|
2023-07-14 22:43:19 +01:00
|
|
|
ssr = []
|
2023-08-22 14:34:04 +01:00
|
|
|
msgpack = ["dep:rmp-serde", "dep:serde"]
|
2023-06-03 16:23:58 +01:00
|
|
|
|
2023-06-24 01:12:43 +01:00
|
|
|
[package.metadata.docs.rs]
|
2024-01-31 21:15:38 +00:00
|
|
|
features = ["math", "docs", "ssr", "prost", "serde"]
|