From fd421b9982815a2967e221e055bd1f10c6e7c27e Mon Sep 17 00:00:00 2001 From: faumaray Date: Tue, 27 Oct 2026 01:43:30 +0300 Subject: [PATCH] spikes/gpui/video: spike 1, decoded video as BGRA RenderImages in img() video.rs' delivery (deliver, FrameSlot, Handoff, Buffers; video.rs:360-480) ported to GPUI: the decoder hands over its newest frame only, a converter thread turns it into an Arc (BGRA, spike_common::bgra), the window takes the newest from a Latest in render and drops the one it replaces from every window's atlas (cx.drop_image). A RenderImage owns its pixels with no way back to them, so Buffers' reuse cannot be ported. Sources: --mode pipeline is LocalPreview with SourceId::Synthetic through the real VP8 encoder and decoder, as Video::demo; --mode raw hands I420 frames from memory to the converter; --mode static (added in this attempt) is the control: one picture, uploaded once, the window repainted every frame. --convert rgba measures voelin-media's conversion in place, --no-drop is the negative control for drop_image, --bench times RGBA against BGRA. measure.sh runs every case on the headless display, with damage-count beside it and the Slint app's demo stream for comparison. Co-Authored-By: Claude Opus 5.5 --- spikes/gpui/Cargo.lock | 2710 +++++++++++++++++++++++++++++- spikes/gpui/Cargo.toml | 2 +- spikes/gpui/video/Cargo.toml | 23 + spikes/gpui/video/README.md | 63 + spikes/gpui/video/measure.sh | 87 + spikes/gpui/video/src/convert.rs | 90 + spikes/gpui/video/src/frames.rs | 160 ++ spikes/gpui/video/src/main.rs | 352 ++++ 8 files changed, 3458 insertions(+), 29 deletions(-) create mode 100644 spikes/gpui/video/Cargo.toml create mode 100644 spikes/gpui/video/README.md create mode 100755 spikes/gpui/video/measure.sh create mode 100644 spikes/gpui/video/src/convert.rs create mode 100644 spikes/gpui/video/src/frames.rs create mode 100644 spikes/gpui/video/src/main.rs diff --git a/spikes/gpui/Cargo.lock b/spikes/gpui/Cargo.lock index 5ab069c..c377ab2 100644 --- a/spikes/gpui/Cargo.lock +++ b/spikes/gpui/Cargo.lock @@ -113,6 +113,26 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common 0.1.7", + "generic-array 0.14.7", +] + +[[package]] +name = "aead" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1973cfbc1a2daf9cf550e74e1f088c28e7f7d8c1e1418fb6c9dc5184b7e84c99" +dependencies = [ + "crypto-common 0.2.2", + "inout 0.2.2", +] + [[package]] name = "aes" version = "0.8.4" @@ -120,11 +140,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if", - "cipher", + "cipher 0.4.4", "cpufeatures 0.2.17", "zeroize", ] +[[package]] +name = "aes" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35f0f96ce78e38c3dc6d8948aa8163d06385be74000f3c7a95bf1eef35d3ea32" +dependencies = [ + "cipher 0.5.2", + "cpubits", + "cpufeatures 0.3.1", + "zeroize", +] + +[[package]] +name = "aes-gcm" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f2b8006a0c83f52b62ba44a97b58bf76fe2f70a329e588f67f89691d93d498f" +dependencies = [ + "aead 0.6.1", + "aes 0.9.3", + "cipher 0.5.2", + "ctr 0.10.1", + "ctutils", + "ghash", + "zeroize", +] + [[package]] name = "ahash" version = "0.8.12" @@ -273,6 +320,18 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "argon2" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "134c52ddac6d63c576bef8168db10c83c49c26444ecbc68060fef078925a901c" +dependencies = [ + "base64ct", + "blake2", + "cpufeatures 0.3.1", + "password-hash", +] + [[package]] name = "arraydeque" version = "0.5.1" @@ -333,6 +392,45 @@ dependencies = [ "zbus", ] +[[package]] +name = "asn1-rs" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f43a50ac4fdca5df8e885c21b835997f0a1cdee65494a6847694a98652d9d8" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom 7.1.3", + "num-traits", + "rusticata-macros", + "thiserror 2.0.21", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure 0.13.2", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "async-broadcast" version = "0.7.2" @@ -529,6 +627,39 @@ dependencies = [ "zbus", ] +[[package]] +name = "audio-codec-algorithms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1254ebf6529f3763c491acfb5ab6e960809e3c75a38584cc664f8c5667fb7107" + +[[package]] +name = "audioadapter" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1292ef9edf681b7426ed089004b021a42896492f58bd0c909ad44e5faec9ac4" + +[[package]] +name = "audioadapter-buffers" +version = "5.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46289a81a3bfa26d0f8b2415f8ca9decde9a66308a150568af5c102381b3c8ce" +dependencies = [ + "audioadapter", + "audioadapter-sample", + "num-traits", +] + +[[package]] +name = "audioadapter-sample" +version = "5.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5258faecf4edbe35ec483bda9b1f7438e6b391891819269c6b5461aeaa0e8d7d" +dependencies = [ + "audio-codec-algorithms", + "num-traits", +] + [[package]] name = "autocfg" version = "1.5.1" @@ -577,7 +708,7 @@ dependencies = [ "anyhow", "arrayvec", "log", - "nom", + "nom 8.0.0", "num-rational", "v_frame", ] @@ -591,6 +722,30 @@ dependencies = [ "arrayvec", ] +[[package]] +name = "aws-lc-rs" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b281d307588d634de920874890732659e2e7672f72b5e10e81badc1a8a83621e" +dependencies = [ + "aws-lc-sys", + "untrusted 0.7.1", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bff6c3b54fad79a2e60b8102caf565819711497c1f5f092f49508e2f5c31b27" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", + "pkg-config", +] + [[package]] name = "backtrace" version = "0.3.76" @@ -606,6 +761,18 @@ dependencies = [ "windows-link 0.2.1", ] +[[package]] +name = "base16ct" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" + +[[package]] +name = "base16ct" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6" + [[package]] name = "base62" version = "2.2.6" @@ -630,20 +797,40 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" +[[package]] +name = "bcrypt-pbkdf" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "144e573728da132683b9488acd528274c790e07fc06ff81ee29f9d8f8b1041e0" +dependencies = [ + "blowfish", + "pbkdf2 0.13.0", + "sha2 0.11.0", +] + [[package]] name = "bit-set" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd" dependencies = [ - "bit-vec", + "bit-vec 0.9.1", ] +[[package]] +name = "bit-vec" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" + [[package]] name = "bit-vec" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51" +dependencies = [ + "serde", +] [[package]] name = "bit_field" @@ -662,6 +849,9 @@ name = "bitflags" version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +dependencies = [ + "serde_core", +] [[package]] name = "bitstream-io" @@ -672,6 +862,15 @@ dependencies = [ "no_std_io2", ] +[[package]] +name = "blake2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b5d4d889834ee8ecfc0f8426ad30faf7cdcb10f741a8e6d7224d95325479f6f" +dependencies = [ + "digest 0.11.3", +] + [[package]] name = "block" version = "0.1.6" @@ -684,7 +883,7 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array", + "generic-array 0.14.7", ] [[package]] @@ -694,6 +893,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" dependencies = [ "hybrid-array", + "zeroize", ] [[package]] @@ -702,7 +902,16 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93" dependencies = [ - "generic-array", + "generic-array 0.14.7", +] + +[[package]] +name = "block-padding" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "710f1dd022ef4e93f8a438b4ba958de7f64308434fa6a87104481645cc30068b" +dependencies = [ + "hybrid-array", ] [[package]] @@ -736,6 +945,16 @@ dependencies = [ "piper", ] +[[package]] +name = "blowfish" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62ce3946557b35e71d1bbe07ec385073ce9eda05043f95de134eb578fcf1a298" +dependencies = [ + "byteorder", + "cipher 0.5.2", +] + [[package]] name = "bstr" version = "1.13.1" @@ -834,7 +1053,16 @@ 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]] @@ -867,6 +1095,18 @@ dependencies = [ "shlex", ] +[[package]] +name = "ccm" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae3c82e4355234767756212c570e29833699ab63e6ffd161887314cc5b43847" +dependencies = [ + "aead 0.5.2", + "cipher 0.4.4", + "ctr 0.9.2", + "subtle", +] + [[package]] name = "cfg-expr" version = "0.20.9" @@ -896,8 +1136,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" dependencies = [ "cfg-if", + "cipher 0.5.2", "cpufeatures 0.3.1", "rand_core 0.10.1", + "zeroize", ] [[package]] @@ -921,10 +1163,48 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common 0.1.7", - "inout", + "inout 0.1.4", "zeroize", ] +[[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", + "zeroize", +] + +[[package]] +name = "cmac" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8543454e3c3f5126effff9cd44d562af4e31fb8ce1cc0d3dcd8f084515dbc1aa" +dependencies = [ + "cipher 0.4.4", + "dbl", + "digest 0.10.7", +] + +[[package]] +name = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + +[[package]] +name = "cmov" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" + [[package]] name = "cocoa" version = "0.25.0" @@ -1036,6 +1316,12 @@ dependencies = [ "wasm-bindgen", ] +[[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" @@ -1209,6 +1495,12 @@ dependencies = [ "unicode-segmentation", ] +[[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" @@ -1251,6 +1543,21 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "critical-section" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" + +[[package]] +name = "crossbeam-channel" +version = "0.5.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "crossbeam-deque" version = "0.8.8" @@ -1282,13 +1589,54 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" +[[package]] +name = "crypto-bigint" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" +dependencies = [ + "generic-array 0.14.7", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-bigint" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96272c2ff28b807e09250b180ad1fb7889a3258f7455759b5c3c58b719467130" +dependencies = [ + "num-traits", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "crypto-bigint" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc907c45bb7e9ef8fc3778defd0f3cd8c81288f1b4e748eba064948f20c47122" +dependencies = [ + "cpubits", + "ctutils", + "getrandom 0.4.3", + "hybrid-array", + "num-traits", + "rand_core 0.10.1", + "serdect", + "subtle", + "zeroize", +] + [[package]] name = "crypto-common" version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" dependencies = [ - "generic-array", + "generic-array 0.14.7", + "rand_core 0.6.4", "typenum", ] @@ -1298,7 +1646,40 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" dependencies = [ + "getrandom 0.4.3", "hybrid-array", + "rand_core 0.10.1", +] + +[[package]] +name = "crypto-primes" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3633a51a39c69ebbaa4feaa694bd83d241e4093901c84a0963b19d9bb3f0cf8f" +dependencies = [ + "crypto-bigint 0.7.7", + "rand_core 0.10.1", +] + +[[package]] +name = "csv" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52cd9d68cf7efc6ddfaaee42e7288d3a99d613d4b50f76ce9827ae0c6e14f938" +dependencies = [ + "csv-core", + "itoa", + "ryu", + "serde_core", +] + +[[package]] +name = "csv-core" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "704a3c26996a80471189265814dbc2c257598b96b8a7feae2d31ace646bb9782" +dependencies = [ + "memchr", ] [[package]] @@ -1311,6 +1692,84 @@ dependencies = [ "linktime-proc-macro", ] +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher 0.4.4", +] + +[[package]] +name = "ctr" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baaca1c4b237092596f64d571e9db6ce4109c4ef9742e27590f1709594461f21" +dependencies = [ + "cipher 0.5.2", +] + +[[package]] +name = "ctutils" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38d28fb6aa7dd680b3ffd1a3e64e115c177bdba63c0ae7f9cd48129ff05c4fa0" +dependencies = [ + "cmov", + "subtle", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "curve25519-dalek-derive", + "fiat-crypto 0.2.9", + "rand_core 0.6.4", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5eed333089e2e1c1ac8c6c0398e5e2497b4c9926ca6d0365ed1e099afa5bc23" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "curve25519-dalek-derive", + "digest 0.11.3", + "fiat-crypto 0.3.0", + "rand_core 0.10.1", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "data-encoding" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" + [[package]] name = "data-url" version = "0.3.2" @@ -1339,6 +1798,15 @@ dependencies = [ "system-deps", ] +[[package]] +name = "dbl" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd2735a791158376708f9347fe8faba9667589d82427ef3aed6794a8981de3d9" +dependencies = [ + "generic-array 0.14.7", +] + [[package]] name = "defmt" version = "1.2.0" @@ -1370,11 +1838,87 @@ dependencies = [ "thiserror 2.0.21", ] +[[package]] +name = "delegate" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "780eb241654bf097afb00fc5f054a09b687dad862e485fdcf8399bb056565370" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "der" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +dependencies = [ + "const-oid 0.9.6", + "der_derive 0.7.3", + "flagset", + "pem-rfc7468 0.7.0", + "zeroize", +] + +[[package]] +name = "der" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a878c850e9e421b20262e9b41f9c860e4785fa07541c266b62ff9d1ef998a80a" +dependencies = [ + "const-oid 0.10.2", + "der_derive 0.8.0", + "flagset", + "pem-rfc7468 1.0.0", + "zeroize", +] + +[[package]] +name = "der-parser" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom 7.1.3", + "num-bigint 0.4.8", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "der_derive" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "der_derive" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59600e2c2d636fde9b65e99cc6445ac770c63d3628195ff39932b8d6d7409903" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "deranged" version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "serde_core", +] [[package]] name = "derive_more" @@ -1396,6 +1940,16 @@ dependencies = [ "quote", "rustc_version", "syn 2.0.119", + "unicode-xid", +] + +[[package]] +name = "des" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a94e407b54f9034d71dd748234cd1e516ced6284009906ae246f177eafe5a" +dependencies = [ + "cipher 0.5.2", ] [[package]] @@ -1405,6 +1959,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer 0.10.4", + "const-oid 0.9.6", "crypto-common 0.1.7", "subtle", ] @@ -1416,21 +1971,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" dependencies = [ "block-buffer 0.12.1", - "const-oid", + "const-oid 0.10.2", "crypto-common 0.2.2", + "ctutils", ] [[package]] name = "dimpl" version = "0.7.4" dependencies = [ + "aes 0.8.4", "arrayvec", + "aws-lc-rs", + "ccm", + "der 0.7.10", "log", - "nom", + "nom 8.0.0", "once_cell", + "pkcs8 0.10.2", "rand 0.9.5", + "rcgen", + "sec1 0.7.3", + "signature 2.2.0", + "spki 0.7.3", "subtle", "time", + "x509-cert 0.2.5", ] [[package]] @@ -1551,12 +2117,123 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" +[[package]] +name = "eax" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9954fabd903b82b9d7a68f65f97dc96dd9ad368e40ccc907a7c19d53e6bfac28" +dependencies = [ + "aead 0.5.2", + "cipher 0.4.4", + "cmac", + "ctr 0.9.2", + "subtle", +] + +[[package]] +name = "ecdsa" +version = "0.16.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" +dependencies = [ + "der 0.7.10", + "digest 0.10.7", + "elliptic-curve 0.13.8", + "rfc6979 0.4.0", + "signature 2.2.0", + "spki 0.7.3", +] + +[[package]] +name = "ecdsa" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0681a4fc24c767085329728d8dfba959af91228aa4610cca4f8ce317ba46ae0" +dependencies = [ + "der 0.8.2", + "digest 0.11.3", + "elliptic-curve 0.14.1", + "rfc6979 0.6.0", + "signature 3.0.0", + "spki 0.8.0", + "zeroize", +] + +[[package]] +name = "ed25519" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a" +dependencies = [ + "pkcs8 0.11.0", + "signature 3.0.0", +] + +[[package]] +name = "ed25519-dalek" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de" +dependencies = [ + "curve25519-dalek 5.0.0", + "ed25519", + "rand_core 0.10.1", + "serde", + "sha2 0.11.0", + "signature 3.0.0", + "subtle", + "zeroize", +] + [[package]] name = "either" version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34" +[[package]] +name = "elliptic-curve" +version = "0.13.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" +dependencies = [ + "base16ct 0.2.0", + "crypto-bigint 0.5.5", + "digest 0.10.7", + "ff 0.13.1", + "generic-array 0.14.7", + "group 0.13.0", + "hkdf 0.12.4", + "pem-rfc7468 0.7.0", + "pkcs8 0.10.2", + "rand_core 0.6.4", + "sec1 0.7.3", + "subtle", + "zeroize", +] + +[[package]] +name = "elliptic-curve" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d65aa39b3a5c1c9c1b745c9a019234bb7a21b77abcb4f4d266d706e2d577d65" +dependencies = [ + "base16ct 1.0.0", + "crypto-bigint 0.7.7", + "crypto-common 0.2.2", + "digest 0.11.3", + "ff 0.14.0", + "group 0.14.0", + "hkdf 0.13.0", + "hybrid-array", + "pem-rfc7468 1.0.0", + "pkcs8 0.11.0", + "rand_core 0.10.1", + "sec1 0.8.1", + "subtle", + "zeroize", +] + [[package]] name = "embed-resource" version = "3.0.12" @@ -1620,6 +2297,18 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "enum_dispatch" +version = "0.3.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" +dependencies = [ + "once_cell", + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "enumflags2" version = "0.7.12" @@ -1767,6 +2456,18 @@ dependencies = [ "zune-inflate", ] +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + [[package]] name = "fastrand" version = "2.5.0" @@ -1788,6 +2489,38 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "ff" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "ff" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f" +dependencies = [ + "rand_core 0.10.1", + "subtle", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "fiat-crypto" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24" + [[package]] name = "filedescriptor" version = "0.8.3" @@ -1805,6 +2538,12 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" +[[package]] +name = "flagset" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7ac824320a75a52197e8f2d787f6a38b6718bb6897a35142d749af3c0e8f4fe" + [[package]] name = "flate2" version = "1.1.10" @@ -1960,6 +2699,12 @@ dependencies = [ "pkg-config", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + [[package]] name = "futf" version = "0.1.5" @@ -2079,6 +2824,18 @@ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", + "zeroize", +] + +[[package]] +name = "generic-array" +version = "1.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "337d46834ee672ab3e48caca2cb0c78cc174fb12b3a68d0d88f99a0519a5e36e" +dependencies = [ + "generic-array 0.14.7", + "rustversion", + "typenum", ] [[package]] @@ -2132,6 +2889,16 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "ghash" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2eecf2d5dc9b66b732b97707a0210906b1d30523eb773193ab777c0c84b3e8d5" +dependencies = [ + "polyval", + "zeroize", +] + [[package]] name = "gif" version = "0.13.3" @@ -2158,6 +2925,28 @@ version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" +[[package]] +name = "git-testament" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a74999c921479f919c87a9d2e6922a79a18683f18105344df8e067149232e51" +dependencies = [ + "git-testament-derive", +] + +[[package]] +name = "git-testament-derive" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbeac967e71eb3dc1656742fc7521ec7cd3b6b88738face65bf1fddf702bc4c0" +dependencies = [ + "log", + "proc-macro2", + "quote", + "syn 2.0.119", + "time", +] + [[package]] name = "gl_generator" version = "0.14.0" @@ -2689,7 +3478,7 @@ dependencies = [ "serde_json", "serde_urlencoded", "sync_wrapper", - "system-configuration", + "system-configuration 0.6.1", "tokio", "tokio-rustls", "tokio-socks", @@ -2868,6 +3657,28 @@ dependencies = [ "smallvec", ] +[[package]] +name = "group" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +dependencies = [ + "ff 0.13.1", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "group" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4" +dependencies = [ + "ff 0.14.0", + "rand_core 0.10.1", + "subtle", +] + [[package]] name = "h2" version = "0.4.19" @@ -2952,6 +3763,18 @@ name = "hashbrown" version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +dependencies = [ + "foldhash 0.2.0", +] + +[[package]] +name = "hashlink" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a596f1b20ed2cc5ecac41a164aaebc7258057060f06c0cf7a2ba3991ee7990fb" +dependencies = [ + "hashbrown 0.17.1", +] [[package]] name = "heapless" @@ -2987,19 +3810,104 @@ 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 = "hexf-parse" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" +[[package]] +name = "hickory-net" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c480823ed7c2c5d0f09c41020cb6b7c28029ce60ec42dc942158dcf22f8e0a4d" +dependencies = [ + "async-trait", + "cfg-if", + "data-encoding", + "futures-channel", + "futures-io", + "futures-util", + "hickory-proto", + "idna", + "ipnet", + "jni", + "rand 0.10.3", + "thiserror 2.0.21", + "tinyvec", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "hickory-proto" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12b92608f679a6fa515dd1d15c1ff89443026e391200a2c840c7afcba482893d" +dependencies = [ + "data-encoding", + "idna", + "ipnet", + "jni", + "once_cell", + "prefix-trie", + "rand 0.10.3", + "ring", + "thiserror 2.0.21", + "tinyvec", + "tracing", + "url", +] + +[[package]] +name = "hickory-resolver" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f3da5255c95d5a716857d54b5b8f4e8d67c3484d3beaaaae2ce25063b3ba981" +dependencies = [ + "cfg-if", + "futures-util", + "hickory-net", + "hickory-proto", + "ipconfig", + "ipnet", + "jni", + "moka", + "ndk-context", + "once_cell", + "parking_lot", + "rand 0.10.3", + "resolv-conf", + "smallvec", + "system-configuration 0.7.0", + "thiserror 2.0.21", + "tokio", + "tracing", +] + [[package]] name = "hkdf" version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ - "hmac", + "hmac 0.12.1", +] + +[[package]] +name = "hkdf" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aaa26c720c68b866f2c96ef5c1264b3e6f473fe5d4ce61cd44bbe913e553018" +dependencies = [ + "hmac 0.13.0", ] [[package]] @@ -3011,6 +3919,21 @@ dependencies = [ "digest 0.10.7", ] +[[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 = "hound" +version = "3.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f" + [[package]] name = "html5ever" version = "0.27.0" @@ -3064,13 +3987,22 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + [[package]] name = "hybrid-array" version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17" dependencies = [ + "ctutils", + "subtle", "typenum", + "zeroize", ] [[package]] @@ -3116,6 +4048,7 @@ version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" dependencies = [ + "base64 0.23.1", "bytes", "futures-channel", "futures-util", @@ -3123,12 +4056,16 @@ dependencies = [ "http-body", "httparse", "hyper", + "ipnet", "libc", + "percent-encoding", "pin-project-lite", "socket2", + "system-configuration 0.7.0", "tokio", "tower-service", "tracing", + "windows-registry 0.6.1", ] [[package]] @@ -3364,8 +4301,18 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ - "block-padding", - "generic-array", + "block-padding 0.3.3", + "generic-array 0.14.7", +] + +[[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]] @@ -3400,11 +4347,27 @@ dependencies = [ "rustversion", ] +[[package]] +name = "ipconfig" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d40460c0ce33d6ce4b0630ad68ff63d6661961c48b6dba35e5a4d81cfb48222" +dependencies = [ + "socket2", + "widestring", + "windows-registry 0.6.1", + "windows-result 0.4.1", + "windows-sys 0.61.2", +] + [[package]] name = "ipnet" version = "2.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" +dependencies = [ + "serde", +] [[package]] name = "is" @@ -3514,6 +4477,36 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.21", + "walkdir", + "windows-link 0.2.1", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + [[package]] name = "jni-sys" version = "0.3.1" @@ -3563,6 +4556,26 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "keccak" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8f198d1db720e4940b5a493201d199d9f24f568f8f746bd13706243a2f71598" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", +] + +[[package]] +name = "kem" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01737161ba802849cfd486b5bd209d38ba4943494c249a8126005170c7621edd" +dependencies = [ + "crypto-common 0.2.2", + "rand_core 0.10.1", +] + [[package]] name = "khronos-egl" version = "6.0.0" @@ -3667,6 +4680,17 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" +[[package]] +name = "libopus_sys" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b81c32f233fb2507347a93f97b9919493be9db7ec2249ce2c3ed0c89ad8edf60" +dependencies = [ + "cmake", + "log", + "pkg-config", +] + [[package]] name = "libredox" version = "0.1.25" @@ -3676,6 +4700,17 @@ dependencies = [ "libc", ] +[[package]] +name = "libsqlite3-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d20bef17f513b9b3004532233187769cd072d790971f4e4da0e346eb6401e8" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + [[package]] name = "libvpx-native-sys" version = "5.0.17" @@ -3911,6 +4946,12 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "md5" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebb8d8732c6a6df3d8f032a82911cfc747e00efb95cc46e8d0acd5b5b88570c" + [[package]] name = "memchr" version = "2.8.3" @@ -3966,6 +5007,12 @@ dependencies = [ "unicase", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" version = "0.8.9" @@ -3998,6 +5045,48 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "ml-kem" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e15f3e5b957493873e396a66914e83e616b6afe335cdef7efe5c6e1216aba66" +dependencies = [ + "hybrid-array", + "kem", + "module-lattice", + "pkcs8 0.11.0", + "rand_core 0.10.1", + "sha3 0.11.0", +] + +[[package]] +name = "module-lattice" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c61b87c9683ab7cb1c6871d261ad5479b6b10ceb52c4352aaca3b5d35a8febe" +dependencies = [ + "ctutils", + "hybrid-array", + "num-traits", +] + +[[package]] +name = "moka" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4293f18e7567a1caf3c584855554377025c65e0aa445344d04171f5ad63d19b9" +dependencies = [ + "crossbeam-channel", + "crossbeam-epoch", + "crossbeam-utils", + "equivalent", + "parking_lot", + "portable-atomic", + "smallvec", + "tagptr", + "uuid", +] + [[package]] name = "moxcms" version = "0.8.1" @@ -4054,6 +5143,12 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + [[package]] name = "ndk-sys" version = "0.6.0+11769913" @@ -4069,6 +5164,18 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" +[[package]] +name = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "no_std_io2" version = "0.9.4" @@ -4084,6 +5191,16 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + [[package]] name = "nom" version = "8.0.0" @@ -4165,7 +5282,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" dependencies = [ - "num-bigint", + "num-bigint 0.4.8", "num-complex", "num-integer", "num-iter", @@ -4183,6 +5300,18 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-bigint" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93e7820bc0a80a0238e650327316f929ba18d5be054b647490a3a6a339f3e7c0" +dependencies = [ + "num-integer", + "num-traits", + "rand 0.10.3", + "rand_core 0.10.1", +] + [[package]] name = "num-bigint-dig" version = "0.9.1" @@ -4252,7 +5381,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" dependencies = [ - "num-bigint", + "num-bigint 0.4.8", "num-integer", "num-traits", ] @@ -4638,11 +5767,33 @@ dependencies = [ "memchr", ] +[[package]] +name = "oid-registry" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7" +dependencies = [ + "asn1-rs", +] + +[[package]] +name = "omnom" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66562a92c66d5937e9d549597c2d3cafe3d2367dd08dc257da730587c2cfc218" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +dependencies = [ + "critical-section", + "portable-atomic", +] [[package]] name = "once_cell_polyfill" @@ -4656,25 +5807,25 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78f2bfed90f1618b4b48dcad9307f25e14ae894e2949642c87c351601d62cebd" dependencies = [ - "aes", + "aes 0.8.4", "ashpd", "async-fs", "async-io", "async-lock", "blocking", - "cbc", - "cipher", + "cbc 0.1.2", + "cipher 0.4.4", "digest 0.10.7", "endi", "futures-lite", "futures-util", "getrandom 0.4.3", - "hkdf", - "hmac", + "hkdf 0.12.4", + "hmac 0.12.1", "md-5", "num", "num-bigint-dig", - "pbkdf2", + "pbkdf2 0.12.2", "serde", "serde_bytes", "sha2 0.10.9", @@ -4727,6 +5878,15 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "opus2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49521e33fbf825d2abc8d696506c278cb8469d0c6cc05d3785bef5c5f7ee957b" +dependencies = [ + "libopus_sys", +] + [[package]] name = "ordered-float" version = "5.5.0" @@ -4755,6 +5915,79 @@ dependencies = [ "ttf-parser", ] +[[package]] +name = "p256" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" +dependencies = [ + "ecdsa 0.16.9", + "elliptic-curve 0.13.8", + "primeorder 0.13.6", + "sha2 0.10.9", +] + +[[package]] +name = "p256" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2c9239b2dbc807adbbe147e8cf72ea7450c3a0aabe62cb8e75ff4ec22e1f72a" +dependencies = [ + "ecdsa 0.17.0", + "elliptic-curve 0.14.1", + "primefield", + "primeorder 0.14.0", + "sha2 0.11.0", +] + +[[package]] +name = "p384" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d17b851e6b3e378ab4ecb07fa2ed23f4d15f075735f8fec9fa1e7bdce5f8301f" +dependencies = [ + "ecdsa 0.17.0", + "elliptic-curve 0.14.1", + "fiat-crypto 0.3.0", + "primefield", + "primeorder 0.14.0", + "sha2 0.11.0", +] + +[[package]] +name = "p521" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ad64cc32c2dc466317c12ee5853e61f159f9eab1fe7efade0395dc2e7b43449" +dependencies = [ + "base16ct 1.0.0", + "ecdsa 0.17.0", + "elliptic-curve 0.14.1", + "primefield", + "primeorder 0.14.0", + "sha2 0.11.0", +] + +[[package]] +name = "pageant" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d8eab09a361a4afe0b1668be978cd97e4f052e927a92b0b608cf902965d49ce" +dependencies = [ + "base16ct 1.0.0", + "byteorder", + "bytes", + "delegate", + "futures", + "log", + "rand 0.10.3", + "sha2 0.11.0", + "thiserror 2.0.21", + "tokio", + "windows 0.62.2", + "windows-strings 0.5.1", +] + [[package]] name = "parking" version = "2.2.1" @@ -4784,6 +6017,15 @@ dependencies = [ "windows-link 0.2.1", ] +[[package]] +name = "password-hash" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aab41826031698d6ffcd9cff78ef56ef998e39dc7e5067cdfebe373842d4723b" +dependencies = [ + "phc", +] + [[package]] name = "paste" version = "1.0.15" @@ -4822,7 +6064,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ "digest 0.10.7", - "hmac", + "hmac 0.12.1", +] + +[[package]] +name = "pbkdf2" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112d82ceb8c5bf524d9af484d4e4970c9fd5a0cc15ba14ad93dccd28873b0629" +dependencies = [ + "digest 0.11.3", + "hmac 0.13.0", +] + +[[package]] +name = "pem-rfc7468" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" +dependencies = [ + "base64ct", +] + +[[package]] +name = "pem-rfc7468" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6305423e0e7738146434843d1694d621cce767262b2a86910beab705e4493d9" +dependencies = [ + "base64ct", ] [[package]] @@ -4841,6 +6111,16 @@ dependencies = [ "ucd-trie", ] +[[package]] +name = "phc" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44dc769b75f93afdddd8c7fa12d685292ddeff1e66f7f0f3a234cf1818afe892" +dependencies = [ + "base64ct", + "ctutils", +] + [[package]] name = "phf" version = "0.11.3" @@ -4954,6 +6234,12 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + [[package]] name = "piper" version = "0.2.5" @@ -4965,6 +6251,55 @@ dependencies = [ "futures-io", ] +[[package]] +name = "pkcs1" +version = "0.8.0-rc.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "986d2e952779af96ea048f160fd9194e1751b4faea78bcf3ceb456efe008088e" +dependencies = [ + "der 0.8.2", + "spki 0.8.0", +] + +[[package]] +name = "pkcs5" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63d440a804ec8d6fafbb6b84471e013286658d373248927692ab3366686220ca" +dependencies = [ + "aes 0.9.3", + "aes-gcm", + "cbc 0.2.1", + "der 0.8.2", + "pbkdf2 0.13.0", + "rand_core 0.10.1", + "scrypt", + "sha2 0.11.0", + "spki 0.8.0", +] + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der 0.7.10", + "spki 0.7.3", +] + +[[package]] +name = "pkcs8" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7" +dependencies = [ + "der 0.8.2", + "pkcs5", + "rand_core 0.10.1", + "spki 0.8.0", +] + [[package]] name = "pkg-config" version = "0.3.34" @@ -5017,6 +6352,17 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" +[[package]] +name = "poly1305" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2d0073b297041425c7c3df6eb4792d598a15323fe63346852b092eca02904c" +dependencies = [ + "cpufeatures 0.3.1", + "universal-hash", + "zeroize", +] + [[package]] name = "polycool" version = "0.4.0" @@ -5026,6 +6372,18 @@ dependencies = [ "arrayvec", ] +[[package]] +name = "polyval" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0fa31d631f2b2cb2a544d0aa321ce847a94764d701ca2becc411138b93d49cd" +dependencies = [ + "cpubits", + "cpufeatures 0.3.1", + "universal-hash", + "zeroize", +] + [[package]] name = "portable-atomic" version = "1.15.0" @@ -5071,12 +6429,68 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" +[[package]] +name = "prefix-trie" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cf6e3177f0684016a5c209b00882e15f8bdd3f3bb48f0491df10cd102d0c6e7" +dependencies = [ + "either", + "ipnet", + "num-traits", +] + [[package]] name = "presser" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" +[[package]] +name = "primal-check" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc0d895b311e3af9902528fbb8f928688abbd95872819320517cc24ca6b2bd08" +dependencies = [ + "num-integer", +] + +[[package]] +name = "primefield" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c555a6e4eb7d4e158fcb028c835c3b8642206ddc279b5c6b202ef9a8bdb592f4" +dependencies = [ + "crypto-bigint 0.7.7", + "crypto-common 0.2.2", + "ff 0.14.0", + "rand_core 0.10.1", + "subtle", + "zeroize", +] + +[[package]] +name = "primeorder" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" +dependencies = [ + "elliptic-curve 0.13.8", +] + +[[package]] +name = "primeorder" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c9f42978c78a00e3d68f69fc03e57a234debae69da4020a4fb588fcdcd07b06" +dependencies = [ + "elliptic-curve 0.14.1", + "once_cell", + "primefield", + "serdect", + "wnaf", +] + [[package]] name = "proc-macro-crate" version = "3.5.0" @@ -5114,6 +6528,29 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "prost" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "528ac67416ff8646872a3c02cad9cc4ee5dc9f9540c9b10771855c95cb2e5ae1" +dependencies = [ + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-derive" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf" +dependencies = [ + "anyhow", + "itertools 0.14.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "pulp" version = "0.22.3" @@ -5167,6 +6604,17 @@ dependencies = [ "memchr", ] +[[package]] +name = "quicklz" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "750eab265a26a0cd064f2a2b222bf172cc06d7a873e113e5f6d0118cc6e5fbb1" +dependencies = [ + "bit-vec 0.6.3", + "byteorder", + "thiserror 1.0.69", +] + [[package]] name = "quinn" version = "0.11.12" @@ -5193,6 +6641,7 @@ version = "0.11.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc" dependencies = [ + "aws-lc-rs", "bytes", "getrandom 0.4.3", "lru-slab", @@ -5438,6 +6887,19 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "rcgen" +version = "0.14.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8774e05a7d0de114588e6a28fe7e71694b82614ed569d86d8b389dfbc98b8ad8" +dependencies = [ + "aws-lc-rs", + "rustls-pki-types", + "time", + "x509-parser", + "yasna", +] + [[package]] name = "read-fonts" version = "0.37.0" @@ -5460,6 +6922,15 @@ dependencies = [ "once_cell", ] +[[package]] +name = "realfft" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f821338fddb99d089116342c46e9f1fbf3828dba077674613e734e01d6ea8677" +dependencies = [ + "rustfft", +] + [[package]] name = "reborrow" version = "0.5.5" @@ -5551,6 +7022,53 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" +[[package]] +name = "reqwest" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" +dependencies = [ + "base64 0.23.1", + "bytes", + "encoding_rs", + "futures-core", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "mime", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "resolv-conf" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7" + [[package]] name = "resvg" version = "0.45.1" @@ -5585,6 +7103,26 @@ dependencies = [ "zune-jpeg 0.5.15", ] +[[package]] +name = "rfc6979" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +dependencies = [ + "hmac 0.12.1", + "subtle", +] + +[[package]] +name = "rfc6979" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4a459cddafb3fe76b31fd8f1108007566c40301feb64dc7b54656eb7388172b" +dependencies = [ + "crypto-bigint 0.7.7", + "hmac 0.13.0", +] + [[package]] name = "rgb" version = "0.8.53" @@ -5604,7 +7142,7 @@ dependencies = [ "cfg-if", "getrandom 0.2.17", "libc", - "untrusted", + "untrusted 0.9.0", "windows-sys 0.52.0", ] @@ -5632,12 +7170,167 @@ dependencies = [ "memchr", ] +[[package]] +name = "rsa" +version = "0.10.0-rc.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30b2aa4ba0d89f73d1e332df05be0eeab8840351c36ca5654341dfdb57bb3caf" +dependencies = [ + "const-oid 0.10.2", + "crypto-bigint 0.7.7", + "crypto-primes", + "digest 0.11.3", + "pkcs1", + "pkcs8 0.11.0", + "rand_core 0.10.1", + "sha2 0.11.0", + "signature 3.0.0", + "spki 0.8.0", + "zeroize", +] + +[[package]] +name = "rsqlite-vfs" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c51c9ae4df8a7fba42103df5c621fa3c37eccf3a3c650879e90fc48b11cc192c" +dependencies = [ + "hashbrown 0.16.1", + "thiserror 2.0.21", +] + [[package]] name = "rtrb" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9278fb35b3e730abe136e9b395b5b81b96d06b9f5478a50f0c8430a2237b22de" +[[package]] +name = "rubato" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7cb1ffaf8738df50aab642a7f6465df81c6ba9e2818268053487165298114be" +dependencies = [ + "audioadapter", + "audioadapter-buffers", + "num-complex", + "num-integer", + "num-traits", + "realfft", + "visibility", + "windowfunctions", +] + +[[package]] +name = "rusqlite" +version = "0.40.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23f2a97da3e3873c73cb2a2e71b35c40ff95e0b1eefa8d72d8499a6928c3b5b3" +dependencies = [ + "bitflags 2.13.2", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "smallvec", + "sqlite-wasm-rs", +] + +[[package]] +name = "russh" +version = "0.63.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "036204edbd199552a5b3832f63c60dcdf395dc44c7f06b4af1c0e8139cc11bce" +dependencies = [ + "aes 0.9.3", + "aws-lc-rs", + "bitflags 2.13.2", + "block-padding 0.4.2", + "byteorder", + "bytes", + "cbc 0.2.1", + "cipher 0.5.2", + "crypto-bigint 0.7.7", + "ctr 0.10.1", + "curve25519-dalek 5.0.0", + "data-encoding", + "delegate", + "der 0.8.2", + "digest 0.11.3", + "ecdsa 0.17.0", + "ed25519-dalek", + "elliptic-curve 0.14.1", + "enum_dispatch", + "flate2", + "futures", + "generic-array 1.4.5", + "getrandom 0.4.3", + "ghash", + "hex-literal", + "hmac 0.13.0", + "inout 0.2.2", + "keccak", + "log", + "md5", + "ml-kem", + "module-lattice", + "num-bigint 0.5.1", + "p256 0.14.0", + "p384", + "p521", + "pageant", + "pbkdf2 0.13.0", + "pkcs1", + "pkcs5", + "pkcs8 0.11.0", + "polyval", + "rand 0.10.3", + "rand_core 0.10.1", + "rsa", + "russh-cryptovec", + "russh-util", + "salsa20", + "scrypt", + "sec1 0.8.1", + "sha1", + "sha2 0.11.0", + "sha3 0.12.0", + "signature 3.0.0", + "spki 0.8.0", + "ssh-encoding", + "ssh-key", + "subtle", + "thiserror 2.0.21", + "tokio", + "typenum", + "universal-hash", + "zeroize", +] + +[[package]] +name = "russh-cryptovec" +version = "0.62.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3aec6cb630dbe85d72ffd7bcd95f07e1bd69f9f270ee8adfa1afe443a6331438" +dependencies = [ + "log", + "nix", + "ssh-encoding", + "windows-sys 0.61.2", +] + +[[package]] +name = "russh-util" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "668424a5dde0bcb45b55ba7de8476b93831b4aa2fa6947e145f3b053e22c60b6" +dependencies = [ + "chrono", + "tokio", + "wasm-bindgen", + "wasm-bindgen-futures", +] + [[package]] name = "rust-embed" version = "8.13.0" @@ -5750,6 +7443,29 @@ dependencies = [ "semver", ] +[[package]] +name = "rustfft" +version = "6.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21db5f9893e91f41798c88680037dba611ca6674703c1a18601b01a72c8adb89" +dependencies = [ + "num-complex", + "num-integer", + "num-traits", + "primal-check", + "strength_reduce", + "transpose", +] + +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom 7.1.3", +] + [[package]] name = "rustix" version = "1.1.5" @@ -5769,6 +7485,7 @@ version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ + "aws-lc-rs", "once_cell", "ring", "rustls-pki-types", @@ -5808,15 +7525,43 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-platform-verifier" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" + [[package]] name = "rustls-webpki" version = "0.103.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" dependencies = [ + "aws-lc-rs", "ring", "rustls-pki-types", - "untrusted", + "untrusted 0.9.0", ] [[package]] @@ -5858,6 +7603,16 @@ dependencies = [ "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 = "same-file" version = "1.0.6" @@ -5937,6 +7692,18 @@ dependencies = [ "once_cell", ] +[[package]] +name = "scrypt" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87af57419b594aa23fa95f09f0e06d80d84ba01c26148c43844cad6ff4485f0" +dependencies = [ + "cfg-if", + "pbkdf2 0.13.0", + "salsa20", + "sha2 0.11.0", +] + [[package]] name = "sctp-proto" version = "0.10.5" @@ -5958,6 +7725,34 @@ version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" +[[package]] +name = "sec1" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +dependencies = [ + "base16ct 0.2.0", + "der 0.7.10", + "generic-array 0.14.7", + "pkcs8 0.10.2", + "subtle", + "zeroize", +] + +[[package]] +name = "sec1" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56d437c2f19203ce5f7122e507831de96f3d2d4d3be5af44a0b0a09d8a80e4d" +dependencies = [ + "base16ct 1.0.0", + "ctutils", + "der 0.8.2", + "hybrid-array", + "subtle", + "zeroize", +] + [[package]] name = "security-framework" version = "3.7.0" @@ -6129,6 +7924,38 @@ dependencies = [ "serde", ] +[[package]] +name = "serdect" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66cf8fedced2fcf12406bcb34223dffb92eaf34908ede12fed414c82b7f00b3e" +dependencies = [ + "base16ct 1.0.0", + "serde", +] + +[[package]] +name = "sha-1" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5058ada175748e33390e40e872bd0fe59a19f265d0158daa551c5a88a76009c" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sha1" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "digest 0.11.3", +] + [[package]] name = "sha1_smol" version = "1.0.1" @@ -6157,6 +7984,27 @@ dependencies = [ "digest 0.11.3", ] +[[package]] +name = "sha3" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be176f1a57ce4e3d31c1a166222d9768de5954f811601fb7ca06fc8203905ce1" +dependencies = [ + "digest 0.11.3", + "keccak", +] + +[[package]] +name = "sha3" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc9bad02c26382724b2d2692c6f179285e4b54eeecd7968f52a50059c3c11759" +dependencies = [ + "digest 0.11.3", + "keccak", + "sponge-cursor", +] + [[package]] name = "shellexpand" version = "3.1.2" @@ -6182,12 +8030,42 @@ dependencies = [ "libc", ] +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest 0.10.7", + "rand_core 0.6.4", +] + +[[package]] +name = "signature" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5" +dependencies = [ + "digest 0.11.3", + "rand_core 0.10.1", +] + [[package]] name = "simd-adler32" version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + [[package]] name = "simd_helpers" version = "0.1.0" @@ -6213,6 +8091,18 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "simple_asn1" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d585997b0ac10be3c5ee635f1bab02d512760d14b7c468801ac8a01d9ae5f1d" +dependencies = [ + "num-bigint 0.4.8", + "num-traits", + "thiserror 2.0.21", + "time", +] + [[package]] name = "simplecss" version = "0.2.2" @@ -6305,6 +8195,79 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "sonora" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e1ce442ab5cb392c4067b8f2cced20be4cf12e479f6dfbf44acbe9b14ac9250" +dependencies = [ + "sonora-aec3", + "sonora-agc2", + "sonora-common-audio", + "sonora-ns", + "sonora-simd", + "tracing", +] + +[[package]] +name = "sonora-aec3" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50280e31256d09f7838aff6715ed4b7640e514dc1092a1e14013c01e552380db" +dependencies = [ + "sonora-common-audio", + "sonora-fft", + "sonora-simd", +] + +[[package]] +name = "sonora-agc2" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a93a9fa8373a33e61a7fb441d8a9e725ac6024079d2c77a845cf6abe1790b9f" +dependencies = [ + "bytemuck", + "derive_more", + "sonora-common-audio", + "sonora-fft", + "sonora-simd", + "tracing", +] + +[[package]] +name = "sonora-common-audio" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6635bc61b24807ceac93ad0807b1292b6b0620caa6cd360d3be89fc616b833cc" +dependencies = [ + "derive_more", + "sonora-simd", +] + +[[package]] +name = "sonora-fft" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27e272c70f34363afb5382dd1818c05f8f63ef6785635736a14e9ccbbb5ba012" + +[[package]] +name = "sonora-ns" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d511feef19302c716d245c4555087d161ba91c178735ea11107dcce0d0b7a86f" +dependencies = [ + "sonora-fft", +] + +[[package]] +name = "sonora-simd" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7cf0804e4752a5562262e143014f53043080ead4cd5a98f9278d3ceaf32d868" +dependencies = [ + "cpufeatures 0.3.1", +] + [[package]] name = "spike-common" version = "0.0.0" @@ -6321,6 +8284,22 @@ dependencies = [ "yuv", ] +[[package]] +name = "spike-video" +version = "0.0.0" +dependencies = [ + "anyhow", + "futures", + "gpui-kit", + "log", + "serde_json", + "spike-common", + "tokio", + "voelin-core", + "voelin-media", + "yuv", +] + [[package]] name = "spin" version = "0.9.9" @@ -6348,6 +8327,103 @@ dependencies = [ "bitflags 2.13.2", ] +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der 0.7.10", +] + +[[package]] +name = "spki" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d9efca8738c78ee9484207732f728b1ef517bbb1833d6fc0879ca898a522f6f" +dependencies = [ + "base64ct", + "der 0.8.2", +] + +[[package]] +name = "sponge-cursor" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a0219bd7d979d58245a4f41f695e1ac9f8befdffadd7f61f1bae9e39abc6620" + +[[package]] +name = "sqlite-wasm-rs" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc3efc0da82635d7e1ced0053bbbfa8c7ab9645d0bf36ceb4f7127bb85315d75" +dependencies = [ + "cc", + "js-sys", + "rsqlite-vfs", + "wasm-bindgen", +] + +[[package]] +name = "ssh-cipher" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d801accda99469cde6d73da741422610fdf6508a72d9a69d1b55cb241c720597" +dependencies = [ + "aead 0.6.1", + "aes 0.9.3", + "aes-gcm", + "chacha20", + "cipher 0.5.2", + "ctutils", + "des", + "poly1305", + "ssh-encoding", + "zeroize", +] + +[[package]] +name = "ssh-encoding" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b54d0ed0498daf3f78d82e00e28c8eec9d75a067c4cfbcc7a0f7d0f4077749e" +dependencies = [ + "base64ct", + "bytes", + "crypto-bigint 0.7.7", + "ctutils", + "digest 0.11.3", + "pem-rfc7468 1.0.0", + "zeroize", +] + +[[package]] +name = "ssh-key" +version = "0.7.0-rc.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9a32fae177b74a22aa9c5b01bf7e68b33545be32d9e381e248058d2adc15ce3" +dependencies = [ + "argon2", + "bcrypt-pbkdf", + "ctutils", + "ed25519-dalek", + "hex", + "hmac 0.13.0", + "p256 0.14.0", + "p384", + "p521", + "rand_core 0.10.1", + "rsa", + "sec1 0.8.1", + "sha1", + "sha2 0.11.0", + "signature 3.0.0", + "ssh-cipher", + "ssh-encoding", + "zeroize", +] + [[package]] name = "stable_deref_trait" version = "1.2.1" @@ -6374,12 +8450,25 @@ dependencies = [ "is", "sctp-proto", "serde", + "str0m-aws-lc-rs", "str0m-proto", "subtle", "time", "tracing", ] +[[package]] +name = "str0m-aws-lc-rs" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73269314334fc6bfa8024f09dd652b9f5068360bf623c871e3d8d18e26d8035a" +dependencies = [ + "aws-lc-rs", + "dimpl", + "str0m-proto", + "time", +] + [[package]] name = "str0m-proto" version = "0.7.0" @@ -6400,6 +8489,12 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d08889ec5408683408db66ad89e0e1f93dff55c73a4ccc71c427d5b277ee47e6" +[[package]] +name = "strength_reduce" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82" + [[package]] name = "strict-num" version = "0.1.1" @@ -6529,6 +8624,17 @@ dependencies = [ "futures-core", ] +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "synstructure" version = "0.14.0" @@ -6574,6 +8680,17 @@ dependencies = [ "system-configuration-sys", ] +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.9.4", + "system-configuration-sys", +] + [[package]] name = "system-configuration-sys" version = "0.6.0" @@ -6597,6 +8714,18 @@ dependencies = [ "version-compare", ] +[[package]] +name = "t4rust-derive" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e411692d6e0c8ce07f65a8210e95dcfb56cc4600940456592a49a3579ef6396" +dependencies = [ + "nom 7.1.3", + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "taffy" version = "0.13.0" @@ -6609,6 +8738,12 @@ dependencies = [ "smallvec", ] +[[package]] +name = "tagptr" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" + [[package]] name = "tao-core-video-sys" version = "0.2.0" @@ -6816,10 +8951,24 @@ dependencies = [ "libc", "mio", "pin-project-lite", + "signal-hook-registry", "socket2", + "tokio-macros", + "tracing", "windows-sys 0.61.2", ] +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "tokio-rustls" version = "0.26.5" @@ -6842,6 +8991,33 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-stream" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17a073bfed563fa236697a068031408a93cd9522e08abf9933ead3e73411bd71" +dependencies = [ + "futures-util", + "log", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tungstenite", +] + [[package]] name = "tokio-util" version = "0.7.19" @@ -6963,6 +9139,24 @@ dependencies = [ "tower-service", ] +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + [[package]] name = "tower-layer" version = "0.3.3" @@ -7007,6 +9201,16 @@ dependencies = [ "once_cell", ] +[[package]] +name = "transpose" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ad61aed86bc3faea4300c7aee358b4c6d0c8d6ccc36524c96e4c92ccf26e77e" +dependencies = [ + "num-integer", + "strength_reduce", +] + [[package]] name = "triomphe" version = "0.1.17" @@ -7024,6 +9228,134 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "ts-bookkeeping" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "heck 0.5.0", + "itertools 0.14.0", + "num-derive", + "num-traits", + "serde", + "t4rust-derive", + "thiserror 2.0.21", + "time", + "tracing", + "tsproto-packets", + "tsproto-structs", + "tsproto-types", +] + +[[package]] +name = "tsclientlib" +version = "0.2.0" +dependencies = [ + "base64 0.22.1", + "futures", + "git-testament", + "hickory-net", + "hickory-resolver", + "itertools 0.14.0", + "num-traits", + "opus2", + "pin-utils", + "rand 0.10.3", + "reqwest", + "thiserror 2.0.21", + "time", + "tokio", + "tokio-stream", + "tracing", + "ts-bookkeeping", + "tsproto", + "tsproto-packets", + "tsproto-types", + "url", +] + +[[package]] +name = "tsproto" +version = "0.2.0" +dependencies = [ + "aes 0.8.4", + "base64 0.22.1", + "crypto-bigint 0.6.1", + "curve25519-dalek 4.1.3", + "eax", + "futures", + "generic-array 0.14.7", + "git-testament", + "num-bigint 0.4.8", + "num-derive", + "num-traits", + "omnom", + "pin-project-lite", + "quicklz", + "rand 0.10.3", + "serde", + "sha-1", + "sha2 0.10.9", + "thiserror 2.0.21", + "time", + "tokio", + "tracing", + "tsproto-packets", + "tsproto-types", + "zeroize", +] + +[[package]] +name = "tsproto-packets" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "bitflags 2.13.2", + "num-derive", + "num-traits", + "omnom", + "self_cell", + "serde", + "thiserror 2.0.21", +] + +[[package]] +name = "tsproto-structs" +version = "0.2.0" +dependencies = [ + "base64 0.22.1", + "csv", + "heck 0.5.0", + "once_cell", + "serde", + "toml 1.1.6+spec-1.1.0", +] + +[[package]] +name = "tsproto-types" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "bitflags 2.13.2", + "curve25519-dalek 4.1.3", + "elliptic-curve 0.13.8", + "generic-array 0.14.7", + "heck 0.5.0", + "num-bigint 0.4.8", + "num-derive", + "num-traits", + "p256 0.13.2", + "rand 0.8.8", + "ref-cast", + "serde", + "sha-1", + "simple_asn1", + "t4rust-derive", + "thiserror 2.0.21", + "time", + "tsproto-structs", +] + [[package]] name = "ttf-parser" version = "0.25.1" @@ -7033,6 +9365,24 @@ dependencies = [ "core_maths", ] +[[package]] +name = "tungstenite" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48ac77174b19c110a50ab2128b24215ac9cb40e0e12e093fb602d175c569d22" +dependencies = [ + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand 0.10.3", + "rustls", + "rustls-pki-types", + "sha1", + "thiserror 2.0.21", +] + [[package]] name = "typenum" version = "1.20.1" @@ -7128,6 +9478,28 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "universal-hash" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4987bdc12753382e0bec4a65c50738ffaabc998b9cdd1f952fb5f39b0048a96" +dependencies = [ + "crypto-common 0.2.2", + "ctutils", +] + +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + [[package]] name = "untrusted" version = "0.9.0" @@ -7242,6 +9614,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + [[package]] name = "version-compare" version = "0.2.1" @@ -7254,6 +9632,105 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +[[package]] +name = "visibility" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d674d135b4a8c1d7e813e2f8d1c9a58308aee4a680323066025e53132218bd91" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "voelin-audio" +version = "0.1.0" +dependencies = [ + "hound", + "opus2", + "rubato", + "serde", + "sonora", + "sonora-agc2", + "sonora-simd", + "thiserror 2.0.21", + "tracing", +] + +[[package]] +name = "voelin-core" +version = "0.1.0" +dependencies = [ + "anyhow", + "base64 0.22.1", + "bytes", + "dirs 6.0.0", + "futures", + "h2", + "hickory-resolver", + "httpdate", + "md5", + "reqwest", + "rusqlite", + "serde", + "serde_json", + "thiserror 2.0.21", + "tokio", + "tokio-tungstenite", + "toml 1.1.6+spec-1.1.0", + "tracing", + "tsclientlib", + "tsproto", + "tsproto-packets", + "tsproto-types", + "voelin-audio", + "voelin-gateway-proto", + "voelin-identity", + "voelin-media", + "voelin-model", + "voelin-observer", + "voelin-platform", + "voelin-proto", + "voelin-query", + "voelin-store", + "voelin-stream", +] + +[[package]] +name = "voelin-gateway-proto" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "futures-util", + "serde", + "serde_json", + "sha-1", + "sha2 0.10.9", + "thiserror 2.0.21", + "tokio", + "tokio-tungstenite", + "tsproto-types", + "voelin-model", +] + +[[package]] +name = "voelin-identity" +version = "0.2.0" +source = "git+ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git?rev=c8e0e5a17c1ff5dfaefa087f49b395d2918af650#c8e0e5a17c1ff5dfaefa087f49b395d2918af650" +dependencies = [ + "aws-lc-rs", + "base64 0.23.1", + "prost", + "rcgen", + "serde", + "serde_json", + "thiserror 2.0.21", + "voelin-proto", + "x509-cert 0.3.0", + "zeroize", +] + [[package]] name = "voelin-media" version = "0.1.0" @@ -7266,6 +9743,7 @@ dependencies = [ "memmap2", "ndk", "openh264", + "reqwest", "rtrb", "rustix", "serde", @@ -7280,6 +9758,95 @@ dependencies = [ "yuv", ] +[[package]] +name = "voelin-model" +version = "0.1.0" +source = "git+ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git?rev=c8e0e5a17c1ff5dfaefa087f49b395d2918af650#c8e0e5a17c1ff5dfaefa087f49b395d2918af650" +dependencies = [ + "prost", + "serde", + "voelin-proto", +] + +[[package]] +name = "voelin-observer" +version = "0.1.0" +dependencies = [ + "thiserror 2.0.21", + "tokio", + "tracing", + "voelin-model", + "voelin-query", +] + +[[package]] +name = "voelin-platform" +version = "0.1.0" +dependencies = [ + "dirs 6.0.0", + "notify-rust", + "serde", + "thiserror 2.0.21", + "tokio", + "tracing", + "windows 0.62.2", +] + +[[package]] +name = "voelin-proto" +version = "0.2.0" +source = "git+ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git?rev=c8e0e5a17c1ff5dfaefa087f49b395d2918af650#c8e0e5a17c1ff5dfaefa087f49b395d2918af650" +dependencies = [ + "bytes", + "prost", + "thiserror 2.0.21", + "tokio", +] + +[[package]] +name = "voelin-query" +version = "0.1.0" +dependencies = [ + "reqwest", + "russh", + "serde", + "serde_json", + "socket2", + "thiserror 2.0.21", + "tokio", + "tracing", +] + +[[package]] +name = "voelin-store" +version = "0.1.0" +dependencies = [ + "rusqlite", + "serde", + "serde_json", + "thiserror 2.0.21", + "tracing", + "tsclientlib", + "voelin-identity", +] + +[[package]] +name = "voelin-stream" +version = "0.1.0" +dependencies = [ + "dimpl", + "serde", + "serde_json", + "socket2", + "str0m", + "thiserror 2.0.21", + "tokio", + "tracing", + "tsclientlib", + "tsproto-packets", + "voelin-media", +] + [[package]] name = "vswhom" version = "0.1.0" @@ -7553,6 +10120,15 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki-root-certs" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a" +dependencies = [ + "rustls-pki-types", +] + [[package]] name = "weezl" version = "0.1.12" @@ -7597,7 +10173,7 @@ checksum = "2f519832254e56965a9940c4af57dcb75f702b6f6fa4a0b172f685395843a4d7" dependencies = [ "arrayvec", "bit-set", - "bit-vec", + "bit-vec 0.9.1", "bitflags 2.13.2", "bytemuck", "cfg_aliases", @@ -7756,6 +10332,12 @@ dependencies = [ "safe_arch", ] +[[package]] +name = "widestring" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471" + [[package]] name = "winapi" version = "0.3.9" @@ -7787,6 +10369,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windowfunctions" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90628d739333b7c5d2ee0b70210b97b8cddc38440c682c96fd9e2c24c2db5f3a" +dependencies = [ + "num-traits", +] + [[package]] name = "windows" version = "0.57.0" @@ -8425,6 +11016,18 @@ version = "0.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" +[[package]] +name = "wnaf" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "795ca18b3fdb5e62bf982199278341ddcf7ebf7d32e25e212ad05d496e95f6fa" +dependencies = [ + "ff 0.14.0", + "group 0.14.0", + "hybrid-array", + "primefield", +] + [[package]] name = "writeable" version = "0.6.4" @@ -8461,6 +11064,46 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" +[[package]] +name = "x509-cert" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1301e935010a701ae5f8655edc0ad17c44bad3ac5ce8c39185f75453b720ae94" +dependencies = [ + "const-oid 0.9.6", + "der 0.7.10", + "spki 0.7.3", +] + +[[package]] +name = "x509-cert" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "105ef4642d9cb137ef83d623d0e4bf08b8adf69e9918ca904a174adb6d3d038b" +dependencies = [ + "const-oid 0.10.2", + "der 0.8.2", + "spki 0.8.0", +] + +[[package]] +name = "x509-parser" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43b0f71ce057da06bc0851b23ee24f3f86190b07203dd8f567d0b706a185202" +dependencies = [ + "asn1-rs", + "aws-lc-rs", + "data-encoding", + "der-parser", + "lazy_static", + "nom 7.1.3", + "oid-registry", + "rusticata-macros", + "thiserror 2.0.21", + "time", +] + [[package]] name = "xcb" version = "1.7.1" @@ -8544,6 +11187,16 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a5a4b21e1a62b67a2970e6831bc091d7b87e119e7f9791aef9702e3bef04448" +[[package]] +name = "yasna" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5f6765e852b9b4dc8e2a76843e4d64d1cea8e79bcde0b6901aea8e7c7f08282" +dependencies = [ + "bit-vec 0.9.1", + "time", +] + [[package]] name = "yazi" version = "0.2.1" @@ -8581,7 +11234,7 @@ dependencies = [ "proc-macro2", "quote", "syn 3.0.6", - "synstructure", + "synstructure 0.14.0", ] [[package]] @@ -8618,6 +11271,7 @@ dependencies = [ "rustix", "serde", "serde_repr", + "tokio", "tracing", "uds_windows", "uuid", @@ -8804,7 +11458,7 @@ dependencies = [ "proc-macro2", "quote", "syn 3.0.6", - "synstructure", + "synstructure 0.14.0", ] [[package]] diff --git a/spikes/gpui/Cargo.toml b/spikes/gpui/Cargo.toml index 02ceecd..9cff9b8 100644 --- a/spikes/gpui/Cargo.toml +++ b/spikes/gpui/Cargo.toml @@ -4,7 +4,7 @@ # into the checkout's target directory (.cargo/config.toml). [workspace] resolver = "3" -members = ["common"] +members = ["common", "video"] [workspace.package] version = "0.0.0" diff --git a/spikes/gpui/video/Cargo.toml b/spikes/gpui/video/Cargo.toml new file mode 100644 index 0000000..ea90675 --- /dev/null +++ b/spikes/gpui/video/Cargo.toml @@ -0,0 +1,23 @@ +[package] +name = "spike-video" +description = "Spike 1: decoded video frames shown with img() as BGRA RenderImages." +version.workspace = true +edition.workspace = true +rust-version.workspace = true +license.workspace = true +publish.workspace = true + +[dependencies] +anyhow = "1" +gpui-kit = { workspace = true } +log = { workspace = true } +spike-common = { workspace = true } +futures = "0.3" +serde_json = "1" +tokio = { version = "1", features = ["rt-multi-thread", "time"] } +voelin-core = { workspace = true } +voelin-media = { workspace = true } +yuv = { workspace = true } + +[lints] +workspace = true diff --git a/spikes/gpui/video/README.md b/spikes/gpui/video/README.md new file mode 100644 index 0000000..e5a3e79 --- /dev/null +++ b/spikes/gpui/video/README.md @@ -0,0 +1,63 @@ +# Spike 1: the video path + +`spike-video` shows the synthetic test pattern in a GPUI window the way +`voelin-ui` shows a watched stream: + +- **Source.** `--mode pipeline` runs `voelin_core::media::LocalPreview` with + `SourceId::Synthetic`, as `Video::demo` (`crates/voelin-ui/src/video.rs`) + does: capture, the VP8 encoder (libvpx), the decoder, no server. + `--mode raw` hands decoded-looking I420 frames from memory at `--fps` + straight to the converter, so a frame rate below the source's belongs to + the conversion and GPUI alone. +- **Delivery** (`src/frames.rs`): the port of `video.rs`' `deliver`, + `FrameSlot`, `Handoff` and `Buffers`. The decoder hands over its newest + frame only; a converter thread (`voelin-picture`) turns it into an + `Arc` (BGRA, `spike_common::bgra::to_bgra`, the BGRA twin of + `voelin_media::convert::to_rgba`) and puts it into a `Latest`; the window + is woken through a channel only when the slot was empty (GPUI's + `AsyncApp` is not `Send`). A `RenderImage` owns its pixels and gives no + way back to them, so the buffer reuse of `Buffers` cannot be ported: every + picture is a new buffer. +- **Window** (`src/main.rs`): `img(ImageSource::Render(..))`, the picture + taken from `Latest` in `render`, the one it replaces dropped from every + window's sprite atlas with `cx.drop_image` (`--no-drop` leaves it: the + negative control). `inactive_frame_interval: None`: GPUI throttles + animation frames of an unfocused window to 30 fps by default. + +Once a second it prints a JSON line (CPU of the process and of each thread +group in percent of one core, resident memory, and per second: frames +captured, encoded, decoded, handed to the converter, converted, shown and +rendered, conversion time); at the end a summary over the steady part. + +## Reproducing the measurements + +Build, then run every case on the headless display (Xvfb `:91`, openbox, +lavapipe through wgpu's Vulkan backend; see [../README.md](../README.md)): + +```sh +spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo build --locked --release' +# the Slint app, for its demo stream (the root workspace, Rust 1.94): +TOOLCHAIN=1.94 spikes/gpui/shell.sh cargo build --locked --release -p voelin-ui +spikes/gpui/shell.sh spikes/gpui/headless.sh -- spikes/gpui/video/measure.sh +``` + +`measure.sh` runs, 70 s each with 10 s of warm-up not averaged +(`SECONDS_RUN`, `WARMUP`), and writes `.jsonl`, `-damage.jsonl` +(the X server's count of the window's content changes), `.load` (load +average before and after) and a screenshot from the warm-up to `$OUT` +(default `.scratch/gpui-spikes-results`): + +| Case | Command | +|---|---| +| `bench` | `spike-video --bench --iterations 300` (RGBA against BGRA, 1080p and 1440p, into a reused and a new buffer, and as a `RenderImage`) | +| `raw-1080p60`, `raw-1440p60` | `spike-video --mode raw --size 1920x1080` (or `2560x1440`) `--fps 60` | +| `pipeline-1080p60`, `pipeline-1440p60` | `spike-video --mode pipeline --size … --fps 60` (bitrate automatic, as the share dialog's default) | +| `pipeline-1440p60-rgba` | the same with `--convert rgba` (voelin-media's conversion; red and blue show swapped) | +| `nodrop-1440p` | `spike-video --mode pipeline --size 2560x1440 --fps 15 --no-drop --seconds 12 --warmup 2` (memory grows by a picture per frame) | +| `pipeline-720p30` | `spike-video --mode pipeline --size 1280x720 --fps 30 --bitrate 4608`: `Video::demo`'s own settings (`StreamerConfig::default()`) | +| `slint-720p30` | `voelin` with `VOELIN_DEMO_STREAM=1 SLINT_BACKEND=winit-software`, measured from outside with `proc-meter` and `damage-count` | + +One case: `spikes/gpui/shell.sh spikes/gpui/headless.sh -- spikes/gpui/video/measure.sh raw-1440p60`. + +The figures and what they mean are in +[docs/design/gpui-spikes.md](../../../docs/design/gpui-spikes.md#spike-1-the-video-path). diff --git a/spikes/gpui/video/measure.sh b/spikes/gpui/video/measure.sh new file mode 100755 index 0000000..769bc1b --- /dev/null +++ b/spikes/gpui/video/measure.sh @@ -0,0 +1,87 @@ +#!/bin/sh +# Spike 1's measurements on the headless display, one case after another; +# every case writes .jsonl (one line a second, then the summary) to +# $OUT. Cases (default: all, in this order): +# +# bench RGBA against BGRA conversion, no window +# static-1080p60 static-1440p60 one picture, repainted every frame (the control) +# raw-1080p60 raw-1440p60 frames from memory: conversion + GPUI only +# pipeline-1080p60 pipeline-1440p60 LocalPreview: capture, VP8, decoder (as Video::demo) +# pipeline-1440p60-rgba the same with voelin-media's RGBA conversion +# nodrop-1440p the negative control: no cx.drop_image (15 fps, 12 s) +# pipeline-720p30 GPUI with Video::demo's own settings (1280x720, 30 fps, 4.6 Mbit/s) +# slint-720p30 the Slint app's demo stream (VOELIN_DEMO_STREAM), same display +# +# spikes/gpui/shell.sh spikes/gpui/headless.sh -- spikes/gpui/video/measure.sh [CASE...] +# +# SECONDS_RUN (default 70) and WARMUP (default 10) set the length of the +# window cases. damage-count runs beside every window case: it counts the +# window's content changes from the X server's side. +set -eu +root=$(cd "$(dirname "$0")/../../.." && pwd) +out=${OUT:-$root/.scratch/gpui-spikes-results} +mkdir -p "$out" +out=$(cd "$out" && pwd) +bin=$root/target/release +seconds=${SECONDS_RUN:-70} +warmup=${WARMUP:-10} +cases=${*:-bench static-1080p60 static-1440p60 raw-1080p60 raw-1440p60 pipeline-1080p60 pipeline-1440p60 pipeline-1440p60-rgba nodrop-1440p pipeline-720p30 slint-720p30} + +video() { + name=$1 + shift + echo "== $name: spike-video $*" >&2 + echo "load before: $(cat /proc/loadavg)" >"$out/$name.load" + "$bin/damage-count" spike-video "$((seconds - 1))" "$warmup" >"$out/$name-damage.jsonl" & + damage=$! + # A picture of the window during the warm-up (not averaged). + (sleep 5 && w=$(xdotool search --name '^spike-video$' | head -1) && xwd -id "$w" -silent | magick xwd:- -resize 50% "png:$out/$name.png") & + "$bin/spike-video" "$@" --out "$out/$name.jsonl" >/dev/null 2>"$out/$name.log" + wait "$damage" || true + echo "load after: $(cat /proc/loadavg)" >>"$out/$name.load" + tail -1 "$out/$name.jsonl" + tail -1 "$out/$name-damage.jsonl" +} + +for c in $cases; do + case $c in + bench) "$bin/spike-video" --bench --iterations 300 | tee "$out/bench.jsonl" ;; + static-1080p60) video "$c" --mode static --size 1920x1080 --seconds "$seconds" --warmup "$warmup" ;; + static-1440p60) video "$c" --mode static --size 2560x1440 --seconds "$seconds" --warmup "$warmup" ;; + raw-1080p60) video "$c" --mode raw --size 1920x1080 --fps 60 --seconds "$seconds" --warmup "$warmup" ;; + raw-1440p60) video "$c" --mode raw --size 2560x1440 --fps 60 --seconds "$seconds" --warmup "$warmup" ;; + pipeline-1080p60) video "$c" --mode pipeline --size 1920x1080 --fps 60 --seconds "$seconds" --warmup "$warmup" ;; + pipeline-1440p60) video "$c" --mode pipeline --size 2560x1440 --fps 60 --seconds "$seconds" --warmup "$warmup" ;; + pipeline-1440p60-rgba) + video "$c" --mode pipeline --size 2560x1440 --fps 60 --convert rgba --seconds "$seconds" --warmup "$warmup" + ;; + nodrop-1440p) video "$c" --mode pipeline --size 2560x1440 --fps 15 --no-drop --seconds 12 --warmup 2 ;; + pipeline-720p30) + video "$c" --mode pipeline --size 1280x720 --fps 30 --bitrate 4608 --seconds "$seconds" --warmup "$warmup" + ;; + slint-720p30) + echo "== $c: voelin (Slint, software renderer) with VOELIN_DEMO_STREAM=1" >&2 + echo "load before: $(cat /proc/loadavg)" >"$out/$c.load" + data=$out/slint-data + rm -rf "$data" + mkdir -p "$data" + SLINT_BACKEND=winit-software SLINT_DEBUG_PERFORMANCE=console,refresh_lazy \ + VOELIN_DATA_DIR="$data" VOELIN_DEMO_STREAM=1 VOELIN_WINDOW_SIZE=1440x960 VOELIN_FFMPEG=0 \ + "$bin/voelin" >"$out/$c.log" 2>&1 & + app=$! + "$bin/damage-count" Voelin "$((seconds - 1))" "$warmup" >"$out/$c-damage.jsonl" & + damage=$! + sleep 8 + w=$(xdotool search --name '^Voelin$' | head -1) + xwd -id "$w" -silent | magick xwd:- "png:$out/$c.png" + "$bin/proc-meter" "$app" "$((seconds - 8))" "$((warmup > 8 ? warmup - 8 : 1))" >"$out/$c.jsonl" + wait "$damage" || true + echo "load after: $(cat /proc/loadavg)" >>"$out/$c.load" + kill "$app" 2>/dev/null || true + wait "$app" 2>/dev/null || true + tail -1 "$out/$c.jsonl" + tail -1 "$out/$c-damage.jsonl" + ;; + *) echo "unknown case $c" >&2; exit 2 ;; + esac +done diff --git a/spikes/gpui/video/src/convert.rs b/spikes/gpui/video/src/convert.rs new file mode 100644 index 0000000..c65bd04 --- /dev/null +++ b/spikes/gpui/video/src/convert.rs @@ -0,0 +1,90 @@ +//! Which conversion the converter thread runs (BGRA, what GPUI shows, or +//! voelin-media's RGBA for comparison), and the benchmark of the two. + +use std::time::Instant; + +use spike_common::bgra::{render_image, to_bgra}; +use voelin_media::convert; +use voelin_media::frame::VideoFrame; + +/// Which conversion the converter thread runs. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum Order { + /// What GPUI wants. + Bgra, + /// voelin-media's (what Slint wants): the picture shows with red and + /// blue swapped; only for measuring the difference in place. + Rgba, +} + +impl Order { + /// Convert with this order. + pub fn convert(self, frame: &VideoFrame, out: &mut [u8], stride: usize) -> Result<(), String> { + match self { + Self::Bgra => to_bgra(frame, out, stride), + Self::Rgba => convert::to_rgba(frame, out, stride).map_err(|e| e.to_string()), + } + } +} + +/// Milliseconds per call of `f`, over `n` calls after two warm-up calls: +/// (mean, median). +fn time(n: usize, mut f: impl FnMut()) -> (f64, f64) { + f(); + f(); + let mut samples: Vec = (0..n) + .map(|_| { + let t = Instant::now(); + f(); + t.elapsed().as_secs_f64() * 1000.0 + }) + .collect(); + samples.sort_by(f64::total_cmp); + (samples.iter().sum::() / n as f64, samples[n / 2]) +} + +/// The conversion benchmark (`spike-video --bench`): RGBA against BGRA at +/// 1080p and 1440p, into a reused buffer and into a new one, and the new +/// buffer wrapped as GPUI's `RenderImage` (what the converter thread does +/// per frame). Prints one JSON line per case. +pub fn bench(iterations: usize) { + use voelin_media::capture::synthetic::{Pattern, SyntheticScreen}; + for (w, h) in [(1920u32, 1080u32), (2560, 1440)] { + let picture = SyntheticScreen::with_pattern(w, h, Pattern::Desktop).frame(1, 60); + let i420 = convert::to_i420(&picture).expect("I420").into_owned(); + let stride = w as usize * 4; + let bytes = stride * h as usize; + for order in [Order::Rgba, Order::Bgra] { + let mut reused = vec![0u8; bytes]; + let (reuse_mean, reuse_median) = time(iterations, || { + order.convert(&i420, &mut reused, stride).expect("convert"); + }); + let (new_mean, new_median) = time(iterations, || { + let mut fresh = vec![0u8; bytes]; + order.convert(&i420, &mut fresh, stride).expect("convert"); + std::hint::black_box(&fresh); + }); + let (image_mean, image_median) = time(iterations, || { + let mut fresh = vec![0u8; bytes]; + order.convert(&i420, &mut fresh, stride).expect("convert"); + std::hint::black_box(render_image(w, h, fresh)); + }); + println!( + "{}", + serde_json::json!({ + "size": format!("{w}x{h}"), + "order": format!("{order:?}"), + "threads": 1, + "reused_ms": {"mean": r3(reuse_mean), "median": r3(reuse_median)}, + "new_buffer_ms": {"mean": r3(new_mean), "median": r3(new_median)}, + "new_buffer_render_image_ms": {"mean": r3(image_mean), "median": r3(image_median)}, + "iterations": iterations, + }) + ); + } + } +} + +fn r3(v: f64) -> f64 { + (v * 1000.0).round() / 1000.0 +} diff --git a/spikes/gpui/video/src/frames.rs b/spikes/gpui/video/src/frames.rs new file mode 100644 index 0000000..6ddf0b8 --- /dev/null +++ b/spikes/gpui/video/src/frames.rs @@ -0,0 +1,160 @@ +//! `voelin-ui`'s `video.rs` delivery (`deliver`, `FrameSlot`, `Handoff`, +//! `Buffers`, video.rs:360-480) ported to GPUI: decoded frames become +//! `Arc` (BGRA) instead of Slint pixel buffers. +//! +//! What carries over unchanged: the decoder hands over its newest frame only +//! and never waits for the conversion; a converter thread converts only what +//! the window can show; the window takes the newest picture from a +//! [`Latest`] and is woken only when the slot was empty. +//! +//! What does not: buffer reuse. A `RenderImage` owns its pixels +//! (`SmallVec<[image::Frame; 1]>`, private, no accessor), so the buffer of +//! a picture the window let go of cannot be recovered and every frame is a +//! new allocation. [`Buffers`] keeps the shape (and the size check) without +//! the reuse; the allocator may still hand the same memory back. + +use std::sync::atomic::{AtomicU64, Ordering}; +use std::sync::{Arc, Condvar, Mutex, PoisonError}; + +use gpui_kit::RenderImage; +use spike_common::bgra::render_image; +use spike_common::meter::Counter; +use voelin_core::media::Latest; +use voelin_media::VideoFrame; + +use crate::convert::Order; + +/// What the converter counts. +#[derive(Clone, Default)] +pub struct Counts { + /// Frames the decoder (or the raw source) handed over. + pub arrived: Counter, + /// Frames converted into pictures. + pub converted: Counter, + /// Microseconds spent converting (with the allocation), summed. + pub convert_us: Counter, +} + +/// A callback for the decoder that converts its newest frame on a thread of +/// its own into `pictures`; `wake` runs (on that thread) when a picture is +/// ready and none was waiting. +pub fn deliver( + pictures: Arc>>, + order: Order, + counts: Counts, + wake: impl Fn() + Send + Sync + 'static, +) -> impl FnMut(Arc) + Send + 'static { + let slot = Arc::new(FrameSlot::default()); + let wake = Arc::new(wake); + let thread = { + let (slot, pictures, wake, counts) = + (slot.clone(), pictures.clone(), wake.clone(), counts.clone()); + std::thread::Builder::new().name("voelin-picture".into()).spawn(move || { + let mut buffers = Buffers::new(order, counts); + while let Some(frame) = slot.wait() { + buffers.show(&frame, &pictures, &*wake); + } + }) + }; + let mut inline = match thread { + Ok(_) => None, + Err(e) => { + log::warn!("no picture thread, converting on the decoder's: {e}"); + Some(Buffers::new(order, counts.clone())) + } + }; + let handoff = Handoff(slot); + move |frame: Arc| { + counts.arrived.incr(); + match &mut inline { + Some(buffers) => buffers.show(&frame, &pictures, &*wake), + None => handoff.0.put(frame), + } + } +} + +/// The newest decoded frame, waiting for the converter thread. +#[derive(Default)] +struct FrameSlot { + /// The frame, and whether the decoder is gone. + state: Mutex<(Option>, bool)>, + ready: Condvar, +} + +impl FrameSlot { + /// Replace the waiting frame (an older one is never converted). + fn put(&self, frame: Arc) { + self.state.lock().unwrap_or_else(PoisonError::into_inner).0 = Some(frame); + self.ready.notify_one(); + } + + fn close(&self) { + self.state.lock().unwrap_or_else(PoisonError::into_inner).1 = true; + self.ready.notify_one(); + } + + /// The next frame; `None` once the decoder is gone. + fn wait(&self) -> Option> { + let mut state = self.state.lock().unwrap_or_else(PoisonError::into_inner); + loop { + if state.1 { + return None; + } + if let Some(frame) = state.0.take() { + return Some(frame); + } + state = self.ready.wait(state).unwrap_or_else(PoisonError::into_inner); + } + } +} + +/// The decoder's side of a [`FrameSlot`]: dropped with the decoder's +/// callback, it ends the converter thread. +struct Handoff(Arc); + +impl Drop for Handoff { + fn drop(&mut self) { + self.0.close(); + } +} + +/// Converts frames into new pictures (see the module docs on reuse). +struct Buffers { + order: Order, + counts: Counts, + /// Size of the last picture. + size: (u32, u32), +} + +/// Pictures converted so far (for the log line of the first one). +static CONVERTED: AtomicU64 = AtomicU64::new(0); + +impl Buffers { + fn new(order: Order, counts: Counts) -> Self { + Self { order, counts, size: (0, 0) } + } + + fn show(&mut self, frame: &VideoFrame, pictures: &Latest>, wake: &dyn Fn()) { + let (width, height) = (frame.width, frame.height); + if self.size != (width, height) { + log::info!("pictures of {width}x{height}"); + self.size = (width, height); + } + let started = std::time::Instant::now(); + let stride = width as usize * 4; + let mut bgra = vec![0u8; stride * height as usize]; + if let Err(e) = self.order.convert(frame, &mut bgra, stride) { + log::warn!("cannot show a picture: {e}"); + return; + } + let picture = render_image(width, height, bgra); + self.counts.convert_us.add(started.elapsed().as_micros() as u64); + self.counts.converted.incr(); + if CONVERTED.fetch_add(1, Ordering::Relaxed) == 0 { + log::info!("first picture converted ({:?})", self.order); + } + if pictures.put(picture) { + wake(); + } + } +} diff --git a/spikes/gpui/video/src/main.rs b/spikes/gpui/video/src/main.rs new file mode 100644 index 0000000..443e984 --- /dev/null +++ b/spikes/gpui/video/src/main.rs @@ -0,0 +1,352 @@ +//! Spike 1, the video path (plan section 6 step 1): the synthetic test +//! pattern through the real encoder and decoder (`LocalPreview`, as +//! `voelin-ui`'s `Video::demo` runs it) or straight from memory (`raw`), +//! converted to BGRA on a thread of its own (`frames`, the port of +//! `video.rs`' delivery) and shown with `img()` in a GPUI window, measured +//! once a second (`spike_common::meter`). `static` is the control: one +//! picture, uploaded once, the window repainted every frame. +//! +//! ```text +//! spike-video [--mode pipeline|raw|static] [--size 2560x1440] [--fps 60] +//! [--bitrate KBPS (0: automatic)] [--convert bgra|rgba] +//! [--no-drop] [--window WxH] [--seconds 60] [--warmup 10] +//! [--out FILE.jsonl] +//! spike-video --bench [--iterations 200] +//! ``` +//! +//! `--no-drop` leaves every picture in GPUI's sprite atlas (the negative +//! control for `cx.drop_image`). See the README for the measurements. + +mod convert; +mod frames; + +use std::path::PathBuf; +use std::sync::atomic::AtomicU64; +use std::sync::{Arc, Mutex, PoisonError}; +use std::time::{Duration, Instant}; + +use futures::StreamExt as _; +use gpui_kit::{ + App, AppContext as _, Bounds, Context, ImageSource, IntoElement, ObjectFit, ParentElement, + Render, RenderImage, SharedString, Styled, StyledImage, TitlebarOptions, Window, WindowBounds, + WindowOptions, div, img, px, rgb, size, +}; +use serde_json::json; +use spike_common::meter::{Counter, Meter}; +use voelin_core::media::voelin_media::capture::SourceId; +use voelin_core::media::voelin_media::capture::synthetic::{Pattern, SyntheticScreen}; +use voelin_core::media::voelin_media::{Codecs, VideoFrame, convert as media_convert}; +use voelin_core::media::{Latest, LocalPreview, StreamerConfig}; + +use crate::convert::Order; + +/// Where frames come from. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +enum Mode { + /// `LocalPreview`: capture, VP8 encoder, decoder (what the Slint demo + /// shows). + Pipeline, + /// Decoded-looking I420 frames from memory, paced at `fps`: only the + /// conversion and GPUI, so a frame rate below the source's is theirs. + Raw, + /// One picture, converted and uploaded once, the window repainted every + /// frame (`request_animation_frame`): what GPUI and the renderer manage + /// with no new picture to upload, the most a texture kept across frames + /// could give. + Static, +} + +struct Config { + mode: Mode, + size: (u32, u32), + fps: u32, + bitrate_kbps: u32, + order: Order, + drop_images: bool, + window: (u32, u32), + seconds: u64, + warmup: u64, + out: Option, +} + +impl Config { + fn from_args() -> anyhow::Result { + use spike_common::{arg, flag, parse_size}; + let size = parse_size(&arg("size").unwrap_or_else(|| "2560x1440".into())) + .ok_or_else(|| anyhow::anyhow!("--size WIDTHxHEIGHT"))?; + let window = match arg("window") { + Some(w) => parse_size(&w).ok_or_else(|| anyhow::anyhow!("--window WIDTHxHEIGHT"))?, + None => size, + }; + Ok(Self { + mode: match arg("mode").as_deref() { + None | Some("pipeline") => Mode::Pipeline, + Some("raw") => Mode::Raw, + Some("static") => Mode::Static, + Some(other) => anyhow::bail!("--mode pipeline|raw|static, not {other}"), + }, + size, + fps: arg("fps").map_or(Ok(60), |v| v.parse())?, + bitrate_kbps: arg("bitrate").map_or(Ok(0), |v| v.parse())?, + order: match arg("convert").as_deref() { + None | Some("bgra") => Order::Bgra, + Some("rgba") => Order::Rgba, + Some(other) => anyhow::bail!("--convert bgra|rgba, not {other}"), + }, + drop_images: !flag("no-drop"), + window, + seconds: arg("seconds").map_or(Ok(60), |v| v.parse())?, + warmup: arg("warmup").map_or(Ok(10), |v| v.parse())?, + out: arg("out").map(PathBuf::from), + }) + } + + fn json(&self) -> serde_json::Value { + json!({ + "spike": "video", + "mode": format!("{:?}", self.mode), + "size": format!("{}x{}", self.size.0, self.size.1), + "fps": self.fps, + "bitrate_kbps": self.bitrate_kbps, + "convert": format!("{:?}", self.order), + "drop_image": self.drop_images, + "window": format!("{}x{}", self.window.0, self.window.1), + "display": std::env::var("DISPLAY").ok(), + "vk_driver_files": std::env::var("VK_DRIVER_FILES").ok(), + }) + } +} + +/// The window: the newest picture, and a line about the run. +struct Viewer { + pictures: Arc>>, + current: Option>, + drop_images: bool, + /// Repaint every frame (`Mode::Static`). + repaint: bool, + shown: Counter, + renders: Counter, + label: SharedString, +} + +impl Render for Viewer { + fn render(&mut self, window: &mut Window, cx: &mut Context) -> impl IntoElement { + self.renders.incr(); + if self.repaint { + window.request_animation_frame(); + } + if let Some(next) = self.pictures.take() { + if let Some(previous) = self.current.replace(next) + && self.drop_images + { + // Out of every window's sprite atlas; without this the atlas + // keeps every picture ever shown. + cx.drop_image(previous, Some(window)); + } + self.shown.incr(); + } + let picture = match &self.current { + Some(picture) => img(ImageSource::Render(picture.clone())) + .size_full() + .object_fit(ObjectFit::Contain) + .into_any_element(), + None => div().child("Waiting for the first picture…").into_any_element(), + }; + div() + .size_full() + .bg(rgb(0x000000)) + .text_color(rgb(0xffffff)) + .child(picture) + .child(div().absolute().top_2().left_2().child(self.label.clone())) + } +} + +/// The view, woken by the converter through a channel: GPUI's `AsyncApp` +/// is not `Send`, so other threads reach the UI thread this way. +fn open_viewer( + cx: &mut App, + config: &Config, + pictures: Arc>>, + counters: (Counter, Counter), + wakes: futures::channel::mpsc::UnboundedReceiver<()>, +) { + let (w, h) = config.window; + let label: SharedString = format!( + "{:?} {}x{} at {} fps, {:?}{}", + config.mode, + config.size.0, + config.size.1, + config.fps, + config.order, + if config.drop_images { "" } else { ", no drop_image" } + ) + .into(); + let drop_images = config.drop_images; + let repaint = config.mode == Mode::Static; + let options = WindowOptions { + window_bounds: Some(WindowBounds::Windowed(Bounds::centered( + None, + size(px(w as f32), px(h as f32)), + cx, + ))), + titlebar: Some(TitlebarOptions { title: Some("spike-video".into()), ..Default::default() }), + // A video plays at its rate whether the window has focus or not. + inactive_frame_interval: None, + ..Default::default() + }; + cx.open_window(options, move |_, cx| { + cx.new(move |cx| { + let mut wakes = wakes; + cx.spawn(async move |this, cx| { + while wakes.next().await.is_some() { + if this.update(cx, |_, cx| cx.notify()).is_err() { + break; + } + } + }) + .detach(); + Viewer { + pictures, + current: None, + drop_images, + repaint, + shown: counters.0, + renders: counters.1, + label, + } + }) + }) + .expect("a window"); +} + +/// The raw source: `fps` frames a second from a ring of pictures converted +/// to I420 once, handed to `on_frame` on a thread of its own. +fn start_raw(config: &Config, mut on_frame: impl FnMut(Arc) + Send + 'static) { + let (w, h, fps) = (config.size.0, config.size.1, config.fps.max(1)); + std::thread::Builder::new() + .name("spike-raw-source".into()) + .spawn(move || { + let screen = SyntheticScreen::with_pattern(w, h, Pattern::Simple); + let ring: Vec> = (0..30u64) + .map(|n| { + let picture = screen.frame(n, fps); + Arc::new(media_convert::to_i420(&picture).expect("I420").into_owned()) + }) + .collect(); + let start = Instant::now(); + for n in 0u64.. { + let due = start + Duration::from_secs(n) / fps; + if let Some(wait) = due.checked_duration_since(Instant::now()) { + std::thread::sleep(wait); + } + on_frame(ring[(n % ring.len() as u64) as usize].clone()); + } + }) + .expect("a source thread"); +} + +fn main() -> anyhow::Result<()> { + spike_common::init_logging(); + if spike_common::flag("bench") { + convert::bench(spike_common::arg("iterations").map_or(Ok(200), |v| v.parse())?); + return Ok(()); + } + let config = Config::from_args()?; + let runtime = tokio::runtime::Builder::new_multi_thread().enable_all().build()?; + let pictures: Arc>> = Arc::new(Latest::new()); + let counts = frames::Counts::default(); + let (shown, renders) = (Counter::default(), Counter::default()); + let (captured, encoded, decoded, skipped) = + (Counter::default(), Counter::default(), Counter::default(), Counter::default()); + let (wake_tx, wakes) = futures::channel::mpsc::unbounded::<()>(); + let on_frame = frames::deliver(pictures.clone(), config.order, counts.clone(), move || { + let _ = wake_tx.unbounded_send(()); + }); + let preview: Arc>> = Arc::default(); + match config.mode { + Mode::Raw => start_raw(&config, on_frame), + Mode::Static => { + // Converted here, before the window opens: its first frame takes it. + let (w, h) = config.size; + let picture = SyntheticScreen::with_pattern(w, h, Pattern::Simple).frame(1, config.fps); + let i420 = media_convert::to_i420(&picture)?.into_owned(); + pictures.put(spike_common::bgra::picture(&i420).map_err(anyhow::Error::msg)?); + drop(on_frame); + } + Mode::Pipeline => { + let streamer = StreamerConfig { + source: SourceId::Synthetic, + synthetic_size: config.size, + fps: config.fps, + bitrate_kbps: config.bitrate_kbps, + ..StreamerConfig::default() + }; + let codecs = Arc::new(Codecs::new()); + let slot = preview.clone(); + runtime.spawn(async move { + match LocalPreview::start(codecs, streamer, on_frame).await { + Ok(p) => *slot.lock().unwrap_or_else(PoisonError::into_inner) = Some(p), + Err(e) => { + log::error!("the preview failed: {e}"); + std::process::exit(3); + } + } + }); + // The encoder's and decoder's own counts, for the meter. + let (slot, captured, encoded, decoded, skipped) = ( + preview.clone(), + captured.clone(), + encoded.clone(), + decoded.clone(), + skipped.clone(), + ); + std::thread::Builder::new().name("spike-stats".into()).spawn(move || { + let mut logged = false; + loop { + std::thread::sleep(Duration::from_millis(250)); + let guard = slot.lock().unwrap_or_else(PoisonError::into_inner); + let Some(p) = guard.as_ref() else { continue }; + let s = p.streamer().stats(); + let d = p.stats(); + captured.set(s.captured_frames); + encoded.set(s.video_frames); + decoded.set(d.decoded); + skipped.set(d.skipped); + if !logged && d.decoded > 0 { + log::info!( + "encoder {:?} {:?}, decoder {:?}", + s.codec, + s.layers.first().map(|l| (l.width, l.height)), + d.decoder + ); + logged = true; + } + } + })?; + } + } + let meter = Meter { + config: config.json(), + counters: vec![ + ("captured", captured), + ("encoded", encoded), + ("decoded", decoded), + ("decode_skipped", skipped), + ("arrived", counts.arrived.clone()), + ("converted", counts.converted.clone()), + ("convert_us", counts.convert_us.clone()), + ("shown", shown.clone()), + ("renders", renders.clone()), + ], + gauges: vec![], + warmup: Duration::from_secs(config.warmup), + duration: Duration::from_secs(config.seconds), + out: config.out.clone(), + }; + meter.start(Arc::new(AtomicU64::new(0))); + gpui_kit::application().run(move |cx| { + open_viewer(cx, &config, pictures, (shown, renders), wakes); + }); + drop(runtime); + Ok(()) +}