Skip to content

Commit

Permalink
Update gloo
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsverre committed Jan 9, 2024
1 parent 11d8f6a commit 972efb0
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,17 @@ event-listener = "3.0"
sha2 = "0.10.8"
serde-wasm-bindgen = "0.6"

# specific revision of gloo needed for:
# - access `TryFrom<web_sys::Websocket> for WebSocket`
# - parse_message receiving a uint8array directly
# and the cloudflare compatibility fix for writing to a websocket
gloo = { git = "https://github.com/carlsverre/gloo", rev = "90f88e31daf1a9592c08c09375731166eeb8940e" }
gloo-net = { git = "https://github.com/carlsverre/gloo", rev = "90f88e31daf1a9592c08c09375731166eeb8940e" }

# specific revision of tsify needed for serde updates
tsify = { git = "https://github.com/carlsverre/tsify", rev = "c05a60b6ae15b2869bf63f618940dc56ef516d1d", default-features = false }

# specific revision of gloo needed for:
# - parse_message receiving a uint8array directly
# - cloudflare compatibility fix for writing to a websocket
[workspace.dependencies.gloo]
git = "https://github.com/carlsverre/gloo"
rev = "8f48a39a0a1e126e3c455525d5b4c51487102333"
features = ["futures"]

[workspace.dependencies.libsqlite3-sys]
git = "https://github.com/trevyn/rusqlite"
features = ["bundled", "wasm32-unknown-unknown-openbsd-libc"]
Expand Down
3 changes: 1 addition & 2 deletions demo/cloudflare-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
gloo = { workspace = true, features = ["futures"] }
gloo-net = { workspace = true, features = ["cloudflare"] }
gloo = { workspace = true, features = ["cloudflare"] }
futures.workspace = true
worker.workspace = true
console_error_panic_hook.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions demo/cloudflare-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"wrangler-tail": "wrangler tail"
},
"devDependencies": {
"wrangler": "^3.22.3"
"wrangler": "^3.22.4"
}
}
}
2 changes: 1 addition & 1 deletion demo/cloudflare-backend/src/coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use futures::{
stream::{repeat, SelectAll, SplitSink, SplitStream},
FutureExt, SinkExt, StreamExt,
};
use gloo::net::websocket::{futures::WebSocket, Message, WebSocketError};
use gloo::timers::future::TimeoutFuture;
use gloo_net::websocket::{futures::WebSocket, Message, WebSocketError};
use sqlsync::{
coordinator::CoordinatorDocument,
replication::{ReplicationMsg, ReplicationProtocol, ReplicationSource},
Expand Down

0 comments on commit 972efb0

Please sign in to comment.