update deps
This commit is contained in:
parent
f2eca2c8c8
commit
f22f1a00a9
4 changed files with 20 additions and 19 deletions
18
Cargo.lock
generated
18
Cargo.lock
generated
|
@ -337,9 +337,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "codee"
|
name = "codee"
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "af40247be877a1e3353fb406aa27ab3ef4bd3ff18cef91e75e667bfa3fde701d"
|
checksum = "5d3ad3122b0001c7f140cf4d605ef9a9e2c24d96ab0b4fb4347b76de2425f445"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
@ -988,18 +988,16 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "leptos-use"
|
name = "leptos-use"
|
||||||
version = "0.12.0"
|
version = "0.13.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "268b9df23d8c68ed0518c39d6f0d3b99fcbe30190a6dce4a7e5f342027ab0033"
|
checksum = "293a4efcd9c2dfc003e6a9ae39763f0d07928a995d531354dbc80276a7e9d53c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"codee",
|
"codee",
|
||||||
"cookie",
|
"cookie",
|
||||||
"default-struct-builder",
|
"default-struct-builder",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"gloo-timers",
|
"gloo-timers",
|
||||||
"gloo-utils",
|
|
||||||
"js-sys",
|
"js-sys",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"leptos",
|
"leptos",
|
||||||
|
@ -1781,9 +1779,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_json"
|
name = "serde_json"
|
||||||
version = "1.0.127"
|
version = "1.0.128"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8043c06d9f82bd7271361ed64f415fe5e12a77fdb52e573e7f06a516dea329ad"
|
checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itoa",
|
"itoa",
|
||||||
"memchr",
|
"memchr",
|
||||||
|
@ -2164,9 +2162,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tokio-util"
|
name = "tokio-util"
|
||||||
version = "0.7.11"
|
version = "0.7.12"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1"
|
checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
|
|
|
@ -7,15 +7,17 @@ authors = ["Adam Doyle <adam@doordesk.net>"]
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
codee = "0.1"
|
|
||||||
console_error_panic_hook = "0.1"
|
|
||||||
console_log = "1"
|
|
||||||
leptos = { version = "0.6", features = ["csr", "nightly"] }
|
leptos = { version = "0.6", features = ["csr", "nightly"] }
|
||||||
leptos-use = "0.12"
|
|
||||||
leptos_meta = { version = "0.6", features = ["csr", "nightly"] }
|
leptos_meta = { version = "0.6", features = ["csr", "nightly"] }
|
||||||
leptos_router = { version = "0.6", features = ["csr", "nightly"] }
|
leptos_router = { version = "0.6", features = ["csr", "nightly"] }
|
||||||
lib = { workspace = true }
|
console_error_panic_hook = "0.1"
|
||||||
|
console_log = "1"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
|
leptos-use = "0.13"
|
||||||
|
codee = "0.2"
|
||||||
|
|
||||||
|
lib = { workspace = true }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -9,7 +9,7 @@ use std::rc::Rc;
|
||||||
pub struct WebSocketContext {
|
pub struct WebSocketContext {
|
||||||
pub ready_state: Signal<ConnectionReadyState>,
|
pub ready_state: Signal<ConnectionReadyState>,
|
||||||
// pub message: Signal<Option<String>>,
|
// pub message: Signal<Option<String>>,
|
||||||
pub send: Rc<dyn Fn(&String)>,
|
send: Rc<dyn Fn(&String)>,
|
||||||
pub open: Rc<dyn Fn()>,
|
pub open: Rc<dyn Fn()>,
|
||||||
pub close: Rc<dyn Fn()>,
|
pub close: Rc<dyn Fn()>,
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ impl WebSocketContext {
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
ready_state,
|
ready_state,
|
||||||
|
// message,
|
||||||
send,
|
send,
|
||||||
open,
|
open,
|
||||||
close,
|
close,
|
||||||
|
@ -53,11 +54,11 @@ pub fn Websocket() -> impl IntoView {
|
||||||
open,
|
open,
|
||||||
close,
|
close,
|
||||||
..
|
..
|
||||||
// } = use_websocket::<String, FromToStringCodec>("wss://cards.doordesk.net/websocket");
|
} = use_websocket::<String, String, FromToStringCodec>(url);
|
||||||
} = use_websocket::<String, FromToStringCodec>(url);
|
|
||||||
|
|
||||||
provide_context(WebSocketContext::new(
|
provide_context(WebSocketContext::new(
|
||||||
ready_state,
|
ready_state,
|
||||||
|
// message,
|
||||||
Rc::new(send.clone()),
|
Rc::new(send.clone()),
|
||||||
Rc::new(open.clone()),
|
Rc::new(open.clone()),
|
||||||
Rc::new(close.clone()),
|
Rc::new(close.clone()),
|
||||||
|
|
|
@ -18,4 +18,4 @@ tower = { version = "0.5", features = ["util"] }
|
||||||
tower-http = { version = "0.5", features = ["fs", "trace", "compression-full"] }
|
tower-http = { version = "0.5", features = ["fs", "trace", "compression-full"] }
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
uuid = { version = "1.10", features = ["v7", "serde", "fast-rng"] }
|
uuid = { version = "1", features = ["v7", "serde", "fast-rng"] }
|
||||||
|
|
Loading…
Add table
Reference in a new issue