diff --git a/Cargo.lock b/Cargo.lock index a83c1e53f..b1bbf972e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1826,6 +1826,19 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" +[[package]] +name = "gloo-utils" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40913a05c8297adca04392f707b1e73b12ba7b8eab7244a4961580b1fd34063c" +dependencies = [ + "js-sys", + "serde", + "serde_json", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "goblin" version = "0.5.4" @@ -2284,9 +2297,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.59" +version = "0.3.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2" +checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" dependencies = [ "wasm-bindgen", ] @@ -2712,6 +2725,7 @@ dependencies = [ "dashmap", "derive_builder", "getrandom 0.2.7", + "gloo-utils", "indexed_db_futures 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "indexed_db_futures 0.2.3 (git+https://github.com/Hywan/rust-indexed-db?branch=feat-factory-nodejs)", "js-sys", @@ -5224,21 +5238,19 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.82" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d" +checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" dependencies = [ "cfg-if", - "serde", - "serde_json", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.82" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f" +checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" dependencies = [ "bumpalo", "log", @@ -5251,9 +5263,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.32" +version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa76fb221a1f8acddf5b54ace85912606980ad661ac7a503b4570ffd3a624dad" +checksum = "23639446165ca5a5de86ae1d8896b737ae80319560fbaa4c2887b7da6e7ebd7d" dependencies = [ "cfg-if", "js-sys", @@ -5263,9 +5275,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.82" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602" +checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5273,9 +5285,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.82" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da" +checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" dependencies = [ "proc-macro2", "quote", @@ -5286,15 +5298,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.82" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a" +checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" [[package]] name = "wasm-bindgen-test" -version = "0.3.32" +version = "0.3.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "513df541345bb9fcc07417775f3d51bbb677daf307d8035c0afafd87dc2e6599" +checksum = "09d2fff962180c3fadf677438054b1db62bee4aa32af26a45388af07d1287e1d" dependencies = [ "console_error_panic_hook", "js-sys", @@ -5306,9 +5318,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-test-macro" -version = "0.3.32" +version = "0.3.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6150d36a03e90a3cf6c12650be10626a9902d70c5270fd47d7a47e5389a10d56" +checksum = "4683da3dfc016f704c9f82cf401520c4f1cb3ee440f7f52b3d6ac29506a49ca7" dependencies = [ "proc-macro2", "quote", diff --git a/bindings/matrix-sdk-crypto-js/Cargo.toml b/bindings/matrix-sdk-crypto-js/Cargo.toml index 17b62cd99..c17a6d9be 100644 --- a/bindings/matrix-sdk-crypto-js/Cargo.toml +++ b/bindings/matrix-sdk-crypto-js/Cargo.toml @@ -33,8 +33,8 @@ matrix-sdk-indexeddb = { version = "0.2.0", path = "../../crates/matrix-sdk-inde matrix-sdk-qrcode = { version = "0.4.0", path = "../../crates/matrix-sdk-qrcode", optional = true } ruma = { workspace = true, features = ["js", "rand", "unstable-msc2676", "unstable-msc2677"] } vodozemac = { workspace = true, features = ["js"] } -wasm-bindgen = "0.2.80" -wasm-bindgen-futures = "0.4.30" +wasm-bindgen = "0.2.83" +wasm-bindgen-futures = "0.4.33" js-sys = "0.3.49" console_error_panic_hook = "0.1.7" serde_json = "1.0.79" diff --git a/crates/matrix-sdk-base/Cargo.toml b/crates/matrix-sdk-base/Cargo.toml index 2b9df17a2..7836c1993 100644 --- a/crates/matrix-sdk-base/Cargo.toml +++ b/crates/matrix-sdk-base/Cargo.toml @@ -58,4 +58,4 @@ tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } tokio = { version = "1.17.0", default-features = false, features = ["rt-multi-thread", "macros"] } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = "0.3.30" +wasm-bindgen-test = "0.3.33" diff --git a/crates/matrix-sdk-common/Cargo.toml b/crates/matrix-sdk-common/Cargo.toml index 678a2e110..fabb6b406 100644 --- a/crates/matrix-sdk-common/Cargo.toml +++ b/crates/matrix-sdk-common/Cargo.toml @@ -27,7 +27,7 @@ serde = "1.0.136" [target.'cfg(target_arch = "wasm32")'.dependencies] async-lock = "2.5.0" futures-util = { version = "0.3.21", default-features = false, features = ["channel"] } -wasm-bindgen-futures = { version = "0.4.30", optional = true } +wasm-bindgen-futures = { version = "0.4.33", optional = true } wasm-timer = "0.2.5" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] @@ -35,4 +35,4 @@ tokio = { version = "1.17.0", default-features = false, features = ["rt", "sync" [dev-dependencies] matrix-sdk-test = { path = "../../testing/matrix-sdk-test/", version= "0.6.0"} -wasm-bindgen-test = "0.3.30" +wasm-bindgen-test = "0.3.33" diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index 86ea8b5bb..ba0f77787 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -133,7 +133,7 @@ tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] getrandom = { version = "0.2.6", default-features = false, features = ["js"] } -wasm-bindgen-test = "0.3.30" +wasm-bindgen-test = "0.3.33" [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] ctor = "0.1.23" diff --git a/examples/wasm_command_bot/Cargo.toml b/examples/wasm_command_bot/Cargo.toml index d2e2bb057..42c3c634b 100644 --- a/examples/wasm_command_bot/Cargo.toml +++ b/examples/wasm_command_bot/Cargo.toml @@ -13,8 +13,8 @@ test = false [dependencies] url = "2.2.2" -wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"] } -wasm-bindgen-futures = "0.4.24" +wasm-bindgen = { version = "0.2.83" } +wasm-bindgen-futures = "0.4.33" console_error_panic_hook = "0.1.6" web-sys = { version = "0.3.51", features = ["console"] } @@ -25,4 +25,4 @@ default-features = false features = ["js", "native-tls", "e2e-encryption", "indexeddb"] [dev-dependencies] -wasm-bindgen-test = "0.3.29" +wasm-bindgen-test = "0.3.33" diff --git a/testing/matrix-sdk-test/Cargo.toml b/testing/matrix-sdk-test/Cargo.toml index 1719d2b8c..07677ed57 100644 --- a/testing/matrix-sdk-test/Cargo.toml +++ b/testing/matrix-sdk-test/Cargo.toml @@ -30,4 +30,4 @@ serde_json = "1.0.79" tokio = { version = "1.17.0", default-features = false, features = ["rt", "macros"] } [target.'cfg(target_arch = "wasm32")'.dependencies] -wasm-bindgen-test = "0.3.30" +wasm-bindgen-test = "0.3.33"