From 86342eaab15f227156db0e026b36e414ed1b9f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 31 Aug 2026 18:11:15 +0200 Subject: [PATCH 1/2] chore: Bump Ruma and uniffi --- Cargo.lock | 244 +++++++++++++++++++++++------------------------------ Cargo.toml | 11 +-- 2 files changed, 107 insertions(+), 148 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 106e4a9f630..fae05a3e8ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -142,11 +142,11 @@ checksum = "9dbc3a507a82b17ba0d98f6ce8fd6954ea0c8152e98009d36a40d8dcc8ce078a" [[package]] name = "askama" -version = "0.14.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f75363874b771be265f4ffe307ca705ef6f3baa19011c149da8674a87f1b75c4" +checksum = "f1bf825125edd887a019d0a3a837dcc5499a68b0d034cc3eb594070c3e18addc" dependencies = [ - "askama_derive", + "askama_macros", "itoa", "percent-encoding", "serde", @@ -155,12 +155,13 @@ dependencies = [ [[package]] name = "askama_derive" -version = "0.14.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "129397200fe83088e8a68407a8e2b1f826cf0086b21ccdb866a722c8bcd3a94f" +checksum = "e1c7065972a130eafa84215f21352ae15b4a7393da48c1f5e103904490736738" dependencies = [ "askama_parser", "basic-toml", + "glob", "memchr", "proc-macro2", "quote", @@ -170,16 +171,26 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "askama_macros" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e23b1d2c4bd39a41971f6124cef4cc6fd0540913ecb90919b69ab3bbe44ae1a" +dependencies = [ + "askama_derive", +] + [[package]] name = "askama_parser" -version = "0.14.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6ab5630b3d5eaf232620167977f95eb51f3432fc76852328774afbd242d4358" +checksum = "7db09fde9143e7ac4513358fb32ee32847125b63b18ea715afd487956da715da" dependencies = [ - "memchr", + "rustc-hash", "serde", "serde_derive", - "winnow 0.7.13", + "unicode-ident", + "winnow", ] [[package]] @@ -717,18 +728,19 @@ dependencies = [ [[package]] name = "cargo-platform" -version = "0.1.9" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +checksum = "dd0061da739915fae12ea00e16397555ed4371a6bb285431aab930f61b0aa4ba" dependencies = [ "serde", + "serde_core", ] [[package]] name = "cargo_metadata" -version = "0.19.2" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +checksum = "ef987d17b0a113becdd19d3d0022d04d7ef41f9efe4f3fb63ac44ba61df3ade9" dependencies = [ "camino", "cargo-platform", @@ -1712,7 +1724,7 @@ dependencies = [ "libc", "option-ext", "redox_users", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -1819,7 +1831,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.60.2", ] [[package]] @@ -2237,9 +2249,9 @@ dependencies = [ [[package]] name = "fs-err" -version = "2.11.0" +version = "3.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +checksum = "b91aa448ca50d7e79433bdf3ee8d99215430d2ec02ade5aefab2a073a1822e8a" dependencies = [ "autocfg", ] @@ -2563,30 +2575,6 @@ dependencies = [ "hashbrown 0.17.1", ] -[[package]] -name = "headers" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb" -dependencies = [ - "base64 0.22.1", - "bytes", - "headers-core", - "http", - "httpdate", - "mime", - "sha1", -] - -[[package]] -name = "headers-core" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4" -dependencies = [ - "http", -] - [[package]] name = "heck" version = "0.5.0" @@ -4940,7 +4928,7 @@ dependencies = [ "quinn-udp", "rustc-hash", "rustls", - "socket2 0.5.7", + "socket2 0.6.5", "thiserror 2.0.19", "tokio", "tracing", @@ -5391,8 +5379,9 @@ dependencies = [ [[package]] name = "ruma" -version = "0.16.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc484e2676b31e677a3e3646078c01d41529eed3360226804a857db8428cc978" dependencies = [ "assign", "js_int", @@ -5409,8 +5398,9 @@ dependencies = [ [[package]] name = "ruma-client-api" -version = "0.24.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6187ddda33fefafe3a738f40075ce2e8a7ecd3606998d2a885cf6dac73629d" dependencies = [ "as_variant", "assign", @@ -5431,11 +5421,12 @@ dependencies = [ [[package]] name = "ruma-common" -version = "0.19.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfbfb1235d65ebd89e169c67cc120a6608530b3445babb8689baba7ef2e72a12" dependencies = [ "as_variant", - "base64 0.22.1", + "base64 0.23.0", "bytes", "date_header", "form_urlencoded", @@ -5464,8 +5455,9 @@ dependencies = [ [[package]] name = "ruma-events" -version = "0.34.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140e7848282c33721f4bc4f1e5922fa5eb92d3a7b497ec4b71086b047ee7cd0d" dependencies = [ "as_variant", "indexmap", @@ -5488,10 +5480,10 @@ dependencies = [ [[package]] name = "ruma-federation-api" -version = "0.15.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1597e46af9ecbdcb52ea96f6fe811f5977ac66779dab25d2e4bfb9c55bc5371" dependencies = [ - "headers", "http", "http-auth", "httparse", @@ -5509,8 +5501,9 @@ dependencies = [ [[package]] name = "ruma-html" -version = "0.8.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e27e35e6c36fa1abc4def766e474a0f2f709e87f1602d57ec34d41b09253da4" dependencies = [ "as_variant", "html5ever", @@ -5521,7 +5514,8 @@ dependencies = [ [[package]] name = "ruma-identifiers-validation" version = "0.12.1" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d6cff00317675f487c4e7ccfb18875a14c5a14867b51d13f2a826053f03c432" dependencies = [ "js_int", "thiserror 2.0.19", @@ -5529,8 +5523,9 @@ dependencies = [ [[package]] name = "ruma-macros" -version = "0.19.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8571408bf1aefd0f06ea49e9d19551bcf4ba7388e19848adcd9291547c6cb" dependencies = [ "as_variant", "cfg-if", @@ -5540,15 +5535,16 @@ dependencies = [ "ruma-identifiers-validation", "serde", "syn 3.0.3", - "toml 1.1.2+spec-1.1.0", + "toml", ] [[package]] name = "ruma-signatures" -version = "0.21.0" -source = "git+https://github.com/matrix-org/ruma?rev=bf21677a8fcba04fd01e341809eb5991908441a2#bf21677a8fcba04fd01e341809eb5991908441a2" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1457e32794f6200c0d45dc3f75f47ac23414825492fe643fc550bb90af80a40" dependencies = [ - "base64 0.22.1", + "base64 0.23.0", "ed25519-dalek", "pkcs8", "rand 0.10.2", @@ -5623,7 +5619,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -5681,7 +5677,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6042,17 +6038,6 @@ dependencies = [ "serde", ] -[[package]] -name = "sha1" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" -dependencies = [ - "cfg-if", - "cpufeatures 0.2.17", - "digest 0.10.7", -] - [[package]] name = "sha2" version = "0.10.9" @@ -6216,7 +6201,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -6542,10 +6527,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6832,41 +6817,19 @@ dependencies = [ "tokio", ] -[[package]] -name = "toml" -version = "0.9.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00e5e5d9bf2475ac9d4f0d9edab68cc573dc2fd644b0dba36b0c30a92dd9eaa0" -dependencies = [ - "indexmap", - "serde_core", - "serde_spanned", - "toml_datetime 0.7.2", - "toml_parser", - "toml_writer", - "winnow 0.7.13", -] - [[package]] name = "toml" version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee" dependencies = [ + "indexmap", "serde_core", "serde_spanned", - "toml_datetime 1.1.1+spec-1.1.0", + "toml_datetime", "toml_parser", - "winnow 1.0.1", -] - -[[package]] -name = "toml_datetime" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32f1085dec27c2b6632b04c80b3bb1b4300d6495d1e129693bdda7d91e72eec1" -dependencies = [ - "serde_core", + "toml_writer", + "winnow", ] [[package]] @@ -6885,9 +6848,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0db3bae107c9522f86d361697dee1d7386a2ddcf659d5aea5159819a21a3c4a7" dependencies = [ "indexmap", - "toml_datetime 1.1.1+spec-1.1.0", + "toml_datetime", "toml_parser", - "winnow 1.0.1", + "winnow", ] [[package]] @@ -6896,14 +6859,14 @@ version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" dependencies = [ - "winnow 1.0.1", + "winnow", ] [[package]] name = "toml_writer" -version = "1.0.4" +version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df8b2b54733674ad286d16267dcfc7a71ed5c776e4ac7aa3c3e2561f7c637bf2" +checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" [[package]] name = "tower" @@ -7191,8 +7154,9 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "uniffi" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a782a48d72cfd7a2d65cfc7c691dbf5375c43104b3c195f7eccc716dcc3540c8" dependencies = [ "anyhow", "camino", @@ -7214,8 +7178,9 @@ dependencies = [ [[package]] name = "uniffi_bindgen" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "533b0312c73e3b54eb78a4b257ceae390962dd4767995778309a74644643f9ac" dependencies = [ "anyhow", "askama", @@ -7230,7 +7195,7 @@ dependencies = [ "serde", "tempfile", "textwrap", - "toml 0.9.7", + "toml", "uniffi_internal_macros", "uniffi_meta", "uniffi_pipeline", @@ -7239,8 +7204,9 @@ dependencies = [ [[package]] name = "uniffi_build" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "763a19ad720fce8c9a98576e04c0ccc5d2d155aa6b953c864587073292c7ccfc" dependencies = [ "anyhow", "camino", @@ -7249,8 +7215,9 @@ dependencies = [ [[package]] name = "uniffi_core" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e32e261c5b0dfaba6488f536e71957dddd6b1a498ac7eb791bee56b60a086be" dependencies = [ "anyhow", "async-compat", @@ -7261,8 +7228,9 @@ dependencies = [ [[package]] name = "uniffi_internal_macros" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84ae78069a5e6772ef694fd5bdb628532c88d2c2f0e7142bf6a384636eadb1af" dependencies = [ "anyhow", "indexmap", @@ -7273,8 +7241,9 @@ dependencies = [ [[package]] name = "uniffi_macros" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330be6770532e86320df31f54c70bb0be67588594e8e77fa56e9083a3fed5d0d" dependencies = [ "camino", "fs-err", @@ -7283,14 +7252,15 @@ dependencies = [ "quote", "serde", "syn 2.0.117", - "toml 0.9.7", + "toml", "uniffi_meta", ] [[package]] name = "uniffi_meta" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78de021f5547e56ab16c665a49d67d4fd3d31e77422f7739a2e9359d328cd9e7" dependencies = [ "anyhow", "siphasher", @@ -7300,8 +7270,9 @@ dependencies = [ [[package]] name = "uniffi_pipeline" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f8201bb1907ed8a42d80e11cbc25c8a033e7a31c3cff1d911f56eedb81d4948" dependencies = [ "anyhow", "heck", @@ -7312,8 +7283,9 @@ dependencies = [ [[package]] name = "uniffi_udl" -version = "0.31.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6e57996bc58009cc29bf04845d627ae313c2547b87171c1c349d6c51a1656c0" dependencies = [ "anyhow", "textwrap", @@ -7705,7 +7677,8 @@ dependencies = [ [[package]] name = "weedle2" version = "5.0.0" -source = "git+https://github.com/mozilla/uniffi-rs.git?rev=e5f4821410bea19e71984ea5e06a7bc8b11ed9e5#e5f4821410bea19e71984ea5e06a7bc8b11ed9e5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "998d2c24ec099a87daf9467808859f9d82b61f1d9c9701251aea037f514eae0e" dependencies = [ "nom", ] @@ -8252,15 +8225,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" -[[package]] -name = "winnow" -version = "0.7.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf" -dependencies = [ - "memchr", -] - [[package]] name = "winnow" version = "1.0.1" diff --git a/Cargo.toml b/Cargo.toml index 1149a6ce3d4..121ce75bd87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,7 @@ rcgen = { version = "0.14.8", default-features = false } regex = { version = "1.13.1", default-features = false, features = ["std", "unicode-perl"] } reqwest = { version = "0.13.1", default-features = false } rmp-serde = { version = "1.3.1", default-features = false } -ruma = { git = "https://github.com/ruma/ruma", rev = "0908aaa9847093ecb32bc6edf0af525f726717fd", features = [ +ruma = { version = "0.17.0", features = [ "client-api-c", "compat-unset-avatar", "compat-upload-signatures", @@ -116,8 +116,8 @@ tracing-core = { version = "0.1.36", default-features = false } tracing-subscriber = { version = "0.3.23", default-features = false, features = ["std", "smallvec", "fmt"] } unicode-normalization = { version = "0.1.25", default-features = false } unicode-segmentation = { version = "1.13.3", default-features = false } -uniffi = { git = "https://github.com/mozilla/uniffi-rs.git", rev = "e5f4821410bea19e71984ea5e06a7bc8b11ed9e5", version = "0.31.0", default-features = false, features = ["cargo-metadata"] } -uniffi_bindgen = { git = "https://github.com/mozilla/uniffi-rs.git", rev = "e5f4821410bea19e71984ea5e06a7bc8b11ed9e5", version = "0.31.0", default-features = false, features = ["cargo-metadata"] } +uniffi = { version = "0.32.0", default-features = false, features = ["cargo-metadata"] } +uniffi_bindgen = { version = "0.32.0", default-features = false, features = ["cargo-metadata"] } url = { version = "2.5.8", default-features = false } uuid = { version = "1.24.0", default-features = false } vergen-gitcl = { version = "1.0.8", default-features = false } @@ -252,8 +252,3 @@ lto = false [patch.crates-io] async-compat = { git = "https://github.com/element-hq/async-compat", rev = "5a27c8b290f1f1dcfc0c4ec22c464e38528aa591" } const_panic = { git = "https://github.com/jplatte/const_panic", rev = "e0b317a9a7bde2d48a7d15b6a60d70e4a41d3b5f" } - -[patch."https://github.com/ruma/ruma"] -# Needed to disable checksums since they're incorrect in 32bit devices. -# Delete this once https://github.com/mozilla/uniffi-rs/issues/2939 is fixed. -ruma = { git = "https://github.com/matrix-org/ruma", rev = "bf21677a8fcba04fd01e341809eb5991908441a2" } From 513a02f19ad3d8038f7421413962e7d31f6cb341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 7 Sep 2026 14:19:11 +0200 Subject: [PATCH 2/2] fix(ffi): Add a patch override for uniffi to include the hash mismatch patch for Android --- .deny.toml | 5 +-- Cargo.lock | 119 +++++++++++++++++++++++++++++++++++++++++++---------- Cargo.toml | 1 + 3 files changed, 100 insertions(+), 25 deletions(-) diff --git a/.deny.toml b/.deny.toml index 86a8436f61c..32cd2169925 100644 --- a/.deny.toml +++ b/.deny.toml @@ -44,15 +44,14 @@ allow-git = [ "https://github.com/tokio-rs/tracing.git", # Well, it's Ruma. "https://github.com/ruma/ruma", - # This is our fork of Ruma, needed until the fix for https://github.com/mozilla/uniffi-rs/issues/2939 is merged. - "https://github.com/matrix-org/ruma", # Vodozemac won't block us as we're doing the releases. "https://github.com/matrix-org/vodozemac", # A patch override for the bindings: https://github.com/rodrimati1992/const_panic/pull/10 "https://github.com/jplatte/const_panic", # A patch override for the bindings: https://github.com/smol-rs/async-compat/pull/22 "https://github.com/element-hq/async-compat", - "https://github.com/mozilla/uniffi-rs", + # A patch override for the bindings: https://github.com/mozilla/uniffi-rs/pull/2935 + "https://github.com/matrix-org/uniffi-rs", # Pinned one commit past 3.1.1 for the unreleased guess-magnitude # overflow fix, needed by the bindings' password strength estimation. "https://github.com/shssoichiro/zxcvbn-rs", diff --git a/Cargo.lock b/Cargo.lock index fae05a3e8ab..de63984d014 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7155,18 +7155,17 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "uniffi" version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a782a48d72cfd7a2d65cfc7c691dbf5375c43104b3c195f7eccc716dcc3540c8" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" dependencies = [ "anyhow", "camino", "cargo_metadata", "clap", - "uniffi_bindgen", + "uniffi_bindgen 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", "uniffi_build", "uniffi_core", "uniffi_macros", - "uniffi_pipeline", + "uniffi_pipeline 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", ] [[package]] @@ -7196,28 +7195,51 @@ dependencies = [ "tempfile", "textwrap", "toml", - "uniffi_internal_macros", - "uniffi_meta", - "uniffi_pipeline", - "uniffi_udl", + "uniffi_internal_macros 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "uniffi_meta 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "uniffi_pipeline 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "uniffi_udl 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "uniffi_bindgen" +version = "0.32.0" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" +dependencies = [ + "anyhow", + "askama", + "camino", + "cargo_metadata", + "fs-err", + "glob", + "goblin 0.8.2", + "heck", + "indexmap", + "once_cell", + "serde", + "tempfile", + "textwrap", + "toml", + "uniffi_internal_macros 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", + "uniffi_meta 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", + "uniffi_pipeline 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", + "uniffi_udl 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", ] [[package]] name = "uniffi_build" version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a19ad720fce8c9a98576e04c0ccc5d2d155aa6b953c864587073292c7ccfc" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" dependencies = [ "anyhow", "camino", - "uniffi_bindgen", + "uniffi_bindgen 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", ] [[package]] name = "uniffi_core" version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e32e261c5b0dfaba6488f536e71957dddd6b1a498ac7eb791bee56b60a086be" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" dependencies = [ "anyhow", "async-compat", @@ -7239,11 +7261,22 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "uniffi_internal_macros" +version = "0.32.0" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" +dependencies = [ + "anyhow", + "indexmap", + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "uniffi_macros" version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330be6770532e86320df31f54c70bb0be67588594e8e77fa56e9083a3fed5d0d" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" dependencies = [ "camino", "fs-err", @@ -7253,7 +7286,7 @@ dependencies = [ "serde", "syn 2.0.117", "toml", - "uniffi_meta", + "uniffi_meta 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", ] [[package]] @@ -7264,8 +7297,19 @@ checksum = "78de021f5547e56ab16c665a49d67d4fd3d31e77422f7739a2e9359d328cd9e7" dependencies = [ "anyhow", "siphasher", - "uniffi_internal_macros", - "uniffi_pipeline", + "uniffi_internal_macros 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "uniffi_pipeline 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "uniffi_meta" +version = "0.32.0" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" +dependencies = [ + "anyhow", + "siphasher", + "uniffi_internal_macros 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", + "uniffi_pipeline 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", ] [[package]] @@ -7278,7 +7322,19 @@ dependencies = [ "heck", "indexmap", "tempfile", - "uniffi_internal_macros", + "uniffi_internal_macros 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "uniffi_pipeline" +version = "0.32.0" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "tempfile", + "uniffi_internal_macros 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", ] [[package]] @@ -7289,8 +7345,19 @@ checksum = "a6e57996bc58009cc29bf04845d627ae313c2547b87171c1c349d6c51a1656c0" dependencies = [ "anyhow", "textwrap", - "uniffi_meta", - "weedle2", + "uniffi_meta 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "weedle2 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "uniffi_udl" +version = "0.32.0" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" +dependencies = [ + "anyhow", + "textwrap", + "uniffi_meta 0.32.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", + "weedle2 5.0.0 (git+https://github.com/matrix-org/uniffi-rs/?rev=582912af)", ] [[package]] @@ -7683,6 +7750,14 @@ dependencies = [ "nom", ] +[[package]] +name = "weedle2" +version = "5.0.0" +source = "git+https://github.com/matrix-org/uniffi-rs/?rev=582912af#582912af9caca3fda18806583a6b4e7c71c3f180" +dependencies = [ + "nom", +] + [[package]] name = "wezterm-bidi" version = "0.2.3" @@ -8344,7 +8419,7 @@ dependencies = [ "regex", "serde", "serde_json", - "uniffi_bindgen", + "uniffi_bindgen 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", "url", "xshell", ] diff --git a/Cargo.toml b/Cargo.toml index 121ce75bd87..05dd8df1342 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -252,3 +252,4 @@ lto = false [patch.crates-io] async-compat = { git = "https://github.com/element-hq/async-compat", rev = "5a27c8b290f1f1dcfc0c4ec22c464e38528aa591" } const_panic = { git = "https://github.com/jplatte/const_panic", rev = "e0b317a9a7bde2d48a7d15b6a60d70e4a41d3b5f" } +uniffi = { git = "https://github.com/matrix-org/uniffi-rs/", rev = "582912af" }