diff --git a/core/Cargo.lock b/core/Cargo.lock index 60a76e5..754f2dd 100644 --- a/core/Cargo.lock +++ b/core/Cargo.lock @@ -101,6 +101,17 @@ dependencies = [ "winnow", ] +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "autocfg" version = "1.5.1" @@ -310,6 +321,17 @@ version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" +[[package]] +name = "codespan-reporting" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681" +dependencies = [ + "serde", + "termcolor", + "unicode-width", +] + [[package]] name = "const-oid" version = "0.10.2" @@ -1309,6 +1331,12 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "target-lexicon" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da" + [[package]] name = "tempfile" version = "3.27.0" @@ -1322,6 +1350,15 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + [[package]] name = "textwrap" version = "0.16.4" @@ -1445,9 +1482,9 @@ checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" [[package]] name = "uniffi" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76407f5f396a2c949a069eff4a9fca9ce462410eb872bffef4c2b7b89804a77a" +checksum = "555ca4a960ec148b0448352af0e06b41c11c553c544cf729d6309ce5fc31841b" dependencies = [ "anyhow", "camino", @@ -1461,9 +1498,9 @@ dependencies = [ [[package]] name = "uniffi_bindgen" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3df3ced8f0eda3de99f6d50820e8628f443da8e4f447f477d1403ceba29dacbd" +checksum = "ce7d75a679688cd81f926e032fd5240319157193bbae971376cb3136e2a799f7" dependencies = [ "anyhow", "askama", @@ -1481,17 +1518,19 @@ dependencies = [ "toml", "uniffi_internal_macros", "uniffi_meta", + "uniffi_parse_rs", "uniffi_pipeline", "uniffi_udl", ] [[package]] name = "uniffi_core" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7530ae8efeaaa488622865966763fe0294832779fff80508c36d69c6a874a6a" +checksum = "dcc9bbafb4b538edcfd917ad8d3cc3ad2475fe05d6da7992df17558421d9a9a3" dependencies = [ "anyhow", + "async-trait", "bytes", "once_cell", "static_assertions", @@ -1499,9 +1538,9 @@ dependencies = [ [[package]] name = "uniffi_internal_macros" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f4bad017164375d99450d70495014810d15a84ba9da6ed14b9628b1424223ba" +checksum = "7a13da6d52fb64a98183c1b6ce8b37ad01acda03c352236ee57955f2284009bc" dependencies = [ "anyhow", "indexmap", @@ -1512,9 +1551,9 @@ dependencies = [ [[package]] name = "uniffi_macros" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b855a58da153739ce6e863f6e296edc3716a093768c4d3d957f17f5e4317c60" +checksum = "892e82e7b88e0867998216064a004a1588b5faa93423f3bbfcaf51a32762614e" dependencies = [ "camino", "fs-err", @@ -1529,9 +1568,9 @@ dependencies = [ [[package]] name = "uniffi_meta" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af0c88664a9cb9559856f5a250283c9708923b303170e2e5c7db8f4ad65e9459" +checksum = "2e8f2f688292e9fe840229d24141e0413df248a86dd6866063c8216721b37d86" dependencies = [ "anyhow", "siphasher", @@ -1539,11 +1578,30 @@ dependencies = [ "uniffi_pipeline", ] +[[package]] +name = "uniffi_parse_rs" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ac58f04ed5f6bbdc54fa6ad8e6baf6efb0fbfdd6b247536c8d2f5eab3007dc9" +dependencies = [ + "anyhow", + "camino", + "codespan-reporting", + "proc-macro2", + "quote", + "serde", + "syn 2.0.119", + "target-lexicon", + "thiserror", + "toml", + "uniffi_meta", +] + [[package]] name = "uniffi_pipeline" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d00f5c044b4a3dca0b1226c92ddaeea626f337470e22180dd182160c87a06b0b" +checksum = "368c2ee526938c4bf06dedd486713506c5453ef9fde3b66c56d9426faa6e6886" dependencies = [ "anyhow", "heck", @@ -1554,9 +1612,9 @@ dependencies = [ [[package]] name = "uniffi_udl" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55dfd9c778d6b39cb5acd541d9ff63431974035d2bad83c897b766a6ee3152ac" +checksum = "4c5e85827544ffa991a8c39a6d1a5d4b915cd04b3fc550ad977ddd80e44768f7" dependencies = [ "anyhow", "textwrap", @@ -1709,6 +1767,15 @@ dependencies = [ "nom", ] +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + [[package]] name = "windows-link" version = "0.2.1" diff --git a/core/Cargo.toml b/core/Cargo.toml index 805b35c..e95c341 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -33,7 +33,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" sha2 = "0.11" thiserror = "2" -uniffi = "=0.32.2" +uniffi = "=0.33.0" ureq = { version = "2.12", default-features = false, features = ["tls"] } url = "2" uuid = { version = "1", features = ["v5", "v7"] } diff --git a/core/uniffi.toml b/core/uniffi.toml new file mode 100644 index 0000000..d9907e3 --- /dev/null +++ b/core/uniffi.toml @@ -0,0 +1,3 @@ +[bindings.kotlin] +# Lists supports Android API 26, before Reference.reachabilityFence became available. +java_8_compatible = true diff --git a/deny.toml b/deny.toml index 8bf5e0f..df23452 100644 --- a/deny.toml +++ b/deny.toml @@ -28,6 +28,8 @@ allow = [ "Unicode-3.0", "Zlib", ] +# UniFFI uses target-lexicon in its bindings generator. +exceptions = [{ crate = "target-lexicon", allow = ["Apache-2.0 WITH LLVM-exception"] }] confidence-threshold = 0.9 [bans] diff --git a/web/Cargo.lock b/web/Cargo.lock index 0be3bab..24fd817 100644 --- a/web/Cargo.lock +++ b/web/Cargo.lock @@ -120,6 +120,17 @@ dependencies = [ "winnow", ] +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "autocfg" version = "1.5.1" @@ -296,6 +307,17 @@ version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" +[[package]] +name = "codespan-reporting" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681" +dependencies = [ + "serde", + "termcolor", + "unicode-width", +] + [[package]] name = "const-oid" version = "0.10.2" @@ -1570,6 +1592,12 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "target-lexicon" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da" + [[package]] name = "tempfile" version = "3.27.0" @@ -1583,6 +1611,15 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + [[package]] name = "textwrap" version = "0.16.4" @@ -1706,9 +1743,9 @@ checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" [[package]] name = "uniffi" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76407f5f396a2c949a069eff4a9fca9ce462410eb872bffef4c2b7b89804a77a" +checksum = "555ca4a960ec148b0448352af0e06b41c11c553c544cf729d6309ce5fc31841b" dependencies = [ "anyhow", "cargo_metadata", @@ -1720,9 +1757,9 @@ dependencies = [ [[package]] name = "uniffi_bindgen" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3df3ced8f0eda3de99f6d50820e8628f443da8e4f447f477d1403ceba29dacbd" +checksum = "ce7d75a679688cd81f926e032fd5240319157193bbae971376cb3136e2a799f7" dependencies = [ "anyhow", "askama", @@ -1740,17 +1777,19 @@ dependencies = [ "toml", "uniffi_internal_macros", "uniffi_meta", + "uniffi_parse_rs", "uniffi_pipeline", "uniffi_udl", ] [[package]] name = "uniffi_core" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7530ae8efeaaa488622865966763fe0294832779fff80508c36d69c6a874a6a" +checksum = "dcc9bbafb4b538edcfd917ad8d3cc3ad2475fe05d6da7992df17558421d9a9a3" dependencies = [ "anyhow", + "async-trait", "bytes", "once_cell", "static_assertions", @@ -1758,9 +1797,9 @@ dependencies = [ [[package]] name = "uniffi_internal_macros" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f4bad017164375d99450d70495014810d15a84ba9da6ed14b9628b1424223ba" +checksum = "7a13da6d52fb64a98183c1b6ce8b37ad01acda03c352236ee57955f2284009bc" dependencies = [ "anyhow", "indexmap", @@ -1771,9 +1810,9 @@ dependencies = [ [[package]] name = "uniffi_macros" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b855a58da153739ce6e863f6e296edc3716a093768c4d3d957f17f5e4317c60" +checksum = "892e82e7b88e0867998216064a004a1588b5faa93423f3bbfcaf51a32762614e" dependencies = [ "camino", "fs-err", @@ -1788,9 +1827,9 @@ dependencies = [ [[package]] name = "uniffi_meta" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af0c88664a9cb9559856f5a250283c9708923b303170e2e5c7db8f4ad65e9459" +checksum = "2e8f2f688292e9fe840229d24141e0413df248a86dd6866063c8216721b37d86" dependencies = [ "anyhow", "siphasher", @@ -1798,11 +1837,30 @@ dependencies = [ "uniffi_pipeline", ] +[[package]] +name = "uniffi_parse_rs" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ac58f04ed5f6bbdc54fa6ad8e6baf6efb0fbfdd6b247536c8d2f5eab3007dc9" +dependencies = [ + "anyhow", + "camino", + "codespan-reporting", + "proc-macro2", + "quote", + "serde", + "syn 2.0.119", + "target-lexicon", + "thiserror", + "toml", + "uniffi_meta", +] + [[package]] name = "uniffi_pipeline" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d00f5c044b4a3dca0b1226c92ddaeea626f337470e22180dd182160c87a06b0b" +checksum = "368c2ee526938c4bf06dedd486713506c5453ef9fde3b66c56d9426faa6e6886" dependencies = [ "anyhow", "heck", @@ -1813,9 +1871,9 @@ dependencies = [ [[package]] name = "uniffi_udl" -version = "0.32.2" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55dfd9c778d6b39cb5acd541d9ff63431974035d2bad83c897b766a6ee3152ac" +checksum = "4c5e85827544ffa991a8c39a6d1a5d4b915cd04b3fc550ad977ddd80e44768f7" dependencies = [ "anyhow", "textwrap", @@ -1970,6 +2028,15 @@ dependencies = [ "nom", ] +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + [[package]] name = "windows-link" version = "0.2.1"