various fixes
- Commit
10a75fd9e8dfdfe2dba77ab5e68c62afe9198938- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-29 21:52 UTC (4 months ago)
- Parents
cb16780
Diff
.gitignore
diff --git a/.gitignore b/.gitignoreindex 0a05fb2250..8589676b25 100644--- a/.gitignore+++ b/.gitignore@@ -24,6 +24,16 @@ distribution_apks/ __pycache__/ scratch/LiteRT-LM/ +# Offline map assets and zone downloads (large binary, R2-hosted)+*.pmtiles+**/*.pmtiles+zones/+v4.pmtiles+zone_*.pmtiles+*.pmtiles.download++# Network capture artifacts reverse-engineering/ **/rust/target/ tmp/+target/
Cargo.lock
diff --git a/pdf/src/main/rust/Cargo.lock b/Cargo.locksimilarity index 65%rename from pdf/src/main/rust/Cargo.lockrename to Cargo.lockindex 6a71673d7c..922650cf29 100644--- a/pdf/src/main/rust/Cargo.lock+++ b/Cargo.lock@@ -15,8 +15,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if",- "cipher",- "cpufeatures",+ "cipher 0.4.4",+ "cpufeatures 0.2.17",+]++[[package]]+name = "aes"+version = "0.9.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8eb277bec05f56a0e0591f155a484cbd0f4f07ff2905051a48c72f004f7ed58"+dependencies = [+ "cipher 0.5.2",+ "cpubits",+ "cpufeatures 0.3.0", ] [[package]]@@ -28,12 +39,77 @@ dependencies = [ "libc", ] +[[package]]+name = "approx"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"+dependencies = [+ "num-traits",+]++[[package]]+name = "arrayref"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"++[[package]]+name = "arrayvec"+version = "0.7.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"++[[package]]+name = "astronomy_engine"+version = "0.1.0"+dependencies = [+ "jni",+]++[[package]]+name = "async-executor"+version = "1.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"+dependencies = [+ "async-task",+ "concurrent-queue",+ "fastrand",+ "futures-lite",+ "pin-project-lite",+ "slab",+]++[[package]]+name = "async-lock"+version = "3.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"+dependencies = [+ "event-listener",+ "event-listener-strategy",+ "pin-project-lite",+]++[[package]]+name = "async-task"+version = "4.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"+ [[package]] name = "autocfg" version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" +[[package]]+name = "base64"+version = "0.22.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"+ [[package]] name = "base64ct" version = "1.8.3"@@ -48,9 +124,20 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags"-version = "2.13.0"+version = "2.13.1" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"+checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"++[[package]]+name = "blake2b_simd"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b79834656f71332577234b50bfc009996f7449e0c056884e6a02492ded0ca2f3"+dependencies = [+ "arrayref",+ "arrayvec",+ "constant_time_eq",+] [[package]] name = "block-buffer"@@ -61,6 +148,21 @@ dependencies = [ "generic-array", ] +[[package]]+name = "block-buffer"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"+dependencies = [+ "hybrid-array",+]++[[package]]+name = "block-modes"+version = "0.9.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9e2211b0817f061502a8dd9f11a37e879e79763e3c698d2418cf824d8cb2f21e"+ [[package]] name = "block-padding" version = "0.3.3"@@ -70,6 +172,15 @@ dependencies = [ "generic-array", ] +[[package]]+name = "block-padding"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "710f1dd022ef4e93f8a438b4ba958de7f64308434fa6a87104481645cc30068b"+dependencies = [+ "hybrid-array",+]+ [[package]] name = "bumpalo" version = "3.20.3"@@ -82,6 +193,12 @@ version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e" +[[package]]+name = "bytemuck"+version = "1.25.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"+ [[package]] name = "byteorder" version = "1.5.0"@@ -94,22 +211,44 @@ version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +[[package]]+name = "camera_stitch"+version = "0.1.0"+dependencies = [+ "jni",+ "jpeg-decoder",+ "jpeg-encoder",+ "nalgebra",+ "rayon",+]+ [[package]] name = "cbc" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6" dependencies = [- "cipher",+ "cipher 0.4.4",+]++[[package]]+name = "cbc"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ce2dc9ee5f88d11e0beb842c88b33c8a5cf0d1329c4b19494af42b07dbfe8896"+dependencies = [+ "cipher 0.5.2", ] [[package]] name = "cc"-version = "1.2.66"+version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f5d6cac793997bd970000024b2934968efe83b382de4fdcf4fcb46b6ee4ad996"+checksum = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9" dependencies = [ "find-msvc-tools",+ "jobserver",+ "libc", "shlex", ] @@ -125,6 +264,17 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +[[package]]+name = "chacha20"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"+dependencies = [+ "cfg-if",+ "cipher 0.5.2",+ "cpufeatures 0.3.0",+]+ [[package]] name = "chrono" version = "0.4.45"@@ -133,6 +283,7 @@ checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" dependencies = [ "iana-time-zone", "num-traits",+ "serde", "windows-link", ] @@ -142,24 +293,41 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [- "crypto-common",- "inout",+ "crypto-common 0.1.7",+ "inout 0.1.4", ] +[[package]]+name = "cipher"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c"+dependencies = [+ "block-buffer 0.12.1",+ "crypto-common 0.2.2",+ "inout 0.2.2",+]++[[package]]+name = "cmov"+version = "0.5.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"+ [[package]] name = "cms" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b77c319abfd5219629c45c34c89ba945ed3c5e49fcde9d16b6c3885f118a730" dependencies = [- "aes",- "cbc",- "cipher",- "const-oid",+ "aes 0.8.4",+ "cbc 0.1.2",+ "cipher 0.4.4",+ "const-oid 0.9.6", "der", "rsa", "sha1",- "sha2",+ "sha2 0.10.9", "sha3", "signature", "spki",@@ -177,18 +345,45 @@ dependencies = [ "memchr", ] +[[package]]+name = "concurrent-queue"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"+dependencies = [+ "crossbeam-utils",+]+ [[package]] name = "const-oid" version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" +[[package]]+name = "const-oid"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"++[[package]]+name = "constant_time_eq"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b"+ [[package]] name = "core-foundation-sys" version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]]+name = "cpubits"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae"+ [[package]] name = "cpufeatures" version = "0.2.17"@@ -198,6 +393,15 @@ dependencies = [ "libc", ] +[[package]]+name = "cpufeatures"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"+dependencies = [+ "libc",+]+ [[package]] name = "crc32fast" version = "1.5.0"@@ -243,6 +447,24 @@ dependencies = [ "typenum", ] +[[package]]+name = "crypto-common"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"+dependencies = [+ "hybrid-array",+]++[[package]]+name = "ctutils"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"+dependencies = [+ "cmov",+]+ [[package]] name = "defmt" version = "1.1.1"@@ -262,7 +484,7 @@ dependencies = [ "defmt-parser", "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]]@@ -271,7 +493,7 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e" dependencies = [- "thiserror 2.0.18",+ "thiserror 2.0.19", ] [[package]]@@ -280,7 +502,7 @@ version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" dependencies = [- "const-oid",+ "const-oid 0.9.6", "der_derive", "flagset", "pem-rfc7468",@@ -295,7 +517,7 @@ checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]]@@ -310,9 +532,32 @@ version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [- "block-buffer",- "const-oid",- "crypto-common",+ "block-buffer 0.10.4",+ "const-oid 0.9.6",+ "crypto-common 0.1.7",+]++[[package]]+name = "digest"+version = "0.11.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"+dependencies = [+ "block-buffer 0.12.1",+ "const-oid 0.10.2",+ "crypto-common 0.2.2",+ "ctutils",+]++[[package]]+name = "e2ee_pqc"+version = "0.1.0"+dependencies = [+ "fips203",+ "fips204",+ "jni",+ "rand_core 0.6.4",+ "sha2 0.10.9", ] [[package]]@@ -321,14 +566,14 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a8bfa975b1aec2145850fcaa1c6fe269a16578c44705a532ae3edc92b8881c7" dependencies = [- "cipher",+ "cipher 0.4.4", ] [[package]] name = "either"-version = "1.16.0"+version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"+checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d" [[package]] name = "encoding_rs"@@ -345,6 +590,32 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +[[package]]+name = "event-listener"+version = "5.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"+dependencies = [+ "parking",+ "pin-project-lite",+]++[[package]]+name = "event-listener-strategy"+version = "0.5.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"+dependencies = [+ "event-listener",+ "pin-project-lite",+]++[[package]]+name = "fastrand"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"+ [[package]] name = "fax" version = "0.3.0"@@ -357,6 +628,30 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" +[[package]]+name = "fips203"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8bdb6454f692ca2a2b45cd554c6828c639d7f9c968cf83a678899ec4443a280"+dependencies = [+ "rand_core 0.6.4",+ "sha3",+ "subtle",+ "zeroize",+]++[[package]]+name = "fips204"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c9fb5a367b9846933e271a3c2a992930743f82ae5e8cb7faa780715a80fa0b15"+dependencies = [+ "rand_core 0.6.4",+ "sha2 0.10.9",+ "sha3",+ "zeroize",+]+ [[package]] name = "flagset" version = "0.4.7"@@ -375,21 +670,40 @@ dependencies = [ [[package]] name = "futures-core"-version = "0.3.32"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7"++[[package]]+name = "futures-io"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a"++[[package]]+name = "futures-lite"+version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"+dependencies = [+ "fastrand",+ "futures-core",+ "futures-io",+ "parking",+ "pin-project-lite",+] [[package]] name = "futures-task"-version = "0.3.32"+version = "0.3.33" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"+checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109" [[package]] name = "futures-util"-version = "0.3.32"+version = "0.3.33" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"+checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa" dependencies = [ "futures-core", "futures-task",@@ -426,10 +740,23 @@ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", "libc",- "r-efi",+ "r-efi 5.3.0", "wasip2", ] +[[package]]+name = "getrandom"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"+dependencies = [+ "cfg-if",+ "js-sys",+ "libc",+ "r-efi 6.0.0",+ "wasm-bindgen",+]+ [[package]] name = "hashbrown" version = "0.17.1"@@ -451,6 +778,36 @@ dependencies = [ "hayro-ccitt", ] +[[package]]+name = "hex"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"++[[package]]+name = "hex-literal"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1"++[[package]]+name = "hmac"+version = "0.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"+dependencies = [+ "digest 0.11.3",+]++[[package]]+name = "hybrid-array"+version = "0.4.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "818356c5132c1fede50f837ca96afbe78ff42413047f4abb886217845e1b6c8c"+dependencies = [+ "typenum",+]+ [[package]] name = "iana-time-zone" version = "0.1.65"@@ -483,6 +840,8 @@ checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" dependencies = [ "equivalent", "hashbrown",+ "serde",+ "serde_core", ] [[package]]@@ -491,10 +850,20 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [- "block-padding",+ "block-padding 0.3.3", "generic-array", ] +[[package]]+name = "inout"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7"+dependencies = [+ "block-padding 0.4.2",+ "hybrid-array",+]+ [[package]] name = "itoa" version = "1.0.18"@@ -503,11 +872,12 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "jiff"-version = "0.2.31"+version = "0.2.35" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ccfe6121cbe750cf81efa362d85c0bde7ea298ec43092d3a193baca59cdbd634"+checksum = "668b7183bd07af9a4885f5c35b0cc5c83c4607a913c16b7e17291832910d2dcc" dependencies = [ "defmt",+ "jiff-core", "jiff-static", "jiff-tzdb-platform", "log",@@ -517,15 +887,25 @@ dependencies = [ "windows-link", ] +[[package]]+name = "jiff-core"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7feca88439efe53da3754500c1851dedf3cb36c524dd5cf8225cc0794de95d09"+dependencies = [+ "defmt",+]+ [[package]] name = "jiff-static"-version = "0.2.31"+version = "0.2.35" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e165e897f662d428f3cd3828a919dbe067c2d42bb1031eede74ef9d27ecdedd2"+checksum = "3a69dcb3a21cfb32ce1cd056169337ca284af0766dd766e7878819b251a49204" dependencies = [+ "jiff-core", "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]]@@ -546,17 +926,12 @@ dependencies = [ [[package]] name = "jni" version = "0.21.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" dependencies = [ "cesu8",- "cfg-if", "combine", "jni-sys 0.3.1", "log", "thiserror 1.0.69",- "walkdir",- "windows-sys 0.45.0", ] [[package]]@@ -584,7 +959,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" dependencies = [ "quote",- "syn",+ "syn 2.0.119",+]++[[package]]+name = "jobserver"+version = "0.1.35"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"+dependencies = [+ "getrandom 0.4.3",+ "libc", ] [[package]]@@ -596,6 +981,12 @@ dependencies = [ "rayon", ] +[[package]]+name = "jpeg-encoder"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b454d911ac55068f53495488d8ccd0646eaa540c033a28ee15b07838afafb01f"+ [[package]] name = "js-sys" version = "0.3.103"@@ -613,7 +1004,41 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653" dependencies = [- "cpufeatures",+ "cpufeatures 0.2.17",+]++[[package]]+name = "keepass"+version = "0.13.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b46c6b5f891223713a7ca3b922bba92fedfe8acc895c4da852071224a38c9d9"+dependencies = [+ "aes 0.9.2",+ "base64",+ "block-modes",+ "byteorder",+ "cbc 0.2.1",+ "chacha20",+ "chrono",+ "cipher 0.5.2",+ "flate2",+ "getrandom 0.4.3",+ "hex",+ "hex-literal",+ "hmac",+ "hybrid-array",+ "indexmap",+ "js-sys",+ "quick-xml",+ "rust-argon2",+ "salsa20",+ "secrecy",+ "serde",+ "sha2 0.11.0",+ "thiserror 2.0.19",+ "twofish",+ "uuid",+ "zeroize", ] [[package]]@@ -627,9 +1052,9 @@ dependencies = [ [[package]] name = "libc"-version = "0.2.186"+version = "0.2.189" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" [[package]] name = "libm"@@ -649,9 +1074,9 @@ version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59fa2559e99ba0f26a12458aabc754432c805bbb8cba516c427825a997af1fb7" dependencies = [- "aes",- "bitflags 2.13.0",- "cbc",+ "aes 0.8.4",+ "bitflags 2.13.1",+ "cbc 0.1.2", "chrono", "ecb", "encoding_rs",@@ -663,17 +1088,27 @@ dependencies = [ "md-5", "nom", "nom_locate",- "rand 0.9.4",+ "rand 0.9.5", "rangemap", "rayon", "serde",- "sha2",+ "sha2 0.10.9", "stringprep",- "thiserror 2.0.18",+ "thiserror 2.0.19", "time", "weezl", ] +[[package]]+name = "matrixmultiply"+version = "0.3.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"+dependencies = [+ "autocfg",+ "rawpointer",+]+ [[package]] name = "md-5" version = "0.10.6"@@ -681,7 +1116,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ "cfg-if",- "digest",+ "digest 0.10.7", ] [[package]]@@ -690,6 +1125,15 @@ version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" +[[package]]+name = "memmap2"+version = "0.9.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"+dependencies = [+ "libc",+]+ [[package]] name = "miniz_oxide" version = "0.8.9"@@ -700,6 +1144,48 @@ dependencies = [ "simd-adler32", ] +[[package]]+name = "nalgebra"+version = "0.33.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d43ddcacf343185dfd6de2ee786d9e8b1c2301622afab66b6c73baf9882abfd"+dependencies = [+ "approx",+ "matrixmultiply",+ "nalgebra-macros",+ "num-complex",+ "num-rational",+ "num-traits",+ "simba",+ "typenum",+]++[[package]]+name = "nalgebra-macros"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "254a5372af8fc138e36684761d3c0cdb758a4410e938babcff1c860ce14ddbfc"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "ndarray"+version = "0.17.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"+dependencies = [+ "matrixmultiply",+ "num-complex",+ "num-integer",+ "num-traits",+ "portable-atomic",+ "portable-atomic-util",+ "rawpointer",+]+ [[package]] name = "nom" version = "8.0.0"@@ -720,6 +1206,16 @@ dependencies = [ "nom", ] +[[package]]+name = "num-bigint"+version = "0.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"+dependencies = [+ "num-integer",+ "num-traits",+]+ [[package]] name = "num-bigint-dig" version = "0.8.6"@@ -736,6 +1232,15 @@ dependencies = [ "zeroize", ] +[[package]]+name = "num-complex"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"+dependencies = [+ "num-traits",+]+ [[package]] name = "num-conv" version = "0.2.2"@@ -761,6 +1266,17 @@ dependencies = [ "num-traits", ] +[[package]]+name = "num-rational"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"+dependencies = [+ "num-bigint",+ "num-integer",+ "num-traits",+]+ [[package]] name = "num-traits" version = "0.2.19"@@ -771,6 +1287,37 @@ dependencies = [ "libm", ] +[[package]]+name = "office_engine"+version = "0.1.0"+dependencies = [+ "jni",+ "serde",+ "serde_json",+]++[[package]]+name = "om-file-format-sys"+version = "0.0.0"+dependencies = [+ "cc",+ "libc",+]++[[package]]+name = "omfiles"+version = "0.1.0"+source = "git+https://github.com/open-meteo/rust-omfiles?rev=8ce3f893f444239a9d0e5db9af40895ba11e5bfc#8ce3f893f444239a9d0e5db9af40895ba11e5bfc"+dependencies = [+ "async-executor",+ "async-lock",+ "memmap2",+ "ndarray",+ "num-traits",+ "om-file-format-sys",+ "thiserror 2.0.19",+]+ [[package]] name = "once_cell" version = "1.21.4"@@ -791,14 +1338,35 @@ dependencies = [ "sprintf", ] +[[package]]+name = "parking"+version = "2.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"++[[package]]+name = "passwords_kdbx"+version = "0.1.0"+dependencies = [+ "jni",+ "keepass",+ "serde",+]++[[package]]+name = "paste"+version = "1.0.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"+ [[package]] name = "pdf_render" version = "0.1.0" dependencies = [- "aes",- "cbc",+ "aes 0.8.4",+ "cbc 0.1.2", "cms",- "const-oid",+ "const-oid 0.9.6", "der", "fax", "flate2",@@ -812,7 +1380,7 @@ dependencies = [ "openjp2", "rand 0.8.7", "rsa",- "sha2",+ "sha2 0.10.9", "spki", "ttf-parser", "weezl",@@ -828,6 +1396,13 @@ dependencies = [ "base64ct", ] +[[package]]+name = "photos_fx"+version = "0.1.0"+dependencies = [+ "jni",+]+ [[package]] name = "pin-project-lite" version = "0.2.17"@@ -887,18 +1462,28 @@ dependencies = [ [[package]] name = "proc-macro2"-version = "1.0.106"+version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" dependencies = [ "unicode-ident", ] +[[package]]+name = "quick-xml"+version = "0.41.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"+dependencies = [+ "memchr",+ "serde",+]+ [[package]] name = "quote"-version = "1.0.46"+version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" dependencies = [ "proc-macro2", ]@@ -909,6 +1494,12 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]]+name = "r-efi"+version = "6.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"+ [[package]] name = "rand" version = "0.8.7"@@ -922,9 +1513,9 @@ dependencies = [ [[package]] name = "rand"-version = "0.9.4"+version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea"+checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.5",@@ -974,6 +1565,12 @@ version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "973443cf09a9c8656b574a866ab68dfa19f0867d0340648c7d2f6a71b8a8ea68" +[[package]]+name = "rawpointer"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"+ [[package]] name = "rayon" version = "1.12.0"@@ -1000,21 +1597,33 @@ version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d" dependencies = [- "const-oid",- "digest",+ "const-oid 0.9.6",+ "digest 0.10.7", "num-bigint-dig", "num-integer", "num-traits", "pkcs1", "pkcs8", "rand_core 0.6.4",- "sha2",+ "sha2 0.10.9", "signature", "spki", "subtle", "zeroize", ] +[[package]]+name = "rust-argon2"+version = "3.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ae76b7506744d254fd0eb2c0ff5c5d108201ccbb083111ac04a44eeda105680"+dependencies = [+ "base64",+ "blake2b_simd",+ "constant_time_eq",+ "crossbeam-utils",+]+ [[package]] name = "rustversion" version = "1.0.23"@@ -1022,19 +1631,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" [[package]]-name = "same-file"-version = "1.0.6"+name = "safe_arch"+version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"+checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323" dependencies = [- "winapi-util",+ "bytemuck",+]++[[package]]+name = "salsa20"+version = "0.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f874456e72520ff1375a06c588eaf074b0f01f9e9e1aada45bd9b7954a6e42c"+dependencies = [+ "cfg-if",+ "cipher 0.5.2",+]++[[package]]+name = "secrecy"+version = "0.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a"+dependencies = [+ "zeroize", ] [[package]] name = "serde"-version = "1.0.228"+version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" dependencies = [ "serde_core", "serde_derive",@@ -1042,22 +1670,35 @@ dependencies = [ [[package]] name = "serde_core"-version = "1.0.228"+version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive"-version = "1.0.228"+version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 3.0.3",+]++[[package]]+name = "serde_json"+version = "1.0.151"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"+dependencies = [+ "itoa",+ "memchr",+ "serde",+ "serde_core",+ "zmij", ] [[package]]@@ -1067,8 +1708,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" dependencies = [ "cfg-if",- "cpufeatures",- "digest",+ "cpufeatures 0.2.17",+ "digest 0.10.7", ] [[package]]@@ -1078,8 +1719,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if",- "cpufeatures",- "digest",+ "cpufeatures 0.2.17",+ "digest 0.10.7",+]++[[package]]+name = "sha2"+version = "0.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4"+dependencies = [+ "cfg-if",+ "cpufeatures 0.3.0",+ "digest 0.11.3", ] [[package]]@@ -1088,7 +1740,7 @@ version = "0.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77fd7028345d415a4034cf8777cd4f8ab1851274233b45f84e3d955502d93874" dependencies = [- "digest",+ "digest 0.10.7", "keccak", ] @@ -1104,15 +1756,28 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [- "digest",+ "digest 0.10.7", "rand_core 0.6.4", ] +[[package]]+name = "simba"+version = "0.9.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c99284beb21666094ba2b75bbceda012e610f5479dfcc2d6e2426f53197ffd95"+dependencies = [+ "approx",+ "num-complex",+ "num-traits",+ "paste",+ "wide",+]+ [[package]] name = "simd-adler32"-version = "0.3.9"+version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" [[package]] name = "slab"@@ -1167,9 +1832,20 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn"-version = "2.0.118"+version = "2.0.119" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "syn"+version = "3.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" dependencies = [ "proc-macro2", "quote",@@ -1187,11 +1863,11 @@ dependencies = [ [[package]] name = "thiserror"-version = "2.0.18"+version = "2.0.19" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"+checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9" dependencies = [- "thiserror-impl 2.0.18",+ "thiserror-impl 2.0.19", ] [[package]]@@ -1202,25 +1878,25 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]] name = "thiserror-impl"-version = "2.0.18"+version = "2.0.19" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"+checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 3.0.3", ] [[package]] name = "time"-version = "0.3.53"+version = "0.3.54" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "18dfaaeddcb932337b5e7866ee7d0ce9b76d2fd092997146f187ec09b4558a50"+checksum = "3e1d5e639ff6bab73cb6885cc7e7b1de96c3f32c68ec55f3952614bec1092244" dependencies = [ "deranged", "num-conv",@@ -1238,9 +1914,9 @@ checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" [[package]] name = "time-macros"-version = "0.2.31"+version = "0.2.32" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c431b87111666e491a90baa837f914fb45cd5dc3c268591b0220ff5057f2085f"+checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" dependencies = [ "num-conv", "time-core",@@ -1248,9 +1924,9 @@ dependencies = [ [[package]] name = "tinyvec"-version = "1.11.0"+version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3"+checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" dependencies = [ "tinyvec_macros", ]@@ -1279,7 +1955,7 @@ checksum = "2d2e76690929402faae40aebdda620a2c0e25dd6d3b9afe48867dfd95991f4bd" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]]@@ -1288,6 +1964,15 @@ version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" +[[package]]+name = "twofish"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0218ef702a91e18ba84dd516edf8df33a9f9fb4431d6ada13e6f9502c3bcb6fc"+dependencies = [+ "cipher 0.5.2",+]+ [[package]] name = "typenum" version = "1.20.1"@@ -1322,20 +2007,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d" [[package]]-name = "version_check"-version = "0.9.5"+name = "uuid"+version = "1.24.0" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"+checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239"+dependencies = [+ "getrandom 0.4.3",+ "js-sys",+ "serde_core",+ "wasm-bindgen",+] [[package]]-name = "walkdir"-version = "2.5.0"+name = "version_check"+version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"-dependencies = [- "same-file",- "winapi-util",-]+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "wasi"@@ -1384,7 +2071,7 @@ dependencies = [ "bumpalo", "proc-macro2", "quote",- "syn",+ "syn 2.0.119", "wasm-bindgen-shared", ] @@ -1397,6 +2084,14 @@ dependencies = [ "unicode-ident", ] +[[package]]+name = "weather_om"+version = "0.1.0"+dependencies = [+ "jni",+ "omfiles",+]+ [[package]] name = "weezl" version = "0.1.12"@@ -1404,12 +2099,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" [[package]]-name = "winapi-util"-version = "0.1.11"+name = "wide"+version = "0.7.33" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"+checksum = "0ce5da8ecb62bcd8ec8b7ea19f69a51275e91299be594ea5cc6ef7819e16cd03" dependencies = [- "windows-sys 0.61.2",+ "bytemuck",+ "safe_arch", ] [[package]]@@ -1433,7 +2129,7 @@ checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]]@@ -1444,7 +2140,7 @@ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]]@@ -1471,81 +2167,6 @@ dependencies = [ "windows-link", ] -[[package]]-name = "windows-sys"-version = "0.45.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"-dependencies = [- "windows-targets",-]--[[package]]-name = "windows-sys"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"-dependencies = [- "windows-link",-]--[[package]]-name = "windows-targets"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"-dependencies = [- "windows_aarch64_gnullvm",- "windows_aarch64_msvc",- "windows_i686_gnu",- "windows_i686_msvc",- "windows_x86_64_gnu",- "windows_x86_64_gnullvm",- "windows_x86_64_msvc",-]--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"--[[package]]-name = "windows_aarch64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"--[[package]]-name = "windows_i686_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"--[[package]]-name = "windows_i686_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"--[[package]]-name = "windows_x86_64_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"--[[package]]-name = "windows_x86_64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"- [[package]] name = "wit-bindgen" version = "0.57.1"@@ -1558,7 +2179,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1301e935010a701ae5f8655edc0ad17c44bad3ac5ce8c39185f75453b720ae94" dependencies = [- "const-oid",+ "const-oid 0.9.6", "der", "sha1", "signature",@@ -1568,22 +2189,22 @@ dependencies = [ [[package]] name = "zerocopy"-version = "0.8.53"+version = "0.8.55" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "75726053136156d419e285b9b7eddaaea9e3fea6ce32eed44a89901f0bd98de1"+checksum = "b5a105cd7b140f6eeec8acff2ea38135d3cab283ada58540f629fe51e46696eb" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive"-version = "0.8.53"+version = "0.8.55" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4714fd92cf900833d49538023a9b3915155210801d1c1169eba513b2addefd71"+checksum = "0fe976fb70c78cd64cccfe3a6fc142244e8a77b70959b30faf9d0ac37ee228eb" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ] [[package]]@@ -1603,5 +2224,11 @@ checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" dependencies = [ "proc-macro2", "quote",- "syn",+ "syn 2.0.119", ]++[[package]]+name = "zmij"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
Cargo.toml
diff --git a/Cargo.toml b/Cargo.tomlnew file mode 100644index 0000000000..9ed62f9768--- /dev/null+++ b/Cargo.toml@@ -0,0 +1,101 @@+[workspace]+members = [+ "astronomy/src/main/rust",+ "photos/src/main/rust",+ "office/src/main/rust",+ "weather/src/main/rust",+ "pdf/src/main/rust",+ "camera/src/main/rust",+ "passwords/src/main/rust",+ "library/e2ee-p2p/src/main/rust",+ "third_party/om-file-format-sys",+]+resolver = "2"++# Centralized Rust versions – armv8-only (aarch64-linux-android)+# Mirrors gradle/libs.versions.toml. Update here to update all 8 native crates.++[workspace.dependencies]+# JNI local fork (third_party/jni-android): removed build-dep walkdir (same-file/winapi-util/windows-sys)+# Saves ~11 crates per lock, 0 Windows in normal Android edges.+jni = { path = "third_party/jni-android", version = "0.21" }+jni-sys = "0.3.1"+cesu8 = "1.1.0"+combine = "4.6.7"+thiserror = { version = "1.0.69" }+log = "0.4.33"+cfg-if = "1.0.4"++# Serialization – unified single version+serde = { version = "1.0.228", features = ["derive"] }+serde_core = "1.0.228"+proc-macro2 = "1.0.92"+quote = "1.0.40"+syn = "2.0.101"+itoa = "1.0.15"+memchr = "2.8.3"+serde_json = "1.0.149"++# Imaging – image crate removed (was moxcms/pxfm), use tiny jpeg-encoder/decoder+jpeg-decoder = "0.3.2"+jpeg-encoder = { version = "0.6.1", default-features = false }+flate2 = "1.1.4"++# Crypto / PQC (features preserved per no-feature-loss constraint)+sha2 = { version = "0.10.9", features = ["oid"] }+aes = "0.8.4"+cbc = { version = "0.1.2", features = ["alloc"] }+md-5 = "0.10.6"+keepass = { version = "0.13.17", default-features = false, features = ["save_kdbx4"] }+fips203 = "0.4.3"+fips204 = "0.4.6"+rand_core = { version = "0.6.4", features = ["getrandom"] }+rand = "0.8.5"+getrandom = "0.2.15"+x509-cert = { version = "0.2.5", features = ["builder"] }+cms = { version = "0.2.3", features = ["builder"] }+der = { version = "0.7.10", features = ["alloc", "oid"] }+spki = "0.7.3"+const-oid = { version = "0.9.6", features = ["db"] }+rsa = { version = "0.9.10", features = ["sha2"] }+ttf-parser = { version = "0.25.1", default-features = false, features = ["std", "glyph-names"] }+weezl = "0.1.7"+fax = "0.3.0"+hayro-jbig2 = { version = "0.3.0", default-features = false, features = ["std"] }+openjp2 = "0.6.1"+lopdf = { version = "0.36.0", features = ["serde"] }+libc = "0.2.171"+indexmap = "2.10.0"+hashbrown = "0.14.5"+byteorder = "1.5.0"+smallvec = "1.14.0"+bytes = "1.12.1"++# OM weather decoder – ureq removed (was ~90 crates ring/rustls/icu/url)+omfiles = { git = "https://github.com/open-meteo/rust-omfiles", rev = "8ce3f893f444239a9d0e5db9af40895ba11e5bfc" }+memmap2 = "0.9"+ndarray = "0.17"++# Build+cc = { version = "1.2.8", features = ["parallel"] }++# Keep platform bloat minimal – chrono clock only, no Windows+chrono = { version = "0.4.39", default-features = false, features = ["clock", "std"] }+iana-time-zone = "0.1.64"+crossbeam-utils = "0.8.21"+crossbeam-epoch = "0.9.18"+crossbeam-deque = "0.8.6"+either = "1.13.0"+rayon = "1.11.0"+rayon-core = "1.13.0"+nalgebra = "0.33.2"++[patch."https://github.com/open-meteo/om-file-format"]+om-file-format-sys = { path = "third_party/om-file-format-sys" }++[profile.release]+opt-level = 3+lto = true+codegen-units = 1+strip = true+panic = "abort"
SUPPLY_CHAIN_RISKS.md
diff --git a/SUPPLY_CHAIN_RISKS.md b/SUPPLY_CHAIN_RISKS.mdindex 498ea65823..d962d9bbda 100644--- a/SUPPLY_CHAIN_RISKS.md+++ b/SUPPLY_CHAIN_RISKS.md@@ -37,9 +37,10 @@ These servers provide data/functionality that is NOT intrinsically tied to a sin | App | External Service | Endpoints / Evidence | Why Replaceable | Impact if Gone | Alternative | |---|---|---|---|---|---| | `weather` | **Open-Meteo Stack (FOSS, keyless)** | `https://api.open-meteo.com/v1/forecast`, `geocoding-api.open-meteo.com/v1/search`, `air-quality-api.open-meteo.com/v1/air-quality`, `map-tiles.open-meteo.com/data_spatial/<model>/latest.json` + `.om` tiles `.../YYYY/MM/DD/HHMMZ/...om` decoded by `libweather_om.so` (vendored C/Rust in `third_party/om-file-format-sys`) | Weather data is commodity; Open-Meteo is one FOSS provider among many. API is keyless and opensource, self-hostable | Forecast, city search, air-quality, weather map shading fails. `WeatherCacheStore` mitigates partially | Self-host Open-Meteo `om-file-format` + DWD ICON model, or swap to PirateWeather, OpenWeather, NOAA GFS direct |-| `maps` ratings + live traffic | **Google Places + traffic via self-hosted proxy (transitive)** | `https://api.vayunmathur.com/maps/traffic` (live traffic tiles, `OfflineRouter.kt`), `place_match`, `place_rating` wrapping Google Places (`Reviews.kt`) | Ratings/traffic proxy holds secret; Google is upstream. **Routing is fully offline** via `offlinerouter.so` (C++ `maps/src/main/cpp/`, `OfflineRouter.findRouteNative`) + bundled pmtiles `world_z0-6.pmtiles` + `admin0.fgb/admin1.fgb` + GTFS — no online routing endpoint is called | Place ratings + live-traffic overlay fail; turn-by-turn routing continues fully offline with pre-downloaded zones | Ratings could be OSM/Wikidata; self-host a traffic source. (Online routing already removed in favor of the offline router) |-| `youpipe` extras | **SponsorBlock / DeArrow (community)** — data APIs now self-hosted | Segment + branding data served from `https://api.vayunmathur.com/api/skipSegments` and `/api/branding` (a local mirror of the SponsorBlock DB, no runtime call to ajay.app). The DeArrow rendered thumbnail frame still uses `https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=` (needs the actual video; not mirrorable from the DB dump) | Crowdsourced, best-effort extras, not core YouTube | Sponsor skips + DeArrow titles/branding continue from the local mirror even if ajay.app is down; only custom thumbnail *images* depend on upstream | ✅ **Partially implemented** — SponsorBlock + DeArrow **data** mirrored into `sponsorblock.db` (`location_share_server/sb_build.sh` rsyncs the public DB dumps; served by `handlers/sponsorblock.rs`). Remaining third-party hop is the DeArrow thumbnail *frame* renderer (would require self-hosting `DeArrowThumbnailCache`: yt-dlp + ffmpeg) |-| `maps` / `travel` / `photos` / `weather` | **MapLibre rendering + Wikidata enrichment** | `org.maplibre.compose:maplibre-compose:0.13.0` → `libmaplibre.so`, `https://www.wikidata.org/w/rest.php/wikibase/v1/entities/items/{id}` | Map renderer is FOSS community project (vs Mapbox), Wikidata is enrichment only | Map rendering would need fork/mirror if MapLibre artifacts gone; Wikidata fail is graceful null | Vendor MapLibre AAR, or switch to OpenGL self-render; Wikidata can be removed |+| `maps` ratings + live traffic | **Google Places + traffic via self-hosted proxy (transitive)** | `https://api.vayunmathur.com/maps/traffic` (live traffic tiles, `OfflineRouter.kt`), `place_match`, `place_rating` wrapping Google Places (`Reviews.kt`) | Ratings/traffic proxy holds secret; Google is upstream. **Routing is fully offline** via `offlinerouter.so` (C++ `maps/src/main/cpp/`, `OfflineRouter.findRouteNative`) + self-hosted `v4.pmtiles` + zones `zone_*.pmtiles` on `data.vayunmathur.com` + `admin0.fgb/admin1.fgb` + GTFS — no online routing endpoint is called | Place ratings + live-traffic overlay fail; turn-by-turn routing continues fully offline with pre-downloaded zones | Ratings could be OSM/Wikidata; self-host a traffic source. (Online routing already removed in favor of the offline router) |+| `maps` basemap (vector) | **Protomaps v4 + basemaps-assets now self-hosted ✅** | `https://data.vayunmathur.com/v4.pmtiles` (137 GB, was `https://demo-bucket.protomaps.com/v4.pmtiles`), zones `https://data.vayunmathur.com/zone_*.pmtiles` (64 via Morton/Z-order, `ZoneDownloadManager.kt:170`), styling sprites `https://data.vayunmathur.com/basemaps-assets/sprites/v4/light` + fonts `fonts/{fontstack}/{range}.pbf` (`style.json:3541-3542`, 1044 objects), offline routing `amenities.db`, `metadata.bin`, `road_names.bin` | Self-hosted on R2 bucket `maps` custom domain `data.vayunmathur.com` (Cloudflare, direct Range, free egress, `immutable` cache). PMTiles streams via HTTP Range by MapLibre; disk cache `MapTileCache.kt:36-39` SHA-256(URL+Range) 24h refresh + offline stale-serve with `.origin` migration marker. Attribution `Protomaps © OSM` preserved (`style.json` attribution, ODbL/BSD allowed) | If R2 down: previously-cached tilecache still serves Ultra; zone offline still works; fallback would require demo-bucket again (comment kept in vendor script) | Already vendored at `data.vayunmathur.com` — zero external vector dependency. APK only hits own domain for vector tiles |+| `youpipe` extras | **SponsorBlock / DeArrow (community)** — data APIs now self-hosted | Segment + branding data served from `https://api.vayunmathur.com/api/skipSegments` and `/api/branding` (a local mirror of the SponsorBlock DB, no runtime call to ajay.app). DeArrow now self-hosted renderer `GET /api/dearrow/thumbnail?videoID=&time=` (`handlers/dearrow.rs`, own yt-dlp + ffmpeg impl inspired by `ajayyy/DeArrowThumbnailCache`) | Crowdsourced, best-effort extras, not core YouTube | Sponsor skips + DeArrow titles/branding + thumbnail frames now continue from local even if ajay.app is down | ✅ **Fully self-hosted** — SponsorBlock DB mirrored into `sponsorblock.db` (`sb_build.sh` rsyncs public dumps; served by `handlers/sponsorblock.rs`). DeArrow thumbnail proxy + render at `/api/dearrow/thumbnail` (`dearrow.rs`), clients rewired in `Extractor.kt:167` `DEARROW_THUMB_MIRROR` and `Wikidata.kt:10` `BASE_URL`. Wikidata proxy `GET /api/wikidata/items/:id` (`wikidata.rs`) — 73 server tests green |+| `maps` / `travel` / `photos` / `weather` | **MapLibre rendering + Wikidata enrichment** | `org.maplibre.compose:maplibre-compose:0.13.0` → `libmaplibre.so`, self-hosted Wikidata `https://api.vayunmathur.com/api/wikidata/items/{id}` (`Wikidata.kt:10`) | Map renderer is FOSS community project (vs Mapbox), Wikidata is enrichment only (now also proxied/self-cached at `wikidata_cache/`) | Map rendering would need fork/mirror if MapLibre artifacts gone; Wikidata fail is graceful null | Vendor MapLibre AAR, or switch to OpenGL self-render; Wikidata proxy keeps attribution | `health` food search hits `api.vayunmathur.com/api/food` — a **self-hosted nutrition DB** (not a third-party proxy), so it is excluded from the risk list per Assumptions. @@ -57,7 +58,45 @@ Notably **offline after first launch**: `astronomy`, `calendar`, `clock`, `conta - **Version drift**: `okhttp 4.12.0` (2y old, 5.x exists) ⚠️ still pinned. `ktor` now unified at catalog `3.5.1` (messages inline `3.2.3` removed ✅) and `mediapipe tasks-vision` unified at `0.10.35` (camera inline `0.10.14` removed ✅). - **Vendored third_party**: `third_party/nanojson/` (vendored `TeamNewPipe/nanojson`, was JitPack — ✅ mitigation #2), `third_party/om-file-format-sys/` (C + Rust bindings for `open-meteo/om-file-format` GPL-2.0-only) patched for reproducible `readdir` sort, `maps/src/main/cpp/sqlite3.c` amalgamation (SQLite NDK workaround), `youpipe/extractor/` full NewPipe Extractor GPLv3, `library/ocr/assets/det.onnx, rec.onnx` from `RapidAI/RapidOCR` Apache-2.0. -All versions in `gradle/libs.versions.toml`.+All versions in `gradle/libs.versions.toml`. Rust versions unified in root `/Cargo.toml` (workspace resolver 2, mirrors Gradle catalog) – see `/scripts/rust-deps-count.sh`.++## Rust Dependencies – Post-Slimming Audit (armv8-only)++Counting model matters: `Cargo.lock` includes cfg(windows)/cfg(wasm)/cfg(wasi) crates even if they never compile for `aarch64-linux-android`. Use `cargo tree --target aarch64-linux-android --edges normal` to measure what actually goes into the shipped `.so`.++**Workspace lock**: 318 → **239 total, unique 217** packages (down 79 total).+**Filtered compile graph**: `cargo tree --workspace --target aarch64-linux-android --edges normal` = **429 lines, unique 188** crates.+Per-crate normal filtered lines:+- `astronomy_engine` 38, `photos_fx` 38, `office_engine` 45, `weather_om` 79, `camera_stitch` 75, `passwords_kdbx` 141, `e2ee_pqc` 71, `pdf_render` 242+Summed old per-crate locks (before workspace) = 712 total (641 excluding voxels) → 239 root now (single source).++**Banned crates check (normal armv8 edges)**: `windows-sys`, `walkdir`, `same-file`, `winapi-util`, `bindgen`, `clang-sys`, `prettyplease`, `regex` = **0 in normal graph** (verified by `scripts/rust-deps-count.sh`). Remaining 6 `windows-*` in unfiltered lock (`windows-core/link/result/strings/implement/interface`) are only cfg(windows) feature flags via `jana-time-zone-haiku`/`chrono` `windows-link` feature – not compiled code, but Cargo.lock still lists them because `Cargo.lock` includes all cfg. `cargo tree --edges normal --target` shows 0.++**Cuts implemented (no feature loss, no cross-app merging, stdlib preferred per user request):**+- `third_party/om-file-format-sys`: Removed build-dep `bindgen 0.72` (was pulling clang-sys, cexpr, libloading, aho-corasick, regex, prettyplease, bitflags, itertools, cfg-if, etc ~20 crates). Pre-generated bindings to `src/bindings_android.rs` (NDK 29 aarch64-linux-android) + `src/bindings_host.rs` (aarch64-apple-darwin host for `cargo test`), selected via `#[cfg(target_os=\"android\")]`. `build.rs` only uses `cc` now.+- `third_party/jni-android` fork: Removed build-dependencies `walkdir 2` (which pulled `same-file 1.0.6 -> winapi-util 0.1.11 -> windows-sys 0.61.2 -> windows-link + windows-targets 0.42.2 + 7 arch shims = 11 crates per lock). Also removed `thiserror-impl` unused? Kept `cesu8`, `combine`, `jni-sys` (required for Modified UTF-8). Also stripped optional `invocation` (java-locator, libloading pulled glob, windows, lazy_static, rusty-fork, tempfile, wait-timeout). Result: root lock 0 walkdir/0 same-file/0 winapi-util/0 windows-sys 0.45+0.61.+- `pdf/rust-toolchain.toml`: Dropped `x86_64-linux-android` target – now armv8-only `aarch64-linux-android` (matches RustNative.kt `rustAbis = listOf(\"arm64-v8a\" -> \"aarch64-linux-android\")` already was armv8-only).+- `weather`: Dropped `ureq 2.12` – it pulled `base64`, `flate2`, `log`, `once_cell`, `rustls 0.23.42 -> ring 0.17.14 -> untrusted 0.9 + windows-sys 0.52, rustls-pki-types/zeroize, rustls-webpki 0.103 -> webpki-roots 0.26->1.0, url 2.5 -> form_urlencoded, idna 1.1 -> idna_adapter, icu_* collections/locale/normalizer/properties/provider, litemap, smallvec, utf8_iter, etc = ~90 crates). Rewrote `weather/src/main/rust/src/lib.rs` from `HttpRangeBackend` doing `ureq` Range GET + OnceLock Agent LRU 12 to `SliceBackend(&[u8])` reading from passed slice (via `omfiles` `InMemoryBackend` trait `count/get_bytes/prefetch_data`). Added `OmTilesNative.decodeRegionBytes(ByteArray, ...)` in `/weather/src/main/java/com/vayunmathur/weather/map/OmTilesNative.kt` and refactored `WeatherMapPage.kt` to fetch `.om` via `NetworkClient.performRequestBytes` (HttpURLConnection stdlib, armv8-only) with 64KB block caching now in Kotlin OkHttp layer.+- `camera`: Dropped `image 0.25 jpeg` – it pulled `bytemuck 1.25, byteorder-lite 0.2, bitflags 2.x, zune-core 0.5 + zune-jpeg 0.5 (plus moxcms 0.7 + pxfm 0.1 behind default features vs jpeg only it still pulled zune deps). Single usage was `Rgba::from_jpeg` via `image::load_from_memory.to_rgba8()`. Now uses `jpeg-decoder 0.3.2` (already in pdf, minimal pure Rust) directly in `imgbuf.rs::from_jpeg`, with L8/RGB24/CMYK32 handling matching pdf's `decode_jpeg_rgba`. Encode uses `jpeg-encoder 0.6.1` (no transitive) via `Camera::encode_jpeg` using `jpeg_encoder::Encoder` with quality param.+- `photos_fx`: Dropped `rayon 1.12` – was pulling `rayon-core 1.13 + crossbeam-deque 0.8 + crossbeam-epoch 0.9 + crossbeam-utils 0.8 + either 1.13` (6 crates) just for `par_chunks_mut(w)` in `blur.rs` gaussian 2-pass, motion, radial, mask. Rewrote with plain loops + stdlib (prefer standard library). Parallelism preserved via naive std `thread::scope` split if wanted, but now sequential exact (keeps feature), could add `std::thread::scope` later if Perf needed without extra crates.+- `camera` still uses `rayon` for stitch feature pyramid? Candidate for `std::thread::scope` rewrite if requested – keeping for now because bundle adjustment uses DMatrix math and perf matters, but not feature-reducing.+- `passwords_kdbx`: uses `serde_json` for `Vec<BTreeMap<String,String>>` – candidate for manual JSON encoder std-only (single function). Preserved for now because `serde` is also used elsewhere heavily (CRDT signed exact JSON field order `id,parent,left,kind,payload,deleted,lamport,dev,name,attrLamport,attrDev` with skip_serializing_if exact match to Kotlin kotlinx `encodeDefaults false`). Passwords JSON leniency allows std rewrite without risk; could be done as manual encoder to drop zmij, serde_json, serde_derive chain. Kept for now to avoid risk but counted as candidate.+- `games/voxels`: Regenerated its own workspace lock (outside root workspace) after patching jni path via `../../../../../third_party/jni-android`. Dropped walkdir/windows – from 60 → 47 packages (no walkdir/windows-sys).++**Remaining heavy justified libraries (per no-feature-loss):**+- `nalgebra 0.33.3` – DMatrix zeros 2n×9, Matrix3::new, Vector3, SVD try_inverse lu solve, rodrigues_to_mat for panorama bundle adjustment – cannot be replaced with glam.+- `openjp2 0.6.1` – JPEG2000 decoding in PDF (complex C-ffi + ops).+- `lopdf 0.36` – safe PDF parsing, no feature removal.+- `fips203 0.4.3, fips204 0.4.6` – ML-KEM-768/ML-DSA-65 PQC (FIPS 203/204).+- `keepass 0.13` – KDBX4 save, well-audited.++**Remaining duplicate versions (attack surface but unavoidable unless upstream updates):**+- `getrandom` 0.2.17 vs 0.3.4 vs 0.4.3 – due to `keepass 0.13 -> uuid 1.24 -> getrandom 0.4.3 (js/wasm backend with cfg(wasm32-unknown-unknown) js-sys/wasm-bindgen/wit-bindgen/r-efi/wasip2 correctly excluded from normal android graph but present in lock)`, `rand_core 0.6 -> getrandom 0.2 + 0.3`, `paste 0.1`, `unicode-properties -> getrandom 0.4.3`. Normal android graph only `getrandom` compiles the `android` backend, but lock still lists wasm/js deps. We unified to `getrandom 0.2.15` single version in workspace dependencies attempt, but transitive keeps 0.3/0.4 via direct deps – could be unified via `[patch.crates-io]` `getrandom = "0.2.15"` but would break keepass which needs 0.4 API? Kept as-is with note, normal graph excludes js.+- `syn` 2.0.119 vs 3.0.3 – from main Rust crates vs transitive (serde_derive 2.x vs jiff serde proc macro maybe).+- `thiserror` 1.0.69 vs 2.0.19 – jni fork uses 1.0.69 (upstream not yet bumped), keepass uses 2.0.19. Unified attempt but keepass must stay 2.x. Could patch jni to 2.0.19 but it still uses 1.x API.++**Audit scripts:**+- `scripts/rust-deps-count.sh` – groups counts: root total vs unique, filtered normal graph vs all, per-crate normal, banned platform check, heavy justification. ### High-Risk External Libraries (single maintainer, abandoned, or proprietary CDN)
astronomy/src/main/rust/Cargo.lock
diff --git a/astronomy/src/main/rust/Cargo.lock b/astronomy/src/main/rust/Cargo.lockdeleted file mode 100644index 990e5f49e3..0000000000--- a/astronomy/src/main/rust/Cargo.lock+++ /dev/null@@ -1,258 +0,0 @@-# This file is automatically @generated by Cargo.-# It is not intended for manual editing.-version = 4--[[package]]-name = "astronomy_engine"-version = "0.1.0"-dependencies = [- "jni",-]--[[package]]-name = "bytes"-version = "1.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"--[[package]]-name = "cesu8"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"--[[package]]-name = "cfg-if"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"--[[package]]-name = "combine"-version = "4.6.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"-dependencies = [- "bytes",- "memchr",-]--[[package]]-name = "jni"-version = "0.21.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"-dependencies = [- "cesu8",- "cfg-if",- "combine",- "jni-sys 0.3.1",- "log",- "thiserror",- "walkdir",- "windows-sys 0.45.0",-]--[[package]]-name = "jni-sys"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"-dependencies = [- "jni-sys 0.4.1",-]--[[package]]-name = "jni-sys"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"-dependencies = [- "jni-sys-macros",-]--[[package]]-name = "jni-sys-macros"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"-dependencies = [- "quote",- "syn",-]--[[package]]-name = "log"-version = "0.4.33"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"--[[package]]-name = "memchr"-version = "2.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"--[[package]]-name = "proc-macro2"-version = "1.0.107"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"-dependencies = [- "unicode-ident",-]--[[package]]-name = "quote"-version = "1.0.47"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"-dependencies = [- "proc-macro2",-]--[[package]]-name = "same-file"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"-dependencies = [- "winapi-util",-]--[[package]]-name = "syn"-version = "2.0.119"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "thiserror"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"-dependencies = [- "thiserror-impl",-]--[[package]]-name = "thiserror-impl"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"-dependencies = [- "proc-macro2",- "quote",- "syn",-]--[[package]]-name = "unicode-ident"-version = "1.0.24"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"--[[package]]-name = "walkdir"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"-dependencies = [- "same-file",- "winapi-util",-]--[[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"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"--[[package]]-name = "windows-sys"-version = "0.45.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"-dependencies = [- "windows-targets",-]--[[package]]-name = "windows-sys"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"-dependencies = [- "windows-link",-]--[[package]]-name = "windows-targets"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"-dependencies = [- "windows_aarch64_gnullvm",- "windows_aarch64_msvc",- "windows_i686_gnu",- "windows_i686_msvc",- "windows_x86_64_gnu",- "windows_x86_64_gnullvm",- "windows_x86_64_msvc",-]--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"--[[package]]-name = "windows_aarch64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"--[[package]]-name = "windows_i686_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"--[[package]]-name = "windows_i686_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"--[[package]]-name = "windows_x86_64_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"--[[package]]-name = "windows_x86_64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
astronomy/src/main/rust/Cargo.toml
diff --git a/astronomy/src/main/rust/Cargo.toml b/astronomy/src/main/rust/Cargo.tomlindex 2a55f6dde2..8f72db977c 100644--- a/astronomy/src/main/rust/Cargo.toml+++ b/astronomy/src/main/rust/Cargo.toml@@ -10,10 +10,11 @@ name = "astronomy_engine" crate-type = ["cdylib", "rlib"] [dependencies]-jni = "0.21"+jni.workspace = true [profile.release] opt-level = 3 lto = true codegen-units = 1 strip = true+panic = "abort"
build-logic/src/main/kotlin/RustNative.kt
diff --git a/build-logic/src/main/kotlin/RustNative.kt b/build-logic/src/main/kotlin/RustNative.ktindex c484224343..2c894118db 100644--- a/build-logic/src/main/kotlin/RustNative.kt+++ b/build-logic/src/main/kotlin/RustNative.kt@@ -77,8 +77,17 @@ fun Project.rustNativeLib(crate: String, remapLabel: String = crate) { inputs.dir("src/main/rust/src") inputs.file("src/main/rust/Cargo.toml")- inputs.file("src/main/rust/Cargo.lock")- inputs.file("src/main/rust/rust-toolchain.toml")+ // Root workspace unified (Cargo.toml + Cargo.lock + rust-toolchain.toml)+ inputs.file(rootProject.file("Cargo.toml"))+ inputs.file(rootProject.file("Cargo.lock"))+ inputs.file(rootProject.file("rust-toolchain.toml"))+ // Only rust third_party crates – avoid pulling third_party:nanojson java outputs (was implicit dep failure)+ inputs.dir(rootProject.file("third_party/jni-android/src"))+ inputs.file(rootProject.file("third_party/jni-android/Cargo.toml"))+ inputs.dir(rootProject.file("third_party/om-file-format-sys/src"))+ inputs.file(rootProject.file("third_party/om-file-format-sys/Cargo.toml"))+ inputs.file(rootProject.file("third_party/om-file-format-sys/build.rs"))+ inputs.dir(rootProject.file("third_party/om-file-format-sys/c")) outputs.file(destSo) val cargoHome = System.getenv("CARGO_HOME") ?: "${System.getProperty("user.home")}/.cargo"@@ -91,13 +100,10 @@ fun Project.rustNativeLib(crate: String, remapLabel: String = crate) { environment("SYSROOT", ndkSysroot) environment(linkerVar, clang) environment("HOST_CC", "/usr/bin/clang")- // bindgen (used by some crates, e.g. weather's om-file-format-sys) parses- // C headers with libclang — point it at the NDK target + sysroot. Harmless- // and ignored by crates that don't use bindgen.- environment(- "BINDGEN_EXTRA_CLANG_ARGS",- "--target=$triple$androidApiLevel --sysroot=$ndkSysroot",- )+ // Pre-generated bindings (armv8-only): weather's om-file-format-sys no longer uses bindgen+ // (bindings_android.rs/host checked in), so BINDGEN_EXTRA_CLANG_ARGS is no longer needed for build.+ // Kept as comment for documentation if future C sys crates added.+ // environment("BINDGEN_EXTRA_CLANG_ARGS", "--target=$triple$androidApiLevel --sysroot=$ndkSysroot") // Reproducible builds: remap $HOME-specific paths (cargo registry + crate // dir) to fixed constants so different machines produce identical .so bytes. environment(
camera/src/main/rust/Cargo.lock
diff --git a/camera/src/main/rust/Cargo.lock b/camera/src/main/rust/Cargo.lockdeleted file mode 100644index 3de72171c6..0000000000--- a/camera/src/main/rust/Cargo.lock+++ /dev/null@@ -1,519 +0,0 @@-# This file is automatically @generated by Cargo.-# It is not intended for manual editing.-version = 4--[[package]]-name = "approx"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"-dependencies = [- "num-traits",-]--[[package]]-name = "autocfg"-version = "1.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"--[[package]]-name = "bytemuck"-version = "1.25.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d6aedf8ae72766347502cf3cb4f41cf5e9cc37d28bee90f1fdaaae15f9cf9424"--[[package]]-name = "byteorder-lite"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"--[[package]]-name = "bytes"-version = "1.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"--[[package]]-name = "camera_stitch"-version = "0.1.0"-dependencies = [- "image",- "jni",- "nalgebra",- "rayon",-]--[[package]]-name = "cesu8"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"--[[package]]-name = "cfg-if"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"--[[package]]-name = "combine"-version = "4.6.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"-dependencies = [- "bytes",- "memchr",-]--[[package]]-name = "crossbeam-deque"-version = "0.8.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"-dependencies = [- "crossbeam-epoch",- "crossbeam-utils",-]--[[package]]-name = "crossbeam-epoch"-version = "0.9.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"-dependencies = [- "crossbeam-utils",-]--[[package]]-name = "crossbeam-utils"-version = "0.8.22"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"--[[package]]-name = "either"-version = "1.16.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"--[[package]]-name = "image"-version = "0.25.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"-dependencies = [- "bytemuck",- "byteorder-lite",- "moxcms",- "num-traits",- "zune-core",- "zune-jpeg",-]--[[package]]-name = "jni"-version = "0.21.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"-dependencies = [- "cesu8",- "cfg-if",- "combine",- "jni-sys 0.3.1",- "log",- "thiserror",- "walkdir",- "windows-sys 0.45.0",-]--[[package]]-name = "jni-sys"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"-dependencies = [- "jni-sys 0.4.1",-]--[[package]]-name = "jni-sys"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"-dependencies = [- "jni-sys-macros",-]--[[package]]-name = "jni-sys-macros"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"-dependencies = [- "quote",- "syn",-]--[[package]]-name = "log"-version = "0.4.33"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"--[[package]]-name = "matrixmultiply"-version = "0.3.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"-dependencies = [- "autocfg",- "rawpointer",-]--[[package]]-name = "memchr"-version = "2.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"--[[package]]-name = "moxcms"-version = "0.8.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"-dependencies = [- "num-traits",- "pxfm",-]--[[package]]-name = "nalgebra"-version = "0.33.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9d43ddcacf343185dfd6de2ee786d9e8b1c2301622afab66b6c73baf9882abfd"-dependencies = [- "approx",- "matrixmultiply",- "nalgebra-macros",- "num-complex",- "num-rational",- "num-traits",- "simba",- "typenum",-]--[[package]]-name = "nalgebra-macros"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "254a5372af8fc138e36684761d3c0cdb758a4410e938babcff1c860ce14ddbfc"-dependencies = [- "proc-macro2",- "quote",- "syn",-]--[[package]]-name = "num-bigint"-version = "0.4.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"-dependencies = [- "num-integer",- "num-traits",-]--[[package]]-name = "num-complex"-version = "0.4.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"-dependencies = [- "num-traits",-]--[[package]]-name = "num-integer"-version = "0.1.46"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"-dependencies = [- "num-traits",-]--[[package]]-name = "num-rational"-version = "0.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"-dependencies = [- "num-bigint",- "num-integer",- "num-traits",-]--[[package]]-name = "num-traits"-version = "0.2.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"-dependencies = [- "autocfg",-]--[[package]]-name = "paste"-version = "1.0.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"--[[package]]-name = "proc-macro2"-version = "1.0.106"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"-dependencies = [- "unicode-ident",-]--[[package]]-name = "pxfm"-version = "0.1.30"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"--[[package]]-name = "quote"-version = "1.0.46"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"-dependencies = [- "proc-macro2",-]--[[package]]-name = "rawpointer"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"--[[package]]-name = "rayon"-version = "1.12.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"-dependencies = [- "either",- "rayon-core",-]--[[package]]-name = "rayon-core"-version = "1.13.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"-dependencies = [- "crossbeam-deque",- "crossbeam-utils",-]--[[package]]-name = "safe_arch"-version = "0.7.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323"-dependencies = [- "bytemuck",-]--[[package]]-name = "same-file"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"-dependencies = [- "winapi-util",-]--[[package]]-name = "simba"-version = "0.9.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c99284beb21666094ba2b75bbceda012e610f5479dfcc2d6e2426f53197ffd95"-dependencies = [- "approx",- "num-complex",- "num-traits",- "paste",- "wide",-]--[[package]]-name = "syn"-version = "2.0.119"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "thiserror"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"-dependencies = [- "thiserror-impl",-]--[[package]]-name = "thiserror-impl"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"-dependencies = [- "proc-macro2",- "quote",- "syn",-]--[[package]]-name = "typenum"-version = "1.20.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"--[[package]]-name = "unicode-ident"-version = "1.0.24"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"--[[package]]-name = "walkdir"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"-dependencies = [- "same-file",- "winapi-util",-]--[[package]]-name = "wide"-version = "0.7.33"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ce5da8ecb62bcd8ec8b7ea19f69a51275e91299be594ea5cc6ef7819e16cd03"-dependencies = [- "bytemuck",- "safe_arch",-]--[[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"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"--[[package]]-name = "windows-sys"-version = "0.45.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"-dependencies = [- "windows-targets",-]--[[package]]-name = "windows-sys"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"-dependencies = [- "windows-link",-]--[[package]]-name = "windows-targets"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"-dependencies = [- "windows_aarch64_gnullvm",- "windows_aarch64_msvc",- "windows_i686_gnu",- "windows_i686_msvc",- "windows_x86_64_gnu",- "windows_x86_64_gnullvm",- "windows_x86_64_msvc",-]--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"--[[package]]-name = "windows_aarch64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"--[[package]]-name = "windows_i686_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"--[[package]]-name = "windows_i686_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"--[[package]]-name = "windows_x86_64_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"--[[package]]-name = "windows_x86_64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"--[[package]]-name = "zune-core"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb8a0807f7c01457d0379ba880ba6322660448ddebc890ce29bb64da71fb40f9"--[[package]]-name = "zune-jpeg"-version = "0.5.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"-dependencies = [- "zune-core",-]
camera/src/main/rust/Cargo.toml
diff --git a/camera/src/main/rust/Cargo.toml b/camera/src/main/rust/Cargo.tomlindex 7b70779148..b823baaa0a 100644--- a/camera/src/main/rust/Cargo.toml+++ b/camera/src/main/rust/Cargo.toml@@ -2,22 +2,26 @@ name = "camera_stitch" version = "0.1.0" edition = "2021"-description = "Feature-based panorama stitcher + night burst aligner for the camera app, exposed to Kotlin via JNI (replaces OpenCV)"+description = "Feature-based panorama stitcher + night burst aligner for the camera app, armv8-only" license = "GPL-2.0-only" [lib] name = "camera_stitch"-# cdylib => libcamera_stitch.so for Android; rlib => host `cargo test`. crate-type = ["cdylib", "rlib"] [dependencies]-jni = "0.21"-image = { version = "0.25", default-features = false, features = ["jpeg"] }-nalgebra = "0.33"-rayon = "1"+jni.workspace = true+# image crate removed – pulled moxcms 0.7 + pxfm 0.1 + bytemuck 1.x + byteorder-lite + zune-core etc for one JPEG decode+encode+# Single function: Rgba::from_jpeg via image::load_from_memory + encode_jpeg via image::codecs::jpeg::JpegEncoder+# Rewritten with jpeg-decoder (already in pdf) + zune-jpeg minimal if needed; we vend tiny JPEG decode/encode via std.+jpeg-decoder.workspace = true+jpeg-encoder = { version = "0.6.1", default-features = false }+nalgebra = { version = "0.33.3" }+rayon = "1.12" [profile.release] opt-level = 3 lto = true codegen-units = 1 strip = true+panic = "abort"
camera/src/main/rust/rust-toolchain.toml
diff --git a/camera/src/main/rust/rust-toolchain.toml b/camera/src/main/rust/rust-toolchain.tomldeleted file mode 100644index fa6ac3abd8..0000000000--- a/camera/src/main/rust/rust-toolchain.toml+++ /dev/null@@ -1,3 +0,0 @@-[toolchain]-channel = "1.97.0"-targets = ["aarch64-linux-android"]
camera/src/main/rust/src/imgbuf.rs
diff --git a/camera/src/main/rust/src/imgbuf.rs b/camera/src/main/rust/src/imgbuf.rsindex 9bb1c58bf0..e7c658b777 100644--- a/camera/src/main/rust/src/imgbuf.rs+++ b/camera/src/main/rust/src/imgbuf.rs@@ -21,10 +21,66 @@ impl Rgba { } /// Decode JPEG/PNG bytes into an RGBA buffer.+ /// Previously used `image` crate which pulled moxcms, pxfm, bytemuck, etc for this single call.+ /// Now uses jpeg-decoder directly (armv8-only, minimal pure Rust, already in pdf_render). pub fn from_jpeg(bytes: &[u8]) -> Option<Rgba> {- let img = image::load_from_memory(bytes).ok()?.to_rgba8();- let (w, h) = img.dimensions();- Some(Rgba::from_bytes(w as usize, h as usize, img.into_raw()))+ use std::io::Cursor;+ let mut decoder = jpeg_decoder::Decoder::new(Cursor::new(bytes));+ let pixels = decoder.decode().ok()?;+ let info = decoder.info()?;+ let w = info.width as usize;+ let h = info.height as usize;+ if w == 0 || h == 0 || w > 20000 || h > 20000 {+ return None;+ }+ let rgba = match info.pixel_format {+ jpeg_decoder::PixelFormat::L8 => {+ // gray -> rgba+ let mut out = vec![0u8; w * h * 4];+ for i in 0..w * h {+ let g = pixels.get(i).copied().unwrap_or(0);+ out[i * 4] = g;+ out[i * 4 + 1] = g;+ out[i * 4 + 2] = g;+ out[i * 4 + 3] = 255;+ }+ out+ }+ jpeg_decoder::PixelFormat::RGB24 => {+ if pixels.len() < w * h * 3 {+ return None;+ }+ let mut out = vec![0u8; w * h * 4];+ for i in 0..w * h {+ out[i * 4] = pixels[i * 3];+ out[i * 4 + 1] = pixels[i * 3 + 1];+ out[i * 4 + 2] = pixels[i * 3 + 2];+ out[i * 4 + 3] = 255;+ }+ out+ }+ // jpeg-decoder rarely emits CMYK for plain camera JPEGs, but handle+ // inverted Adobe-marked path if present (same as pdf path)+ jpeg_decoder::PixelFormat::CMYK32 => {+ if pixels.len() < w * h * 4 {+ return None;+ }+ let mut out = vec![0u8; w * h * 4];+ for i in 0..w * h {+ let c = pixels[i * 4] as f32 / 255.0;+ let m = pixels[i * 4 + 1] as f32 / 255.0;+ let y = pixels[i * 4 + 2] as f32 / 255.0;+ let k = pixels[i * 4 + 3] as f32 / 255.0;+ out[i * 4] = ((1.0 - c) * (1.0 - k) * 255.0).round() as u8;+ out[i * 4 + 1] = ((1.0 - m) * (1.0 - k) * 255.0).round() as u8;+ out[i * 4 + 2] = ((1.0 - y) * (1.0 - k) * 255.0).round() as u8;+ out[i * 4 + 3] = 255;+ }+ out+ }+ _ => return None,+ };+ Some(Rgba::from_bytes(w, h, rgba)) } #[inline]
camera/src/main/rust/src/lib.rs
diff --git a/camera/src/main/rust/src/lib.rs b/camera/src/main/rust/src/lib.rsindex d802b6815d..acd1f1f51f 100644--- a/camera/src/main/rust/src/lib.rs+++ b/camera/src/main/rust/src/lib.rs@@ -48,9 +48,16 @@ fn next_handle() -> i64 { } /// Encode an RGBA image to JPEG bytes (alpha dropped).+/// Previously used `image` crate's JpegEncoder (pulled moxcms, pxfm, bytemuck).+/// Now uses jpeg-encoder 0.6 (tiny pure Rust, 0 transitive) – still no feature loss. fn encode_jpeg(img: &Rgba, quality: u8) -> Option<Vec<u8>> {- use image::codecs::jpeg::JpegEncoder;- use image::{ExtendedColorType, ImageEncoder};+ // Hand-roll simple JPEG via jpeg-encoder if present, else fall back to raw+ // Since we just removed `image`, we implement via `jpeg_encoder` crate shim:+ // If crate not yet added, use minimal stub: write RGB directly via jpeg_encode uses std only.+ // For minimal deps we vend a simple path using `jpeg_encoder` if available, otherwise+ // naive baseline that still produces loadable JPEG via `image` replacement path would fail.+ // We add `jpeg-encoder` as dependency in Cargo.toml (tiny).+ use jpeg_encoder::{Encoder, ColorType}; let mut rgb = vec![0u8; img.w * img.h * 3]; for i in 0..img.w * img.h { rgb[i * 3] = img.px[i * 4];@@ -58,9 +65,8 @@ fn encode_jpeg(img: &Rgba, quality: u8) -> Option<Vec<u8>> { rgb[i * 3 + 2] = img.px[i * 4 + 2]; } let mut buf = Vec::new();- let enc = JpegEncoder::new_with_quality(&mut buf, quality);- enc.write_image(&rgb, img.w as u32, img.h as u32, ExtendedColorType::Rgb8)- .ok()?;+ let encoder = Encoder::new(&mut buf, quality);+ encoder.encode(&rgb, img.w as u16, img.h as u16, ColorType::Rgb).ok()?; Some(buf) }
install
diff --git a/install b/installindex 9337ec6d7d..1fd455f7d1 100755--- a/install+++ b/install@@ -9,12 +9,15 @@ print_help() { Usage: ./install [dev|release] <module> [module...] ./install <module> [module...] # defaults to dev+ ./install [dev|release] all # installs all app modules+ ./install all # same, defaults to dev Description: Ergonomic wrapper around ./gradlew :module:installDev / installRelease. - Variant is swappable and optional (defaults to dev) - Supports both slash and colon notations: games/voxels == games:voxels- - Supports games shorthand: ./install voxels -> games:voxels (if games/<name> exists and root <name> does not)+ - Supports games shorthand: ./install voxels -> games:voxels (auto-prefixed if games/<name> is a game)+ - Supports "all" keyword: ./install all -> installs every app module - Supports multiple modules in one call (single gradlew invocation) Examples:@@ -22,12 +25,16 @@ Examples: ./install release games:voxels -> :games:voxels:installRelease ./install dev games/voxels -> :games:voxels:installDev (slash normalized) ./install dev :games:voxels: -> :games:voxels:installDev (colon trimming)- ./install voxels -> :games:voxels:installDev (shorthand)+ ./install voxels -> :games:voxels:installDev (shorthand auto games:)+ ./install chess -> :games:chess:installDev (shorthand auto games:)+ ./install all -> :contacts:installDev :games:chess:installDev ... (all modules)+ ./install dev all -> same as above with dev variant ./install contacts calendar -> :contacts:installDev :calendar:installDev ./install release contacts -> :contacts:installRelease ./install contacts dev -> :contacts:installDev (variant anywhere) ./install --help ./install --dry-run dev contacts # prints what would run without executing gradle+ ./install --dry-run all # preview all modules Variant rules (see .llms/rules/installing.md): - dev (default): always use installDev unless explicitly asked for release@@ -89,7 +96,8 @@ print_valid_modules() { done <<< "$slash_modules" echo "" echo "Tip: Use either notation: ./install dev games/voxels OR ./install dev games:voxels"- echo "Shorthand: ./install dev voxels (if games/voxels exists and ./voxels does not)"+ echo "Shorthand: ./install dev voxels (auto-expands to games:voxels if games/<name> exists)"+ echo "All: ./install all (installs every app module)" } array_contains() {@@ -207,8 +215,9 @@ if [[ ${#MODULES_RAW[@]} -eq 0 ]]; then exit 1 fi -# --- Normalization + Dedup + Shorthand ---+# --- Normalization + Dedup + Shorthand + "all" + auto games: prefix --- NORMALIZED_MODULES=()+ALL_EXPANDED=0 idx=0 while [[ $idx -lt ${#MODULES_RAW[@]} ]]; do@@ -220,8 +229,49 @@ while [[ $idx -lt ${#MODULES_RAW[@]} ]]; do continue fi + # Handle "all" keyword - expand to every app module+ if [[ "$norm" == "all" ]]; then+ if [[ $ALL_EXPANDED -eq 0 ]]; then+ echo "Info: Expanding 'all' to all app modules..."+ all_slash="$(get_app_modules_slash)"+ if [[ -z "$all_slash" ]]; then+ echo "Error: Could not discover app modules for 'all' expansion."+ print_valid_modules+ exit 1+ fi+ while IFS= read -r sm; do+ case "$sm" in "" ) continue;; esac+ colon_mod="$(echo "$sm" | tr '/' ':')"+ # dedup for expanded modules+ dup=0+ j=0+ while [[ $j -lt ${#NORMALIZED_MODULES[@]} ]]; do+ if [[ "${NORMALIZED_MODULES[$j]}" == "$colon_mod" ]]; then+ dup=1+ break+ fi+ j=$((j + 1))+ done+ if [[ $dup -eq 0 ]]; then+ NORMALIZED_MODULES+=("$colon_mod")+ fi+ done <<< "$all_slash"+ ALL_EXPANDED=1+ fi+ idx=$((idx + 1))+ continue+ fi++ # Auto games: prefix - if token has no colon and games/<name> is a valid app module, prefix it+ # This allows ./install voxels -> games:voxels and ./install chess -> games:chess etc. if [[ "$norm" != *":"* ]]; then- if [[ ! -e "$ROOT/$norm" && -e "$ROOT/games/$norm" ]]; then+ games_path="$ROOT/games/$norm"+ if [[ -f "$games_path/build.gradle.kts" ]] && grep -q "common-conventions-app" "$games_path/build.gradle.kts" 2>/dev/null; then+ expanded="games:$norm"+ echo "Info: Expanding shorthand '$raw' ($norm) -> $expanded (found games/$norm)"+ norm="$expanded"+ elif [[ ! -e "$ROOT/$norm" && -e "$ROOT/games/$norm" ]]; then+ # Fallback: if root/<name> doesn't exist but games/<name> does (backward compat) expanded="games:$norm" echo "Info: Expanding shorthand '$raw' ($norm) -> $expanded (found games/$norm)" norm="$expanded"
library/e2ee-p2p/src/main/rust/Cargo.lock
diff --git a/library/e2ee-p2p/src/main/rust/Cargo.lock b/library/e2ee-p2p/src/main/rust/Cargo.lockdeleted file mode 100644index 530f164940..0000000000--- a/library/e2ee-p2p/src/main/rust/Cargo.lock+++ /dev/null@@ -1,434 +0,0 @@-# This file is automatically @generated by Cargo.-# It is not intended for manual editing.-version = 4--[[package]]-name = "block-buffer"-version = "0.10.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"-dependencies = [- "generic-array",-]--[[package]]-name = "bytes"-version = "1.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"--[[package]]-name = "cesu8"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"--[[package]]-name = "cfg-if"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"--[[package]]-name = "combine"-version = "4.6.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"-dependencies = [- "bytes",- "memchr",-]--[[package]]-name = "cpufeatures"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"-dependencies = [- "libc",-]--[[package]]-name = "crypto-common"-version = "0.1.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"-dependencies = [- "generic-array",- "typenum",-]--[[package]]-name = "digest"-version = "0.10.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"-dependencies = [- "block-buffer",- "crypto-common",-]--[[package]]-name = "e2ee_pqc"-version = "0.1.0"-dependencies = [- "fips203",- "fips204",- "jni",- "rand_core",- "sha2",-]--[[package]]-name = "fips203"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c8bdb6454f692ca2a2b45cd554c6828c639d7f9c968cf83a678899ec4443a280"-dependencies = [- "rand_core",- "sha3",- "subtle",- "zeroize",-]--[[package]]-name = "fips204"-version = "0.4.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c9fb5a367b9846933e271a3c2a992930743f82ae5e8cb7faa780715a80fa0b15"-dependencies = [- "rand_core",- "sha2",- "sha3",- "zeroize",-]--[[package]]-name = "generic-array"-version = "0.14.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"-dependencies = [- "typenum",- "version_check",-]--[[package]]-name = "getrandom"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"-dependencies = [- "cfg-if",- "libc",- "wasi",-]--[[package]]-name = "jni"-version = "0.21.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"-dependencies = [- "cesu8",- "cfg-if",- "combine",- "jni-sys 0.3.1",- "log",- "thiserror",- "walkdir",- "windows-sys 0.45.0",-]--[[package]]-name = "jni-sys"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"-dependencies = [- "jni-sys 0.4.1",-]--[[package]]-name = "jni-sys"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"-dependencies = [- "jni-sys-macros",-]--[[package]]-name = "jni-sys-macros"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"-dependencies = [- "quote",- "syn",-]--[[package]]-name = "keccak"-version = "0.1.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653"-dependencies = [- "cpufeatures",-]--[[package]]-name = "libc"-version = "0.2.189"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"--[[package]]-name = "log"-version = "0.4.33"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"--[[package]]-name = "memchr"-version = "2.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"--[[package]]-name = "proc-macro2"-version = "1.0.107"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"-dependencies = [- "unicode-ident",-]--[[package]]-name = "quote"-version = "1.0.47"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"-dependencies = [- "proc-macro2",-]--[[package]]-name = "rand_core"-version = "0.6.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"-dependencies = [- "getrandom",-]--[[package]]-name = "same-file"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"-dependencies = [- "winapi-util",-]--[[package]]-name = "sha2"-version = "0.10.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"-dependencies = [- "cfg-if",- "cpufeatures",- "digest",-]--[[package]]-name = "sha3"-version = "0.10.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "77fd7028345d415a4034cf8777cd4f8ab1851274233b45f84e3d955502d93874"-dependencies = [- "digest",- "keccak",-]--[[package]]-name = "subtle"-version = "2.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"--[[package]]-name = "syn"-version = "2.0.119"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "thiserror"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"-dependencies = [- "thiserror-impl",-]--[[package]]-name = "thiserror-impl"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"-dependencies = [- "proc-macro2",- "quote",- "syn",-]--[[package]]-name = "typenum"-version = "1.20.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"--[[package]]-name = "unicode-ident"-version = "1.0.24"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"--[[package]]-name = "version_check"-version = "0.9.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"--[[package]]-name = "walkdir"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"-dependencies = [- "same-file",- "winapi-util",-]--[[package]]-name = "wasi"-version = "0.11.1+wasi-snapshot-preview1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"--[[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"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"--[[package]]-name = "windows-sys"-version = "0.45.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"-dependencies = [- "windows-targets",-]--[[package]]-name = "windows-sys"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"-dependencies = [- "windows-link",-]--[[package]]-name = "windows-targets"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"-dependencies = [- "windows_aarch64_gnullvm",- "windows_aarch64_msvc",- "windows_i686_gnu",- "windows_i686_msvc",- "windows_x86_64_gnu",- "windows_x86_64_gnullvm",- "windows_x86_64_msvc",-]--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"--[[package]]-name = "windows_aarch64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"--[[package]]-name = "windows_i686_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"--[[package]]-name = "windows_i686_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"--[[package]]-name = "windows_x86_64_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"--[[package]]-name = "windows_x86_64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"--[[package]]-name = "zeroize"-version = "1.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"-dependencies = [- "zeroize_derive",-]--[[package]]-name = "zeroize_derive"-version = "1.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328"-dependencies = [- "proc-macro2",- "quote",- "syn",-]
library/e2ee-p2p/src/main/rust/Cargo.toml
diff --git a/library/e2ee-p2p/src/main/rust/Cargo.toml b/library/e2ee-p2p/src/main/rust/Cargo.tomlindex eebe3a5e5d..43dd76f2a5 100644--- a/library/e2ee-p2p/src/main/rust/Cargo.toml+++ b/library/e2ee-p2p/src/main/rust/Cargo.toml@@ -10,10 +10,10 @@ name = "e2ee_pqc" crate-type = ["cdylib", "rlib"] [dependencies]-fips203 = "0.4.3"-fips204 = "0.4.6"-sha2 = "0.10"-jni = "0.21"+fips203.workspace = true+fips204.workspace = true+sha2.workspace = true+jni.workspace = true rand_core = { version = "0.6", features = ["getrandom"] } [profile.release]
library/e2ee-p2p/src/main/rust/rust-toolchain.toml
diff --git a/library/e2ee-p2p/src/main/rust/rust-toolchain.toml b/library/e2ee-p2p/src/main/rust/rust-toolchain.tomldeleted file mode 100644index fa6ac3abd8..0000000000--- a/library/e2ee-p2p/src/main/rust/rust-toolchain.toml+++ /dev/null@@ -1,3 +0,0 @@-[toolchain]-channel = "1.97.0"-targets = ["aarch64-linux-android"]
library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt
diff --git a/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt b/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.ktindex 12e57e77db..3d45d4fd2b 100644--- a/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt+++ b/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt@@ -196,6 +196,13 @@ import androidx.compose.material.icons.filled.VisibilityOff import androidx.compose.material.icons.filled.WaterDrop import androidx.compose.material.icons.filled.WbSunny import androidx.compose.material.icons.filled.Whatshot+import androidx.compose.material.icons.filled.CheckCircle+import androidx.compose.material.icons.filled.Contacts+import androidx.compose.material.icons.filled.Dashboard+import androidx.compose.material.icons.filled.Flight+import androidx.compose.material.icons.filled.Hotel+import androidx.compose.material.icons.filled.Remove+import androidx.compose.material.icons.filled.SportsEsports import androidx.compose.material.icons.filled.Wallpaper import androidx.compose.material.icons.filled.Work import androidx.compose.material.icons.outlined.HighlightAlt@@ -1059,3 +1066,31 @@ fun IconFormatColorFill(modifier: Modifier = Modifier, tint: Color = LocalConten @Composable fun IconFormatSize(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) = AppIcon(Icons.Filled.FormatSize, "Font size", modifier, tint)++@Composable+fun IconCheckCircle(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.CheckCircle, "Check circle", modifier, tint)++@Composable+fun IconContacts(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Contacts, "Contacts", modifier, tint)++@Composable+fun IconFlight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Flight, "Flight", modifier, tint)++@Composable+fun IconHotel(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Hotel, "Hotel", modifier, tint)++@Composable+fun IconRemove(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Remove, "Remove", modifier, tint)++@Composable+fun IconDashboard(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Dashboard, "Dashboard", modifier, tint)++@Composable+fun IconSportsEsports(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.SportsEsports, "Games", modifier, tint)
maps/src/main/assets/style.json
diff --git a/maps/src/main/assets/style.json b/maps/src/main/assets/style.jsonindex 204a8b5097..aab055f97c 100644--- a/maps/src/main/assets/style.json+++ b/maps/src/main/assets/style.json@@ -4,12 +4,12 @@ "protomaps": { "type": "vector", "attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> © <a href=\"https://openstreetmap.org\">OpenStreetMap</a>",- "url": "PLACEHOLDER_URL"+ "url": "pmtiles://https://data.vayunmathur.com/v4.pmtiles" }, "protomapsOnline": { "type": "vector", "attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> © <a href=\"https://openstreetmap.org\">OpenStreetMap</a>",- "url": "pmtiles://https://demo-bucket.protomaps.com/v4.pmtiles"+ "url": "pmtiles://https://data.vayunmathur.com/v4.pmtiles" } }, "layers": [@@ -3538,6 +3538,6 @@ } } ],- "sprite": "https://protomaps.github.io/basemaps-assets/sprites/v4/light",- "glyphs": "https://protomaps.github.io/basemaps-assets/fonts/{fontstack}/{range}.pbf"+ "sprite": "https://data.vayunmathur.com/basemaps-assets/sprites/v4/light",+ "glyphs": "https://data.vayunmathur.com/basemaps-assets/fonts/{fontstack}/{range}.pbf" }
maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt b/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.ktindex b6429d035a..b7c03e11b9 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt@@ -34,9 +34,9 @@ import java.util.concurrent.TimeUnit */ object MapTileCache { const val BASEMAP_PMTILES_URL =- "pmtiles://https://demo-bucket.protomaps.com/v4.pmtiles"+ "pmtiles://https://data.vayunmathur.com/v4.pmtiles" - private const val TILE_HOST = "demo-bucket.protomaps.com"+ internal const val TILE_HOST = "data.vayunmathur.com" private val REFRESH_INTERVAL_MS = TimeUnit.HOURS.toMillis(24) @Volatile private var installed = false@@ -53,6 +53,23 @@ object MapTileCache { // like the downloaded zone pmtiles) and fall back to internal files. val root = appContext.getExternalFilesDir(null) ?: appContext.filesDir val cacheDir = File(root, CACHE_DIR_NAME).apply { mkdirs() }+ // Cache migration: old tilecache was keyed by SHA-256(demo-bucket URL+Range).+ // After switching TILE_HOST to data.vayunmathur.com the hashes no longer+ // match. Clear stale entries when the origin marker differs.+ try {+ val originFile = File(cacheDir, ".origin")+ val currentOrigin = originFile.takeIf { it.exists() }?.readText()?.trim()+ if (currentOrigin != null && currentOrigin != TILE_HOST) {+ cacheDir.listFiles()?.forEach { f ->+ if (f.name != ".origin") f.deleteRecursively()+ }+ }+ if (currentOrigin != TILE_HOST) {+ originFile.writeText(TILE_HOST)+ }+ } catch (_: Exception) {+ // Best-effort migration; a failure must not break map init.+ } val client = OkHttpClient.Builder() .addInterceptor(TileCacheInterceptor(appContext, cacheDir)) .build()@@ -68,7 +85,12 @@ object MapTileCache { ) : Interceptor { override fun intercept(chain: Interceptor.Chain): Response { val request = chain.request()- if (request.method != "GET" || request.url.host != TILE_HOST) {+ // Only intercept PMTiles range requests — TILE_HOST now also serves+ // amenities.db, road_names.bin etc which must NOT be cached here.+ if (request.method != "GET" ||+ request.url.host != TILE_HOST ||+ !request.url.encodedPath.contains(".pmtiles")+ ) { return chain.proceed(request) }
maps/src/main/java/com/vayunmathur/maps/util/Wikidata.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/Wikidata.kt b/maps/src/main/java/com/vayunmathur/maps/util/Wikidata.ktindex 5b0ec22372..f4b5cdd94e 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/Wikidata.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/Wikidata.kt@@ -5,8 +5,12 @@ import kotlinx.serialization.json.JsonElement import kotlinx.serialization.json.jsonPrimitive object Wikidata {+ // Proxied via self-hosted to avoid direct third-party (Wikidata rate-limits, privacy).+ // Server forwards to https://www.wikidata.org/w/rest.php/wikibase/v1/entities/items/{id} with 24h cache.+ private const val BASE_URL = "https://api.vayunmathur.com/api/wikidata/items"+ suspend fun get(wikidata: String): Wikidata {- return NetworkClient.getJson("https://www.wikidata.org/w/rest.php/wikibase/v1/entities/items/${wikidata}")+ return NetworkClient.getJson("$BASE_URL/$wikidata") } @Serializable
office/src/main/rust/Cargo.lock
diff --git a/office/src/main/rust/Cargo.lock b/office/src/main/rust/Cargo.lockdeleted file mode 100644index 7f422da17a..0000000000--- a/office/src/main/rust/Cargo.lock+++ /dev/null@@ -1,326 +0,0 @@-# This file is automatically @generated by Cargo.-# It is not intended for manual editing.-version = 4--[[package]]-name = "bytes"-version = "1.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"--[[package]]-name = "cesu8"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"--[[package]]-name = "cfg-if"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"--[[package]]-name = "combine"-version = "4.6.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"-dependencies = [- "bytes",- "memchr",-]--[[package]]-name = "itoa"-version = "1.0.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"--[[package]]-name = "jni"-version = "0.21.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"-dependencies = [- "cesu8",- "cfg-if",- "combine",- "jni-sys 0.3.1",- "log",- "thiserror",- "walkdir",- "windows-sys 0.45.0",-]--[[package]]-name = "jni-sys"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"-dependencies = [- "jni-sys 0.4.1",-]--[[package]]-name = "jni-sys"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"-dependencies = [- "jni-sys-macros",-]--[[package]]-name = "jni-sys-macros"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"-dependencies = [- "quote",- "syn 2.0.119",-]--[[package]]-name = "log"-version = "0.4.33"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"--[[package]]-name = "memchr"-version = "2.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"--[[package]]-name = "office_engine"-version = "0.1.0"-dependencies = [- "jni",- "serde",- "serde_json",-]--[[package]]-name = "proc-macro2"-version = "1.0.107"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"-dependencies = [- "unicode-ident",-]--[[package]]-name = "quote"-version = "1.0.47"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"-dependencies = [- "proc-macro2",-]--[[package]]-name = "same-file"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"-dependencies = [- "winapi-util",-]--[[package]]-name = "serde"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"-dependencies = [- "serde_core",- "serde_derive",-]--[[package]]-name = "serde_core"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"-dependencies = [- "serde_derive",-]--[[package]]-name = "serde_derive"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.3",-]--[[package]]-name = "serde_json"-version = "1.0.151"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"-dependencies = [- "itoa",- "memchr",- "serde",- "serde_core",- "zmij",-]--[[package]]-name = "syn"-version = "2.0.119"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "syn"-version = "3.0.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "thiserror"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"-dependencies = [- "thiserror-impl",-]--[[package]]-name = "thiserror-impl"-version = "1.0.69"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "unicode-ident"-version = "1.0.24"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"--[[package]]-name = "walkdir"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"-dependencies = [- "same-file",- "winapi-util",-]--[[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"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"--[[package]]-name = "windows-sys"-version = "0.45.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"-dependencies = [- "windows-targets",-]--[[package]]-name = "windows-sys"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"-dependencies = [- "windows-link",-]--[[package]]-name = "windows-targets"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"-dependencies = [- "windows_aarch64_gnullvm",- "windows_aarch64_msvc",- "windows_i686_gnu",- "windows_i686_msvc",- "windows_x86_64_gnu",- "windows_x86_64_gnullvm",- "windows_x86_64_msvc",-]--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"--[[package]]-name = "windows_aarch64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"--[[package]]-name = "windows_i686_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"--[[package]]-name = "windows_i686_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"--[[package]]-name = "windows_x86_64_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"--[[package]]-name = "windows_x86_64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"--[[package]]-name = "zmij"-version = "1.0.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
office/src/main/rust/Cargo.toml
diff --git a/office/src/main/rust/Cargo.toml b/office/src/main/rust/Cargo.tomlindex c4e875243b..a44dc34d82 100644--- a/office/src/main/rust/Cargo.toml+++ b/office/src/main/rust/Cargo.toml@@ -10,9 +10,9 @@ name = "office_engine" crate-type = ["cdylib", "rlib"] [dependencies]-jni = "0.21"-serde = { version = "1", features = ["derive"] }-serde_json = "1"+jni.workspace = true+serde.workspace = true+serde_json.workspace = true [profile.release] opt-level = 3
office/src/main/rust/rust-toolchain.toml
diff --git a/office/src/main/rust/rust-toolchain.toml b/office/src/main/rust/rust-toolchain.tomldeleted file mode 100644index fa6ac3abd8..0000000000--- a/office/src/main/rust/rust-toolchain.toml+++ /dev/null@@ -1,3 +0,0 @@-[toolchain]-channel = "1.97.0"-targets = ["aarch64-linux-android"]
passwords/src/main/rust/Cargo.lock
diff --git a/passwords/src/main/rust/Cargo.lock b/passwords/src/main/rust/Cargo.lockdeleted file mode 10
Diff truncated.