Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Upload Progress in UI (#901)

Oscar Beaumontd130069fe191
diff --git a/Cargo.lock b/Cargo.lock
index 0ebeff98e..eb2dfb3dd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -63,7 +63,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed7572b7ba83a31e20d1b48970ee402d2e3e0537dcfe0a3ff4d6eb7508617d43"
dependencies = [
"alsa-sys",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"libc",
]
@@ -78,12 +78,6 @@ dependencies = [
"pkg-config",
]
-[[package]]
-name = "android-tzdata"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
-
[[package]]
name = "android_system_properties"
version = "0.1.5"
@@ -105,9 +99,9 @@ dependencies = [
[[package]]
name = "anstream"
-version = "0.6.19"
+version = "0.6.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933"
+checksum = "3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192"
dependencies = [
"anstyle",
"anstyle-parse",
@@ -135,22 +129,22 @@ dependencies = [
[[package]]
name = "anstyle-query"
-version = "1.1.3"
+version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9"
+checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
name = "anstyle-wincon"
-version = "3.0.9"
+version = "3.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882"
+checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a"
dependencies = [
"anstyle",
"once_cell_polyfill",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -160,23 +154,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41058deaa38c9d9dd933d6d238d825227cffa668e2839b52879f6619c63eee3b"
dependencies = [
"futures",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
name = "anyhow"
-version = "1.0.98"
+version = "1.0.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
+checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100"
dependencies = [
"backtrace",
]
[[package]]
name = "arbitrary"
-version = "1.4.1"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223"
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
dependencies = [
"derive_arbitrary",
]
@@ -188,9 +182,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf"
dependencies = [
"clipboard-win",
- "image 0.25.6",
+ "image 0.25.8",
"log",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-core-graphics",
@@ -210,7 +204,7 @@ checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -295,20 +289,20 @@ dependencies = [
[[package]]
name = "async-io"
-version = "2.5.0"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19634d6336019ef220f09fd31168ce5c184b295cbf80345437cc36094ef223ca"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
dependencies = [
- "async-lock",
+ "autocfg",
"cfg-if",
"concurrent-queue",
"futures-io",
"futures-lite",
"parking",
"polling",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"slab",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -324,9 +318,9 @@ dependencies = [
[[package]]
name = "async-process"
-version = "2.4.0"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65daa13722ad51e6ab1a1b9c01299142bc75135b337923cfa10e79bbbd669f00"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
dependencies = [
"async-channel",
"async-io",
@@ -337,7 +331,7 @@ dependencies = [
"cfg-if",
"event-listener",
"futures-lite",
- "rustix 1.0.8",
+ "rustix 1.1.2",
]
[[package]]
@@ -348,14 +342,14 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "async-signal"
-version = "0.2.12"
+version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f567af260ef69e1d52c2b560ce0ea230763e6fbb9214a85d768760a920e3e3c1"
+checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c"
dependencies = [
"async-io",
"async-lock",
@@ -363,10 +357,10 @@ dependencies = [
"cfg-if",
"futures-core",
"futures-io",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"signal-hook-registry",
"slab",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -377,13 +371,13 @@ checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
[[package]]
name = "async-trait"
-version = "0.1.88"
+version = "0.1.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5"
+checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -437,9 +431,9 @@ dependencies = [
[[package]]
name = "avif-serialize"
-version = "0.8.5"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ea8ef51aced2b9191c08197f55450d830876d9933f8f48a429b354f1d496b42"
+checksum = "47c8fbc0f831f4519fe8b810b6a7a91410ec83031b8233f730a0480029f6a23f"
dependencies = [
"arrayvec",
]
@@ -511,7 +505,7 @@ checksum = "57d123550fa8d071b7255cb0cc04dc302baa6c8c4a79f55701552684d8399bce"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -554,7 +548,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
dependencies = [
"annotate-snippets",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cexpr",
"clang-sys",
"itertools 0.12.1",
@@ -567,7 +561,7 @@ dependencies = [
"regex",
"rustc-hash 1.1.0",
"shlex",
- "syn 2.0.104",
+ "syn 2.0.106",
"which",
]
@@ -577,7 +571,7 @@ version = "0.70.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cexpr",
"clang-sys",
"itertools 0.13.0",
@@ -586,7 +580,7 @@ dependencies = [
"regex",
"rustc-hash 1.1.0",
"shlex",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -595,7 +589,7 @@ version = "0.71.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cexpr",
"clang-sys",
"itertools 0.13.0",
@@ -606,16 +600,16 @@ dependencies = [
"regex",
"rustc-hash 2.1.1",
"shlex",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "bindgen"
-version = "0.72.0"
+version = "0.72.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f72209734318d0b619a5e0f5129918b848c416e122a3c4ce054e03cb87b726f"
+checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cexpr",
"clang-sys",
"itertools 0.13.0",
@@ -624,7 +618,7 @@ dependencies = [
"regex",
"rustc-hash 2.1.1",
"shlex",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -644,9 +638,9 @@ checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
[[package]]
name = "bit_field"
-version = "0.10.2"
+version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc827186963e592360843fb5ba4b973e145841266c1357f7180c43526f2e5b61"
+checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
[[package]]
name = "bitflags"
@@ -656,9 +650,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
-version = "2.9.1"
+version = "2.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
+checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
dependencies = [
"serde",
]
@@ -699,7 +693,7 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "340d2f0bdb2a43c1d3cd40513185b2bd7def0aa1052f956455114bc98f82dcf2"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.2",
]
[[package]]
@@ -746,7 +740,7 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -763,22 +757,22 @@ checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
[[package]]
name = "bytemuck"
-version = "1.23.1"
+version = "1.23.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c76a5792e44e4abe34d3abf15636779261d45a7450612059293d1d2cfc63422"
+checksum = "3995eaeebcdf32f91f980d360f78732ddc061097ab4e39991ae7a6ace9194677"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
-version = "1.10.0"
+version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "441473f2b4b0459a68628c744bc61d23e730fb00128b841d30fa4bb3972257e4"
+checksum = "4f154e572231cb6ba2bd1176980827e3d5dc04cc183a75dea38109fbdd672d29"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -808,7 +802,7 @@ version = "0.18.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cairo-sys-rs",
"glib",
"libc",
@@ -829,11 +823,11 @@ dependencies = [
[[package]]
name = "camino"
-version = "1.1.12"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd0b03af37dad7a14518b7691d81acb0f8222604ad3d1b02f6b4bed5188c0cd5"
+checksum = "e1de8bc0aa9e9385ceb3bf0c152e3a9b9544f6c4a912c8ae504e80c1f0368603"
dependencies = [
- "serde",
+ "serde_core",
]
[[package]]
@@ -971,7 +965,7 @@ name = "cap-cursor-info"
version = "0.0.0"
dependencies = [
"hex",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"serde",
"sha2",
@@ -1014,7 +1008,7 @@ dependencies = [
"futures",
"futures-intrusive",
"global-hotkey",
- "image 0.25.6",
+ "image 0.25.8",
"kameo",
"keyed_priority_queue",
"lazy_static",
@@ -1024,7 +1018,7 @@ dependencies = [
"nix 0.29.0",
"objc",
"objc2-app-kit",
- "png",
+ "png 0.17.16",
"rand 0.8.5",
"relative-path",
"reqwest",
@@ -1159,7 +1153,7 @@ dependencies = [
"ffmpeg-next",
"futures",
"gifski",
- "image 0.25.6",
+ "image 0.25.8",
"imgref",
"inquire",
"mp4",
@@ -1284,8 +1278,8 @@ dependencies = [
"flume",
"futures",
"hex",
- "image 0.25.6",
- "indexmap 2.10.0",
+ "image 0.25.8",
+ "indexmap 2.11.4",
"inquire",
"kameo",
"objc",
@@ -1330,7 +1324,7 @@ dependencies = [
"futures",
"futures-intrusive",
"glyphon",
- "image 0.25.6",
+ "image 0.25.8",
"log",
"pretty_assertions",
"reactive_graph",
@@ -1415,7 +1409,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -1425,15 +1419,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"
dependencies = [
"serde",
- "toml 0.9.5",
+ "toml 0.9.7",
]
[[package]]
name = "cc"
-version = "1.2.31"
+version = "1.2.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3a42d84bb6b69d3a8b3eaacf0d88f179e1929695e1ad012b6cf64d9caaa5fd2"
+checksum = "65193589c6404eb80b450d618eaf9a2cafaaafd57ecce47370519ef674a7bd44"
dependencies = [
+ "find-msvc-tools",
"jobserver",
"libc",
"shlex",
@@ -1477,9 +1472,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.1"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
+checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "cfg_aliases"
@@ -1498,17 +1493,16 @@ dependencies = [
[[package]]
name = "chrono"
-version = "0.4.41"
+version = "0.4.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d"
+checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
dependencies = [
- "android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"serde",
"wasm-bindgen",
- "windows-link",
+ "windows-link 0.2.0",
]
[[package]]
@@ -1555,9 +1549,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.5.46"
+version = "4.5.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c5e4fcf9c21d2e544ca1ee9d8552de13019a42aa7dbf32747fa7aaf1df76e57"
+checksum = "7eac00902d9d136acd712710d71823fb8ac8004ca445a89e73a41d45aa712931"
dependencies = [
"clap_builder",
"clap_derive",
@@ -1565,9 +1559,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.5.46"
+version = "4.5.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fecb53a0e6fcfb055f686001bc2e2592fa527efaf38dbe81a6a9563562e57d41"
+checksum = "2ad9bbf750e73b5884fb8a211a9424a1906c1e156724260fdae972f31d70e1d6"
dependencies = [
"anstream",
"anstyle",
@@ -1577,14 +1571,14 @@ dependencies = [
[[package]]
name = "clap_derive"
-version = "4.5.45"
+version = "4.5.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14cb31bb0a7d536caef2639baa7fad459e15c3144efefa6dbd1c84562c4739f6"
+checksum = "bbfd7eae0b0f1a6e63d4b13c9c478de77c2eb546fba158ad50b4203dc24b9f9c"
dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1606,8 +1600,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "afede46921767868c5c7f8f55202bdd8bec0bab6bc9605174200f45924f93c62"
dependencies = [
"clipboard-win",
- "image 0.25.6",
- "objc2 0.6.1",
+ "image 0.25.8",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-foundation 0.3.1",
"windows 0.59.0",
@@ -1655,7 +1649,7 @@ version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad36507aeb7e16159dfe68db81ccc27571c3ccd4b76fb2fb72fc59e7a4b1b64c"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block",
"cocoa-foundation 0.2.1",
"core-foundation 0.10.1",
@@ -1685,7 +1679,7 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81411967c50ee9a1fc11365f8c585f863a22a9697c89239c452292c40ba79b0d"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block",
"core-foundation 0.10.1",
"core-graphics-types 0.2.0",
@@ -1809,9 +1803,9 @@ dependencies = [
[[package]]
name = "core-audio-types-rs"
-version = "0.3.4"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02f7359c779907f80443d2b2d1b5a61182abb6d8ffd43b6fcb87a27c327d845f"
+checksum = "bebfc66b5ef3f159b3c4a6097e7c2a2e2cc71ec77fff7913e9895fae45f4c349"
dependencies = [
"core-foundation 0.10.1",
]
@@ -1861,7 +1855,7 @@ version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.10.1",
"core-graphics-types 0.2.0",
"foreign-types 0.5.0",
@@ -1874,7 +1868,7 @@ version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.10.1",
"core-graphics-types 0.2.0",
"foreign-types 0.5.0",
@@ -1887,7 +1881,7 @@ version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32eb7c354ae9f6d437a6039099ce7ecd049337a8109b23d73e48e8ffba8e9cd5"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.9.4",
"core-graphics-types 0.1.3",
"foreign-types 0.5.0",
@@ -1911,29 +1905,29 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.10.1",
"libc",
]
[[package]]
name = "core-media-rs"
-version = "0.3.4"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e33a8804301de5fc0f705ea1cdea692233c08bdcee8e42abb258f5de3b9a5e7"
+checksum = "6592bdc3e2b3479140e8c64d419b62d613526c8b61136ca990cd0bae4377db4f"
dependencies = [
"core-audio-types-rs",
"core-foundation 0.10.1",
"core-utils-rs",
"core-video-rs",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
name = "core-utils-rs"
-version = "0.3.4"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "068ec1aa07335261033bf610b2868ea9db05353468b72b0045ae469e00d26121"
+checksum = "791d9e8eb99cff8db5e2b6a5bb420b893476b7a064bb6889b2a691c1bb6d745c"
dependencies = [
"core-foundation 0.10.1",
"four-char-code",
@@ -1941,15 +1935,15 @@ dependencies = [
[[package]]
name = "core-video-rs"
-version = "0.3.4"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7559e93f816c05607068cb0b741d997a47709f4ba70b36a02d335f7136b30c46"
+checksum = "f1f1614e163a5d6fb972305fa14fc5c2989143da0426c213b74785b31e1fadb8"
dependencies = [
"core-foundation 0.10.1",
"core-graphics 0.24.0",
"core-utils-rs",
"io-surface",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -1978,7 +1972,7 @@ version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ceec7a6067e62d6f931a2baf6f3a751f4a892595bcec1461a3c94ef9949864b6"
dependencies = [
- "bindgen 0.72.0",
+ "bindgen 0.72.1",
]
[[package]]
@@ -1987,7 +1981,7 @@ version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da46a9d5a8905cc538a4a5bceb6a4510de7a51049c5588c0114efce102bcbbe8"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"fontdb 0.16.2",
"log",
"rangemap",
@@ -2166,7 +2160,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
dependencies = [
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2176,7 +2170,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"
dependencies = [
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2200,7 +2194,7 @@ dependencies = [
"proc-macro2",
"quote",
"strsim",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2211,7 +2205,7 @@ checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
dependencies = [
"darling_core",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2228,9 +2222,9 @@ checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476"
[[package]]
name = "data-url"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a"
+checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376"
[[package]]
name = "dbus"
@@ -2255,9 +2249,9 @@ dependencies = [
[[package]]
name = "deranged"
-version = "0.4.0"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e"
+checksum = "d630bccd429a5bb5a64b5e94f693bfc48c9f8566418fda4c494cc94f911f87cc"
dependencies = [
"powerfmt",
"serde",
@@ -2271,7 +2265,7 @@ checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2284,7 +2278,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustc_version",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2335,7 +2329,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -2350,10 +2344,10 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.6.1",
"libc",
- "objc2 0.6.1",
+ "objc2 0.6.2",
]
[[package]]
@@ -2364,7 +2358,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2396,7 +2390,7 @@ checksum = "788160fb30de9cdd857af31c6a2675904b16ece8fc2737b2c7127ba368c9d0f4"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2443,9 +2437,9 @@ checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
[[package]]
name = "downcast-rs"
-version = "2.0.1"
+version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea8a8b81cacc08888170eef4d13b775126db426d0b348bee9d18c2c1eaf123cf"
+checksum = "117240f60069e65410b3ae1bb213295bd828f707b5bec6596a1afc8793ce0cbc"
[[package]]
name = "dpi"
@@ -2498,7 +2492,7 @@ dependencies = [
"cc",
"memchr",
"rustc_version",
- "toml 0.9.5",
+ "toml 0.9.7",
"vswhom",
"winreg",
]
@@ -2542,7 +2536,7 @@ checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2562,7 +2556,7 @@ checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2573,22 +2567,23 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
name = "erased-serde"
-version = "0.4.6"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e004d887f51fcb9fef17317a2f3525c887d8aa3f4f50fed920816a688284a5b7"
+checksum = "259d404d09818dec19332e31d94558aeb442fea04c817006456c24b5460bbd4b"
dependencies = [
"serde",
+ "serde_core",
"typeid",
]
[[package]]
name = "errno"
-version = "0.3.13"
+version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -2658,6 +2653,26 @@ version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
+[[package]]
+name = "fax"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab"
+dependencies = [
+ "fax_derive",
+]
+
+[[package]]
+name = "fax_derive"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.106",
+]
+
[[package]]
name = "fdeflate"
version = "0.3.7"
@@ -2679,7 +2694,7 @@ name = "ffmpeg-next"
version = "7.1.0"
source = "git+https://github.com/CapSoftware/rust-ffmpeg?rev=49db1fede112#49db1fede1123029670728bd6e3fcbb07b0f5716"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"ffmpeg-sys-next",
"libc",
]
@@ -2710,16 +2725,22 @@ dependencies = [
[[package]]
name = "filetime"
-version = "0.2.25"
+version = "0.2.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586"
+checksum = "bc0505cd1b6fa6580283f6bdf70a73fcf4aba1184038c90902b92b3dd0df63ed"
dependencies = [
"cfg-if",
"libc",
"libredox",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7fd99930f64d146689264c637b5af2f0233a933bef0d8570e2526bf9e083192d"
+
[[package]]
name = "findshlibs"
version = "0.10.2"
@@ -2852,7 +2873,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2869,9 +2890,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
-version = "1.2.1"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
dependencies = [
"percent-encoding",
]
@@ -2978,7 +2999,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -3144,7 +3165,7 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc257fdb4038301ce4b9cd1b3b51704509692bb3ff716a410cbd07925d9dae55"
dependencies = [
- "rustix 1.0.8",
+ "rustix 1.1.2",
"windows-targets 0.52.6",
]
@@ -3182,7 +3203,7 @@ dependencies = [
"js-sys",
"libc",
"r-efi",
- "wasi 0.14.2+wasi-0.2.4",
+ "wasi 0.14.7+wasi-0.2.4",
"wasm-bindgen",
]
@@ -3290,7 +3311,7 @@ version = "0.18.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"futures-channel",
"futures-core",
"futures-executor",
@@ -3314,11 +3335,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"
dependencies = [
"heck 0.4.1",
- "proc-macro-crate 2.0.0",
+ "proc-macro-crate 2.0.2",
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -3333,9 +3354,9 @@ dependencies = [
[[package]]
name = "glob"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
+checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
[[package]]
name = "global-hotkey"
@@ -3345,11 +3366,11 @@ checksum = "b9247516746aa8e53411a0db9b62b0e24efbcf6a76e0ba73e5a91b512ddabed7"
dependencies = [
"crossbeam-channel",
"keyboard-types",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"once_cell",
"serde",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"windows-sys 0.59.0",
"x11rb",
"xkeysym",
@@ -3406,7 +3427,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"gpu-alloc-types",
]
@@ -3416,7 +3437,7 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
]
[[package]]
@@ -3437,9 +3458,9 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"gpu-descriptor-types",
- "hashbrown 0.15.4",
+ "hashbrown 0.15.5",
]
[[package]]
@@ -3448,7 +3469,7 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
]
[[package]]
@@ -3500,7 +3521,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -3521,7 +3542,7 @@ dependencies = [
"futures-core",
"futures-sink",
"http",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"slab",
"tokio",
"tokio-util",
@@ -3553,13 +3574,19 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
[[package]]
name = "hashbrown"
-version = "0.15.4"
+version = "0.15.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
dependencies = [
"foldhash",
]
+[[package]]
+name = "hashbrown"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
+
[[package]]
name = "heck"
version = "0.4.1"
@@ -3607,7 +3634,7 @@ checksum = "a56f203cd1c76362b69e3863fd987520ac36cf70a8c92627449b2f64a8cf7d65"
dependencies = [
"cfg-if",
"libc",
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
@@ -3682,13 +3709,14 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
[[package]]
name = "hyper"
-version = "1.6.0"
+version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
+checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e"
dependencies = [
+ "atomic-waker",
"bytes",
"futures-channel",
- "futures-util",
+ "futures-core",
"h2",
"http",
"http-body",
@@ -3696,6 +3724,7 @@ dependencies = [
"httpdate",
"itoa",
"pin-project-lite",
+ "pin-utils",
"smallvec",
"tokio",
"want",
@@ -3736,9 +3765,9 @@ dependencies = [
[[package]]
name = "hyper-util"
-version = "0.1.16"
+version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e"
+checksum = "3c6995591a8f1380fcb4ba966a252a4b29188d51d2b89e3a252f5305be65aea8"
dependencies = [
"base64 0.22.1",
"bytes",
@@ -3762,9 +3791,9 @@ dependencies = [
[[package]]
name = "iana-time-zone"
-version = "0.1.63"
+version = "0.1.64"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8"
+checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
dependencies = [
"android_system_properties",
"core-foundation-sys",
@@ -3772,7 +3801,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.61.2",
+ "windows-core 0.62.0",
]
[[package]]
@@ -3791,7 +3820,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc50b891e4acf8fe0e71ef88ec43ad82ee07b3810ad09de10f1d01f072ed4b98"
dependencies = [
"byteorder",
- "png",
+ "png 0.17.16",
]
[[package]]
@@ -3888,9 +3917,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "idna"
-version = "1.0.3"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
dependencies = [
"idna_adapter",
"smallvec",
@@ -3920,16 +3949,16 @@ dependencies = [
"gif",
"jpeg-decoder",
"num-traits",
- "png",
+ "png 0.17.16",
"qoi",
- "tiff",
+ "tiff 0.9.1",
]
[[package]]
name = "image"
-version = "0.25.6"
+version = "0.25.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db35664ce6b9810857a38a906215e75a9c879f0696556a39f59c62829710251a"
+checksum = "529feb3e6769d234375c4cf1ee2ce713682b8e76538cb13f9fc23e1400a591e7"
dependencies = [
"bytemuck",
"byteorder-lite",
@@ -3937,22 +3966,23 @@ dependencies = [
"exr",
"gif",
"image-webp",
+ "moxcms",
"num-traits",
- "png",
+ "png 0.18.0",
"qoi",
"ravif",
"rayon",
"rgb",
- "tiff",
+ "tiff 0.10.3",
"zune-core",
"zune-jpeg",
]
[[package]]
name = "image-webp"
-version = "0.2.3"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6970fe7a5300b4b42e62c52efa0187540a5bef546c60edaf554ef595d2e6f0b"
+checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3"
dependencies = [
"byteorder-lite",
"quick-error",
@@ -3996,13 +4026,14 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.10.0"
+version = "2.11.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
+checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
dependencies = [
"equivalent",
- "hashbrown 0.15.4",
+ "hashbrown 0.16.0",
"serde",
+ "serde_core",
]
[[package]]
@@ -4020,7 +4051,7 @@ version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fddf93031af70e75410a2511ec04d49e758ed2f26dad3404a934e0fb45cc12a"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"crossterm",
"dyn-clone",
"fuzzy-matcher",
@@ -4039,14 +4070,14 @@ checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "inventory"
-version = "0.3.20"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab08d7cd2c5897f2c949e5383ea7c7db03fb19130ffcfbf7eda795137ae3cb83"
+checksum = "bc61209c082fbeb19919bee74b176221b27223e27b65d781eb91af24eb1fb46e"
dependencies = [
"rustversion",
]
@@ -4065,11 +4096,11 @@ dependencies = [
[[package]]
name = "io-uring"
-version = "0.7.9"
+version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4"
+checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"libc",
]
@@ -4186,9 +4217,9 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
[[package]]
name = "jobserver"
-version = "0.1.33"
+version = "0.1.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a"
+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
dependencies = [
"getrandom 0.3.3",
"libc",
@@ -4205,9 +4236,9 @@ dependencies = [
[[package]]
name = "js-sys"
-version = "0.3.77"
+version = "0.3.80"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
+checksum = "852f13bec5eba4ba9afbeb93fd7c13fe56147f055939ae21c43a29a0ecb2702e"
dependencies = [
"once_cell",
"wasm-bindgen",
@@ -4241,7 +4272,7 @@ version = "0.17.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41a73be96f616ca2784f597b5b6635582f5a7b3ba73b1dbe7afa5d9667955d39"
dependencies = [
- "downcast-rs 2.0.1",
+ "downcast-rs 2.0.2",
"dyn-clone",
"futures",
"kameo_macros",
@@ -4260,7 +4291,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"uuid",
]
@@ -4270,7 +4301,7 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"serde",
"unicode-segmentation",
]
@@ -4281,7 +4312,7 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ee7893dab2e44ae5f9d0173f26ff4aa327c10b01b06a72b52dd9405b628640d"
dependencies = [
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
]
[[package]]
@@ -4309,7 +4340,7 @@ checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2"
dependencies = [
"cssparser",
"html5ever",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"selectors",
]
@@ -4353,9 +4384,9 @@ dependencies = [
[[package]]
name = "lebe"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
+checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8"
[[package]]
name = "lewton"
@@ -4394,9 +4425,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.174"
+version = "0.2.175"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
+checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
[[package]]
name = "libdbus-sys"
@@ -4445,11 +4476,11 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de"
[[package]]
name = "libredox"
-version = "0.1.9"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "391290121bad3d37fbddad76d8f5d1c1c314cfc646d143d7e07a3086ddff0ce3"
+checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"libc",
"redox_syscall",
]
@@ -4460,7 +4491,7 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65f3a4b81b2a2d8c7f300643676202debd1b7c929dbf5c9bb89402ea11d19810"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cc",
"convert_case 0.6.0",
"cookie-factory",
@@ -4484,9 +4515,9 @@ dependencies = [
[[package]]
name = "libz-rs-sys"
-version = "0.5.1"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "172a788537a2221661b480fee8dc5f96c580eb34fa88764d3205dc356c7e4221"
+checksum = "840db8cf39d9ec4dd794376f38acc40d0fc65eec2a8f484f7fd375b84602becd"
dependencies = [
"zlib-rs",
]
@@ -4499,9 +4530,9 @@ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
[[package]]
name = "linux-raw-sys"
-version = "0.9.4"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
+checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
[[package]]
name = "litemap"
@@ -4539,9 +4570,9 @@ dependencies = [
[[package]]
name = "log"
-version = "0.4.27"
+version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
+checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
[[package]]
name = "loop9"
@@ -4577,7 +4608,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "119c8490084af61b44c9eda9d626475847a186737c0378c85e32d77c33a01cd4"
dependencies = [
"cc",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-foundation 0.3.1",
"time",
]
@@ -4632,16 +4663,16 @@ checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "matchers"
-version = "0.1.0"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
+checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
dependencies = [
- "regex-automata 0.1.10",
+ "regex-automata",
]
[[package]]
@@ -4680,9 +4711,9 @@ checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
[[package]]
name = "memmap2"
-version = "0.9.7"
+version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "483758ad303d734cec05e5c12b41d7e93e6a6390c5e9dae6bdeb7c1259012d28"
+checksum = "843a98750cd611cc2965a8213b53b43e715f13c37a9e096c6408e69990961db7"
dependencies = [
"libc",
]
@@ -4702,7 +4733,7 @@ version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c43f73953f8cbe511f021b58f18c3ce1c3d1ae13fe953293e13345bf83217f25"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block",
"core-graphics-types 0.1.3",
"foreign-types 0.5.0",
@@ -4717,7 +4748,7 @@ version = "0.31.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f569fb946490b5743ad69813cb19629130ce9374034abe31614a36402d18f99e"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block",
"core-graphics-types 0.1.3",
"foreign-types 0.5.0",
@@ -4787,6 +4818,16 @@ dependencies = [
"windows-sys 0.59.0",
]
+[[package]]
+name = "moxcms"
+version = "0.7.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddd32fa8935aeadb8a8a6b6b351e40225570a37c43de67690383d87ef170cd08"
+dependencies = [
+ "num-traits",
+ "pxfm",
+]
+
[[package]]
name = "mp4"
version = "0.14.0"
@@ -4811,14 +4852,14 @@ dependencies = [
"dpi",
"gtk",
"keyboard-types",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-foundation 0.3.1",
"once_cell",
- "png",
+ "png 0.17.16",
"serde",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"windows-sys 0.60.2",
]
@@ -4830,20 +4871,20 @@ checksum = "2b977c445f26e49757f9aca3631c3b8b836942cb278d69a92e7b80d3b24da632"
dependencies = [
"arrayvec",
"bit-set",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg_aliases",
"codespan-reporting",
"half",
- "hashbrown 0.15.4",
+ "hashbrown 0.15.5",
"hexf-parse",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"log",
"num-traits",
"once_cell",
"rustc-hash 1.1.0",
"spirv",
"strum 0.26.3",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"unicode-ident",
]
@@ -4885,7 +4926,7 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2076a31b7010b17a38c01907c45b945e8f11495ee4dd588309718901b1f7a5b7"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"jni-sys",
"log",
"ndk-sys 0.5.0+25.2.9519653",
@@ -4899,7 +4940,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"jni-sys",
"log",
"ndk-sys 0.6.0+11769913",
@@ -4953,7 +4994,7 @@ version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"libc",
]
@@ -4964,7 +5005,7 @@ version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"cfg_aliases",
"libc",
@@ -4976,7 +5017,7 @@ version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"cfg_aliases",
"libc",
@@ -5030,12 +5071,11 @@ dependencies = [
[[package]]
name = "nu-ansi-term"
-version = "0.46.0"
+version = "0.50.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"
+checksum = "d4a28e057d01f97e61255210fcff094d74ed0466038633e95017f5beb68e4399"
dependencies = [
- "overload",
- "winapi",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -5062,7 +5102,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5122,10 +5162,10 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5167,9 +5207,9 @@ dependencies = [
[[package]]
name = "objc2"
-version = "0.6.1"
+version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "88c6597e14493ab2e44ce58f2fdecf095a51f12ca57bec060a11c57332520551"
+checksum = "561f357ba7f3a2a61563a186a163d0a3a5247e1089524a3981d49adb775078bc"
dependencies = [
"objc2-encode",
"objc2-exception-helper",
@@ -5181,10 +5221,10 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6f29f568bec459b0ddff777cec4fe3fd8666d82d5a40ebd0ff7e66134f89bcc"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.6.1",
"libc",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-cloud-kit",
"objc2-core-data",
"objc2-core-foundation",
@@ -5200,10 +5240,10 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e085a2e16c61dadbad7a808fc9d5b5f8472b1b825b53d529c9f64ccac78e722"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.6.1",
"dispatch2",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-avf-audio",
"objc2-core-foundation",
"objc2-core-graphics",
@@ -5220,7 +5260,7 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfc1d11521c211a7ebe17739fc806719da41f56c6b3f949d9861b459188ce910"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-foundation 0.3.1",
]
@@ -5230,8 +5270,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17614fdcd9b411e6ff1117dfb1d0150f908ba83a7df81b1f118005fe0a8ea15d"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-foundation 0.3.1",
]
@@ -5242,7 +5282,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca44961e888e19313b808f23497073e3f6b3c22bb485056674c8b49f3b025c82"
dependencies = [
"dispatch2",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-core-audio-types",
"objc2-core-foundation",
]
@@ -5253,8 +5293,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0f1cc99bb07ad2ddb6527ddf83db6a15271bb036b3eb94b801cd44fdc666ee1"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
]
[[package]]
@@ -5263,8 +5303,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "291fbbf7d29287518e8686417cf7239c74700fd4b607623140a7d4a3c834329d"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-foundation 0.3.1",
]
@@ -5274,9 +5314,9 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c10c2894a6fed806ade6027bcd50662746363a9589d3ec9d9bef30a4e4bc166"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"dispatch2",
- "objc2 0.6.1",
+ "objc2 0.6.2",
]
[[package]]
@@ -5285,9 +5325,9 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "989c6c68c13021b5c2d6b71456ebb0f9dc78d752e86a98da7c716f4f9470f5a4"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"dispatch2",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-core-foundation",
"objc2-io-surface",
]
@@ -5298,7 +5338,7 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79b3dc0cc4386b6ccf21c157591b34a7f44c8e75b064f85502901ab2188c007e"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-foundation 0.3.1",
]
@@ -5308,9 +5348,9 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0b7afa6822e2fa20dfc88d10186b2432bf8560b5ed73ec9d31efd78277bc878"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"dispatch2",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-core-audio",
"objc2-core-audio-types",
"objc2-core-foundation",
@@ -5323,8 +5363,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1989c3e76c7e978cab0ba9e6f4961cd00ed14ca21121444cc26877403bfb6303"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-io-surface",
@@ -5351,7 +5391,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.5.1",
"libc",
"objc2 0.5.2",
@@ -5363,10 +5403,10 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "900831247d2fe1a09a683278e5384cfb8c80c79fe6b166f9d14bfdde0ea1b03c"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.6.1",
"libc",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-core-foundation",
]
@@ -5376,8 +5416,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7282e9ac92529fa3457ce90ebb15f4ecbc383e8338060960760fa2cf75420c3c"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-core-foundation",
]
@@ -5387,7 +5427,7 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9052cb1bb50a4c161d934befcf879526fb87ae9a68858f241e693ca46225cf5a"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-core-foundation",
]
@@ -5397,7 +5437,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -5409,8 +5449,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26bb88504b5a050dbba515d2414607bf5e57dd56b107bc5f0351197a3e7bdc5d"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-foundation 0.3.1",
]
@@ -5421,7 +5461,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -5434,8 +5474,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90ffb6a0cd5f182dc964334388560b12a57f7b74b3e2dec5e2722aa2dfb2ccd5"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-foundation 0.3.1",
]
@@ -5445,8 +5485,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1f8e0ef3ab66b08c42644dcb34dba6ec0a574bbd8adbb8bdbdc7a2779731a44"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-core-foundation",
]
@@ -5456,8 +5496,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25b1312ad7bc8a0e92adae17aa10f90aae1fb618832f9b993b022b591027daed"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.2",
"objc2-core-foundation",
"objc2-foundation 0.3.1",
]
@@ -5468,9 +5508,9 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91672909de8b1ce1c2252e95bbee8c1649c9ad9d14b9248b3d7b4c47903c47ad"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.6.1",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-foundation 0.3.1",
@@ -5567,7 +5607,7 @@ version = "0.10.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"foreign-types 0.3.2",
"libc",
@@ -5584,7 +5624,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5683,20 +5723,14 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-foundation 0.3.1",
"objc2-osa-kit",
"serde",
"serde_json",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
-[[package]]
-name = "overload"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
-
[[package]]
name = "pango"
version = "0.18.3"
@@ -5776,9 +5810,9 @@ dependencies = [
[[package]]
name = "percent-encoding"
-version = "2.3.1"
+version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
[[package]]
name = "petgraph"
@@ -5787,7 +5821,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db"
dependencies = [
"fixedbitset",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
]
[[package]]
@@ -5894,7 +5928,7 @@ dependencies = [
"phf_shared 0.11.3",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5960,7 +5994,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08e645ba5c45109106d56610b3ee60eb13a6f2beb8b74f8dc8186cf261788dda"
dependencies = [
"anyhow",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"libc",
"libspa",
"libspa-sys",
@@ -5989,13 +6023,13 @@ checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
[[package]]
name = "plist"
-version = "1.7.4"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3af6b589e163c5a788fab00ce0c0366f6efbb9959c2f9874b224936af7fce7e1"
+checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07"
dependencies = [
"base64 0.22.1",
- "indexmap 2.10.0",
- "quick-xml 0.38.1",
+ "indexmap 2.11.4",
+ "quick-xml 0.38.3",
"serde",
"time",
]
@@ -6013,18 +6047,31 @@ dependencies = [
"miniz_oxide",
]
+[[package]]
+name = "png"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0"
+dependencies = [
+ "bitflags 2.9.4",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide",
+]
+
[[package]]
name = "polling"
-version = "3.10.0"
+version = "3.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5bd19146350fe804f7cb2669c851c03d69da628803dab0d98018142aaa5d829"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
dependencies = [
"cfg-if",
"concurrent-queue",
"hermit-abi",
"pin-project-lite",
- "rustix 1.0.8",
- "windows-sys 0.60.2",
+ "rustix 1.1.2",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -6044,9 +6091,9 @@ dependencies = [
[[package]]
name = "potential_utf"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585"
+checksum = "84df19adbe5b5a0782edcab45899906947ab039ccf4573713735ee7de1e6b08a"
dependencies = [
"zerovec",
]
@@ -6090,12 +6137,12 @@ dependencies = [
[[package]]
name = "prettyplease"
-version = "0.2.36"
+version = "0.2.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff24dfcda44452b9816fff4cd4227e1bb73ff5a2f1bc1105aa92fb8565ce44d2"
+checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
dependencies = [
"proc-macro2",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -6110,20 +6157,21 @@ dependencies = [
[[package]]
name = "proc-macro-crate"
-version = "2.0.0"
+version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8"
+checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
dependencies = [
- "toml_edit 0.20.7",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
]
[[package]]
name = "proc-macro-crate"
-version = "3.3.0"
+version = "3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35"
+checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983"
dependencies = [
- "toml_edit 0.22.27",
+ "toml_edit 0.23.6",
]
[[package]]
@@ -6158,9 +6206,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
[[package]]
name = "proc-macro2"
-version = "1.0.95"
+version = "1.0.101"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
+checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
dependencies = [
"unicode-ident",
]
@@ -6181,7 +6229,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b"
dependencies = [
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -6200,6 +6248,15 @@ dependencies = [
"psl-types",
]
+[[package]]
+name = "pxfm"
+version = "0.1.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f55f4fedc84ed39cb7a489322318976425e42a147e2be79d8f878e2884f94e84"
+dependencies = [
+ "num-traits",
+]
+
[[package]]
name = "qoi"
version = "0.4.1"
@@ -6226,9 +6283,9 @@ dependencies = [
[[package]]
name = "quick-xml"
-version = "0.38.1"
+version = "0.38.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9845d9dccf565065824e69f9f235fafba1587031eda353c1f1561cd6a6be78f4"
+checksum = "42a232e7487fc2ef313d96dde7948e7a3c05101870d8985e4fd8d26aedd27b89"
dependencies = [
"memchr",
]
@@ -6247,7 +6304,7 @@ dependencies = [
"rustc-hash 2.1.1",
"rustls",
"socket2",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tokio",
"tracing",
"web-time",
@@ -6268,7 +6325,7 @@ dependencies = [
"rustls",
"rustls-pki-types",
"slab",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tinyvec",
"tracing",
"web-time",
@@ -6483,9 +6540,9 @@ checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
[[package]]
name = "rayon"
-version = "1.10.0"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa"
+checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
dependencies = [
"either",
"rayon-core",
@@ -6493,9 +6550,9 @@ dependencies = [
[[package]]
name = "rayon-core"
-version = "1.12.1"
+version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"
+checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
dependencies = [
"crossbeam-deque",
"crossbeam-utils",
@@ -6516,7 +6573,7 @@ dependencies = [
"rustc-hash 2.1.1",
"send_wrapper",
"slotmap",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"web-sys",
]
@@ -6548,7 +6605,7 @@ version = "0.5.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
]
[[package]]
@@ -6559,7 +6616,7 @@ checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
dependencies = [
"getrandom 0.2.16",
"libredox",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -6579,52 +6636,37 @@ checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "regex"
-version = "1.11.1"
+version = "1.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
+checksum = "23d7fd106d8c02486a8d64e778353d1cffe08ce79ac2e82f540c86d0facf6912"
dependencies = [
"aho-corasick",
"memchr",
- "regex-automata 0.4.9",
- "regex-syntax 0.8.5",
-]
-
-[[package]]
-name = "regex-automata"
-version = "0.1.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
-dependencies = [
- "regex-syntax 0.6.29",
+ "regex-automata",
+ "regex-syntax",
]
[[package]]
name = "regex-automata"
-version = "0.4.9"
+version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
+checksum = "6b9458fa0bfeeac22b5ca447c63aaf45f28439a709ccd244698632f9aa6394d6"
dependencies = [
"aho-corasick",
"memchr",
- "regex-syntax 0.8.5",
+ "regex-syntax",
]
[[package]]
name = "regex-syntax"
-version = "0.6.29"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
-
-[[package]]
-name = "regex-syntax"
-version = "0.8.5"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
+checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001"
[[package]]
name = "relative-path"
@@ -6649,9 +6691,9 @@ checksum = "51743d3e274e2b18df81c4dc6caf8a5b8e15dbe799e0dca05c7617380094e884"
[[package]]
name = "reqwest"
-version = "0.12.22"
+version = "0.12.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cbc931937e6ca3a06e3b6c0aa7841849b160a90351d6ab467a8b9b9959767531"
+checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb"
dependencies = [
"base64 0.22.1",
"bytes",
@@ -6739,7 +6781,7 @@ dependencies = [
"gtk-sys",
"js-sys",
"log",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-foundation 0.3.1",
@@ -6847,7 +6889,7 @@ version = "0.38.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"errno",
"libc",
"linux-raw-sys 0.4.15",
@@ -6856,15 +6898,15 @@ dependencies = [
[[package]]
name = "rustix"
-version = "1.0.8"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8"
+checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"errno",
"libc",
- "linux-raw-sys 0.9.4",
- "windows-sys 0.60.2",
+ "linux-raw-sys 0.11.0",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -6893,9 +6935,9 @@ dependencies = [
[[package]]
name = "rustls-webpki"
-version = "0.103.4"
+version = "0.103.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a17884ae0c1b773f1ccd2bd4a8c72f16da897310a98b0e84bf349ad5ead92fc"
+checksum = "8572f3c2cb9934231157b45499fc41e1f58c589fdfb81a844ba873265e80f8eb"
dependencies = [
"ring",
"rustls-pki-types",
@@ -6904,9 +6946,9 @@ dependencies = [
[[package]]
name = "rustversion"
-version = "1.0.21"
+version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "rustybuzz"
@@ -6914,7 +6956,7 @@ version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfb9cf8877777222e4a3bc7eb247e398b56baba500c38c1c46842431adc8b55c"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"bytemuck",
"libm",
"smallvec",
@@ -6931,7 +6973,7 @@ version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd3c7c96f8a08ee34eff8857b11b49b07d71d1c3f4e88f8a88d4c9e9f90b1702"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"bytemuck",
"core_maths",
"log",
@@ -6973,7 +7015,7 @@ dependencies = [
"pipewire",
"rand 0.8.5",
"sysinfo",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"windows 0.58.0",
"windows-capture",
]
@@ -7021,7 +7063,7 @@ dependencies = [
"clap",
"futures",
"inquire",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-foundation 0.3.1",
"scap-targets",
@@ -7046,11 +7088,11 @@ dependencies = [
[[package]]
name = "schannel"
-version = "0.1.27"
+version = "0.1.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d"
+checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -7101,7 +7143,7 @@ dependencies = [
"proc-macro2",
"quote",
"serde_derive_internals",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7138,7 +7180,7 @@ version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.9.4",
"core-foundation-sys",
"libc",
@@ -7147,9 +7189,9 @@ dependencies = [
[[package]]
name = "security-framework-sys"
-version = "2.14.0"
+version = "2.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32"
+checksum = "cc1f0cbffaac4852523ce30d8bd3c5cdc873501d96ff467ca09b6767bb8cd5c0"
dependencies = [
"core-foundation-sys",
"libc",
@@ -7181,11 +7223,12 @@ checksum = "0f7d95a54511e0c7be3f51e8867aa8cf35148d7b9445d44de2f943e2b206e749"
[[package]]
name = "semver"
-version = "1.0.26"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
+checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
dependencies = [
"serde",
+ "serde_core",
]
[[package]]
@@ -7319,33 +7362,44 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.219"
+version = "1.0.225"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
+checksum = "fd6c24dee235d0da097043389623fb913daddf92c76e9f5a1db88607a0bcbd1d"
dependencies = [
+ "serde_core",
"serde_derive",
]
[[package]]
name = "serde-untagged"
-version = "0.1.8"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34836a629bcbc6f1afdf0907a744870039b1e14c0561cb26094fa683b158eff3"
+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
dependencies = [
"erased-serde",
"serde",
+ "serde_core",
"typeid",
]
+[[package]]
+name = "serde_core"
+version = "1.0.225"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "659356f9a0cb1e529b24c01e43ad2bdf520ec4ceaf83047b83ddcc2251f96383"
+dependencies = [
+ "serde_derive",
+]
+
[[package]]
name = "serde_derive"
-version = "1.0.219"
+version = "1.0.225"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
+checksum = "0ea936adf78b1f766949a4977b91d2f5595825bd6ec079aa9543ad2685fc4516"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7356,29 +7410,31 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "serde_json"
-version = "1.0.142"
+version = "1.0.145"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "030fedb782600dcbd6f02d479bf0d817ac3bb40d644745b769d6a96bc3afc5a7"
+checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
dependencies = [
"itoa",
"memchr",
"ryu",
"serde",
+ "serde_core",
]
[[package]]
name = "serde_path_to_error"
-version = "0.1.17"
+version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59fab13f937fa393d08645bf3a84bdfe86e296747b506ada67bb15f10f218b2a"
+checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
dependencies = [
"itoa",
"serde",
+ "serde_core",
]
[[package]]
@@ -7389,7 +7445,7 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7403,11 +7459,11 @@ dependencies = [
[[package]]
name = "serde_spanned"
-version = "1.0.0"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40734c41988f7306bb04f0ecf60ec0f3f1caa34290e4e8ea471dcd3346483b83"
+checksum = "5417783452c2be558477e104686f7de5dae53dba813c28435e0e70f82d9b04ee"
dependencies = [
- "serde",
+ "serde_core",
]
[[package]]
@@ -7432,7 +7488,7 @@ dependencies = [
"chrono",
"hex",
"indexmap 1.9.3",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"schemars 0.9.0",
"schemars 1.0.4",
"serde",
@@ -7451,7 +7507,7 @@ dependencies = [
"darling",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7473,7 +7529,7 @@ checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7625,7 +7681,7 @@ dependencies = [
"regex",
"serde_json",
"tar",
- "toml 0.8.23",
+ "toml 0.8.2",
]
[[package]]
@@ -7634,7 +7690,7 @@ version = "0.86.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e372258f52414e04de007326fa497581617c9fa872a3225dca5e42212723c426"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"lazy_static",
"skia-bindings",
]
@@ -7651,9 +7707,9 @@ dependencies = [
[[package]]
name = "slab"
-version = "0.4.10"
+version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04dc19736151f35336d325007ac991178d504a119863a2fcb3758cdb5e52c50d"
+checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
[[package]]
name = "slotmap"
@@ -7756,7 +7812,7 @@ dependencies = [
"Inflector",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7795,7 +7851,7 @@ version = "0.3.0+sdk-1.3.268.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
]
[[package]]
@@ -7878,7 +7934,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustversion",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7890,7 +7946,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7999,9 +8055,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.104"
+version = "2.0.106"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
+checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
dependencies = [
"proc-macro2",
"quote",
@@ -8025,7 +8081,7 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8058,7 +8114,7 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.9.4",
"system-configuration-sys",
]
@@ -8082,7 +8138,7 @@ dependencies = [
"cfg-expr",
"heck 0.5.0",
"pkg-config",
- "toml 0.8.23",
+ "toml 0.8.2",
"version-compare",
]
@@ -8092,7 +8148,7 @@ version = "0.34.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "959469667dbcea91e5485fc48ba7dd6023face91bb0f1a14681a70f99847c3f7"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.6.1",
"core-foundation 0.10.1",
"core-graphics 0.24.0",
@@ -8110,7 +8166,7 @@ dependencies = [
"ndk 0.9.0",
"ndk-context",
"ndk-sys 0.6.0+11769913",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-foundation 0.3.1",
"once_cell",
@@ -8134,7 +8190,7 @@ checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8172,13 +8228,13 @@ dependencies = [
"heck 0.5.0",
"http",
"http-range",
- "image 0.25.6",
+ "image 0.25.8",
"jni",
"libc",
"log",
"mime",
"muda",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-foundation 0.3.1",
"objc2-ui-kit",
@@ -8198,7 +8254,7 @@ dependencies = [
"tauri-runtime",
"tauri-runtime-wry",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tokio",
"tray-icon",
"url",
@@ -8227,7 +8283,7 @@ dependencies = [
"serde_json",
"tauri-utils",
"tauri-winres",
- "toml 0.9.5",
+ "toml 0.9.7",
"walkdir",
]
@@ -8242,16 +8298,16 @@ dependencies = [
"ico",
"json-patch",
"plist",
- "png",
+ "png 0.17.16",
"proc-macro2",
"quote",
"semver",
"serde",
"serde_json",
"sha2",
- "syn 2.0.104",
+ "syn 2.0.106",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"time",
"url",
"uuid",
@@ -8267,7 +8323,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"tauri-codegen",
"tauri-utils",
]
@@ -8277,7 +8333,7 @@ name = "tauri-nspanel"
version = "2.0.1"
source = "git+https://github.com/ahkohd/tauri-nspanel?branch=v2#18ffb9a201fbf6fedfaa382fd4b92315ea30ab1a"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block",
"cocoa 0.26.1",
"core-foundation 0.10.1",
@@ -8301,7 +8357,7 @@ dependencies = [
"serde",
"serde_json",
"tauri-utils",
- "toml 0.9.5",
+ "toml 0.9.7",
"walkdir",
]
@@ -8317,7 +8373,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -8334,7 +8390,7 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tracing",
"url",
"windows-registry",
@@ -8355,7 +8411,7 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-plugin-fs",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"url",
]
@@ -8376,8 +8432,8 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-utils",
- "thiserror 2.0.12",
- "toml 0.9.5",
+ "thiserror 2.0.16",
+ "toml 0.9.7",
"url",
]
@@ -8393,7 +8449,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -8414,7 +8470,7 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-plugin-fs",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tokio",
"url",
"urlpattern",
@@ -8434,7 +8490,7 @@ dependencies = [
"serde_repr",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"time",
"url",
]
@@ -8469,7 +8525,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"url",
"windows 0.61.3",
"zbus",
@@ -8490,7 +8546,7 @@ dependencies = [
"sys-locale",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -8505,7 +8561,7 @@ dependencies = [
"serde_repr",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -8535,7 +8591,7 @@ dependencies = [
"shared_child",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tokio",
]
@@ -8549,7 +8605,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin-deep-link",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tracing",
"windows-sys 0.60.2",
"zbus",
@@ -8566,7 +8622,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tokio",
"tracing",
]
@@ -8595,7 +8651,7 @@ dependencies = [
"tauri",
"tauri-plugin",
"tempfile",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"time",
"tokio",
"url",
@@ -8609,13 +8665,13 @@ version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d5f6fe3291bfa609c7e0b0ee3bedac294d94c7018934086ce782c1d0f2a468e"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"log",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
]
[[package]]
@@ -8629,14 +8685,14 @@ dependencies = [
"gtk",
"http",
"jni",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-ui-kit",
"objc2-web-kit",
"raw-window-handle",
"serde",
"serde_json",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"url",
"webkit2gtk",
"webview2-com",
@@ -8653,7 +8709,7 @@ dependencies = [
"http",
"jni",
"log",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-foundation 0.3.1",
"once_cell",
@@ -8695,7 +8751,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8728,8 +8784,8 @@ dependencies = [
"serde_json",
"serde_with",
"swift-rs",
- "thiserror 2.0.12",
- "toml 0.9.5",
+ "thiserror 2.0.16",
+ "toml 0.9.7",
"url",
"urlpattern",
"uuid",
@@ -8743,7 +8799,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd21509dd1fa9bd355dc29894a6ff10635880732396aa38c0066c1e6c1ab8074"
dependencies = [
"embed-resource",
- "toml 0.9.5",
+ "toml 0.9.7",
]
[[package]]
@@ -8753,22 +8809,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b1e66e07de489fe43a46678dd0b8df65e0c973909df1b60ba33874e297ba9b9"
dependencies = [
"quick-xml 0.37.5",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"windows 0.61.3",
"windows-version",
]
[[package]]
name = "tempfile"
-version = "3.20.0"
+version = "3.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1"
+checksum = "84fa4d11fadde498443cca10fd3ac23c951f0dc59e080e9f4b93d4df4e4eea53"
dependencies = [
"fastrand",
"getrandom 0.3.3",
"once_cell",
- "rustix 1.0.8",
- "windows-sys 0.59.0",
+ "rustix 1.1.2",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -8802,11 +8858,11 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "2.0.12"
+version = "2.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
+checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0"
dependencies = [
- "thiserror-impl 2.0.12",
+ "thiserror-impl 2.0.16",
]
[[package]]
@@ -8817,18 +8873,18 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "thiserror-impl"
-version = "2.0.12"
+version = "2.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
+checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8851,14 +8907,27 @@ dependencies = [
"weezl",
]
+[[package]]
+name = "tiff"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af9605de7fee8d9551863fd692cce7637f548dbd9db9180fcc07ccc6d26c336f"
+dependencies = [
+ "fax",
+ "flate2",
+ "half",
+ "quick-error",
+ "weezl",
+ "zune-jpeg",
+]
+
[[package]]
name = "time"
-version = "0.3.41"
+version = "0.3.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40"
+checksum = "83bde6f1ec10e72d583d91623c939f623002284ef622b87de38cfd546cbf2031"
dependencies = [
"deranged",
- "itoa",
"num-conv",
"powerfmt",
"serde",
@@ -8868,15 +8937,15 @@ dependencies = [
[[package]]
name = "time-core"
-version = "0.1.4"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c"
+checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b"
[[package]]
name = "time-macros"
-version = "0.2.22"
+version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49"
+checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3"
dependencies = [
"num-conv",
"time-core",
@@ -8902,7 +8971,7 @@ dependencies = [
"bytemuck",
"cfg-if",
"log",
- "png",
+ "png 0.17.16",
"tiny-skia-path",
]
@@ -8929,9 +8998,9 @@ dependencies = [
[[package]]
name = "tinyvec"
-version = "1.9.0"
+version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71"
+checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
dependencies = [
"tinyvec_macros",
]
@@ -8970,7 +9039,7 @@ checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8985,9 +9054,9 @@ dependencies = [
[[package]]
name = "tokio-rustls"
-version = "0.26.2"
+version = "0.26.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b"
+checksum = "05f63835928ca123f1bef57abbcd23bb2ba0ac9ae1235f1e65bda0d06e7786bd"
dependencies = [
"rustls",
"tokio",
@@ -9032,47 +9101,47 @@ dependencies = [
[[package]]
name = "toml"
-version = "0.8.23"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
+checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"
dependencies = [
"serde",
"serde_spanned 0.6.9",
- "toml_datetime 0.6.11",
- "toml_edit 0.22.27",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
]
[[package]]
name = "toml"
-version = "0.9.5"
+version = "0.9.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75129e1dc5000bfbaa9fee9d1b21f974f9fbad9daec557a521ee6e080825f6e8"
+checksum = "00e5e5d9bf2475ac9d4f0d9edab68cc573dc2fd644b0dba36b0c30a92dd9eaa0"
dependencies = [
- "indexmap 2.10.0",
- "serde",
- "serde_spanned 1.0.0",
- "toml_datetime 0.7.0",
+ "indexmap 2.11.4",
+ "serde_core",
+ "serde_spanned 1.0.2",
+ "toml_datetime 0.7.2",
"toml_parser",
"toml_writer",
- "winnow 0.7.12",
+ "winnow 0.7.13",
]
[[package]]
name = "toml_datetime"
-version = "0.6.11"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
+checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"
dependencies = [
"serde",
]
[[package]]
name = "toml_datetime"
-version = "0.7.0"
+version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bade1c3e902f58d73d3f294cd7f20391c1cb2fbcb643b73566bc773971df91e3"
+checksum = "32f1085dec27c2b6632b04c80b3bb1b4300d6495d1e129693bdda7d91e72eec1"
dependencies = [
- "serde",
+ "serde_core",
]
[[package]]
@@ -9081,56 +9150,50 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.10.0",
- "toml_datetime 0.6.11",
+ "indexmap 2.11.4",
+ "toml_datetime 0.6.3",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
-version = "0.20.7"
+version = "0.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81"
+checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
dependencies = [
- "indexmap 2.10.0",
- "toml_datetime 0.6.11",
+ "indexmap 2.11.4",
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
-version = "0.22.27"
+version = "0.23.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
+checksum = "f3effe7c0e86fdff4f69cdd2ccc1b96f933e24811c5441d44904e8683e27184b"
dependencies = [
- "indexmap 2.10.0",
- "serde",
- "serde_spanned 0.6.9",
- "toml_datetime 0.6.11",
- "toml_write",
- "winnow 0.7.12",
+ "indexmap 2.11.4",
+ "toml_datetime 0.7.2",
+ "toml_parser",
+ "winnow 0.7.13",
]
[[package]]
name = "toml_parser"
-version = "1.0.2"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b551886f449aa90d4fe2bdaa9f4a2577ad2dde302c61ecf262d80b116db95c10"
+checksum = "4cf893c33be71572e0e9aa6dd15e6677937abd686b066eac3f8cd3531688a627"
dependencies = [
- "winnow 0.7.12",
+ "winnow 0.7.13",
]
-[[package]]
-name = "toml_write"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
-
[[package]]
name = "toml_writer"
-version = "1.0.2"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcc842091f2def52017664b53082ecbbeb5c7731092bad69d2c63050401dfd64"
+checksum = "d163a63c116ce562a22cda521fcc4d79152e7aba014456fb5eb442f6d6a10109"
[[package]]
name = "tower"
@@ -9154,7 +9217,7 @@ version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"bytes",
"futures-util",
"http",
@@ -9210,7 +9273,7 @@ checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -9236,14 +9299,14 @@ dependencies = [
[[package]]
name = "tracing-subscriber"
-version = "0.3.19"
+version = "0.3.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008"
+checksum = "2054a14f5307d601f88daf0553e1cbf472acc4f2c51afab632431cdcd72124d5"
dependencies = [
"matchers",
"nu-ansi-term",
"once_cell",
- "regex",
+ "regex-automata",
"sharded-slab",
"smallvec",
"thread_local",
@@ -9262,15 +9325,15 @@ dependencies = [
"dirs",
"libappindicator",
"muda",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-foundation 0.3.1",
"once_cell",
- "png",
+ "png 0.17.16",
"serde",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"windows-sys 0.59.0",
]
@@ -9442,9 +9505,9 @@ checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e"
[[package]]
name = "unicode-ident"
-version = "1.0.18"
+version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
+checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
[[package]]
name = "unicode-linebreak"
@@ -9509,9 +9572,9 @@ dependencies = [
[[package]]
name = "url"
-version = "2.5.4"
+version = "2.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
+checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"
dependencies = [
"form_urlencoded",
"idna",
@@ -9578,9 +9641,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "uuid"
-version = "1.17.0"
+version = "1.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d"
+checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2"
dependencies = [
"getrandom 0.3.3",
"js-sys",
@@ -9676,44 +9739,54 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
name = "wasi"
-version = "0.14.2+wasi-0.2.4"
+version = "0.14.7+wasi-0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3"
+checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c"
dependencies = [
- "wit-bindgen-rt",
+ "wasip2",
+]
+
+[[package]]
+name = "wasip2"
+version = "1.0.1+wasi-0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
+dependencies = [
+ "wit-bindgen",
]
[[package]]
name = "wasm-bindgen"
-version = "0.2.100"
+version = "0.2.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
+checksum = "ab10a69fbd0a177f5f649ad4d8d3305499c42bab9aef2f7ff592d0ec8f833819"
dependencies = [
"cfg-if",
"once_cell",
"rustversion",
"wasm-bindgen-macro",
+ "wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.100"
+version = "0.2.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
+checksum = "0bb702423545a6007bbc368fde243ba47ca275e549c8a28617f56f6ba53b1d1c"
dependencies = [
"bumpalo",
"log",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.50"
+version = "0.4.53"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
+checksum = "a0b221ff421256839509adbb55998214a70d829d3a28c69b4a6672e9d2a42f67"
dependencies = [
"cfg-if",
"js-sys",
@@ -9724,9 +9797,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.100"
+version = "0.2.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
+checksum = "fc65f4f411d91494355917b605e1480033152658d71f722a90647f56a70c88a0"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -9734,22 +9807,22 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.100"
+version = "0.2.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
+checksum = "ffc003a991398a8ee604a401e194b6b3a39677b3173d6e74495eb51b82e99a32"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.100"
+version = "0.2.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
+checksum = "293c37f4efa430ca14db3721dfbe48d8c33308096bd44d80ebaa775ab71ba1cf"
dependencies = [
"unicode-ident",
]
@@ -9775,7 +9848,7 @@ checksum = "673a33c33048a5ade91a6b139580fa174e19fb0d23f396dca9fa15f2e1e49b35"
dependencies = [
"cc",
"downcast-rs 1.2.1",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"scoped-tls",
"smallvec",
"wayland-sys",
@@ -9787,8 +9860,8 @@ version = "0.31.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c66a47e840dc20793f2264eb4b3e4ecb4b75d91c0dd4af04b456128e0bdd449d"
dependencies = [
- "bitflags 2.9.1",
- "rustix 1.0.8",
+ "bitflags 2.9.4",
+ "rustix 1.1.2",
"wayland-backend",
"wayland-scanner",
]
@@ -9799,7 +9872,7 @@ version = "0.32.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efa790ed75fbfd71283bd2521a1cfdc022aabcc28bdcff00851f9e4ae88d9901"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"wayland-backend",
"wayland-client",
"wayland-scanner",
@@ -9811,7 +9884,7 @@ version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efd94963ed43cf9938a090ca4f7da58eb55325ec8200c3848963e98dc25b78ec"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"wayland-backend",
"wayland-client",
"wayland-protocols",
@@ -9842,9 +9915,9 @@ dependencies = [
[[package]]
name = "web-sys"
-version = "0.3.77"
+version = "0.3.80"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
+checksum = "fbe734895e869dc429d78c4b433f8d17d95f8d05317440b4fad5ab2d33e596dc"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -9935,7 +10008,7 @@ checksum = "1d228f15bba3b9d56dde8bddbee66fa24545bd17b48d5128ccf4a8742b18e431"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -9944,7 +10017,7 @@ version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36695906a1b53a3bf5c4289621efedac12b73eeb0b89e7e1a89b517302d5d75c"
dependencies = [
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"windows 0.61.3",
"windows-core 0.61.2",
]
@@ -9962,10 +10035,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec8fb398f119472be4d80bc3647339f56eb63b2a331f6a3d16e25d8144197dd9"
dependencies = [
"arrayvec",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg_aliases",
"document-features",
- "hashbrown 0.15.4",
+ "hashbrown 0.15.5",
"js-sys",
"log",
"naga",
@@ -9992,11 +10065,11 @@ dependencies = [
"arrayvec",
"bit-set",
"bit-vec",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg_aliases",
"document-features",
- "hashbrown 0.15.4",
- "indexmap 2.10.0",
+ "hashbrown 0.15.5",
+ "indexmap 2.11.4",
"log",
"naga",
"once_cell",
@@ -10006,7 +10079,7 @@ dependencies = [
"raw-window-handle",
"rustc-hash 1.1.0",
"smallvec",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"wgpu-core-deps-apple",
"wgpu-core-deps-emscripten",
"wgpu-core-deps-windows-linux-android",
@@ -10051,7 +10124,7 @@ dependencies = [
"arrayvec",
"ash",
"bit-set",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block",
"bytemuck",
"cfg-if",
@@ -10062,7 +10135,7 @@ dependencies = [
"gpu-alloc",
"gpu-allocator",
"gpu-descriptor",
- "hashbrown 0.15.4",
+ "hashbrown 0.15.5",
"js-sys",
"khronos-egl",
"libc",
@@ -10080,7 +10153,7 @@ dependencies = [
"raw-window-handle",
"renderdoc-sys",
"smallvec",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"wasm-bindgen",
"web-sys",
"wgpu-types",
@@ -10094,11 +10167,11 @@ version = "25.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2aa49460c2a8ee8edba3fca54325540d904dd85b2e086ada762767e17d06e8bc"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"bytemuck",
"js-sys",
"log",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"web-sys",
]
@@ -10162,11 +10235,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
-version = "0.1.9"
+version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -10181,7 +10254,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-foundation 0.3.1",
@@ -10248,7 +10321,7 @@ dependencies = [
"windows-collections 0.1.1",
"windows-core 0.60.1",
"windows-future 0.1.1",
- "windows-link",
+ "windows-link 0.1.3",
"windows-numerics 0.1.1",
]
@@ -10261,7 +10334,7 @@ dependencies = [
"windows-collections 0.2.0",
"windows-core 0.61.2",
"windows-future 0.2.1",
- "windows-link",
+ "windows-link 0.1.3",
"windows-numerics 0.2.0",
]
@@ -10273,7 +10346,7 @@ checksum = "3a4df73e95feddb9ec1a7e9c2ca6323b8c97d5eeeff78d28f1eccdf19c882b24"
dependencies = [
"parking_lot",
"rayon",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"windows 0.61.3",
"windows-future 0.2.1",
]
@@ -10349,7 +10422,7 @@ checksum = "ca21a92a9cae9bf4ccae5cf8368dce0837100ddf6e6d57936749e85f152f6247"
dependencies = [
"windows-implement 0.59.0",
"windows-interface 0.59.1",
- "windows-link",
+ "windows-link 0.1.3",
"windows-result 0.3.4",
"windows-strings 0.3.1",
]
@@ -10362,11 +10435,24 @@ checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
dependencies = [
"windows-implement 0.60.0",
"windows-interface 0.59.1",
- "windows-link",
+ "windows-link 0.1.3",
"windows-result 0.3.4",
"windows-strings 0.4.2",
]
+[[package]]
+name = "windows-core"
+version = "0.62.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57fe7168f7de578d2d8a05b07fd61870d2e73b4020e9f49aa00da8471723497c"
+dependencies = [
+ "windows-implement 0.60.0",
+ "windows-interface 0.59.1",
+ "windows-link 0.2.0",
+ "windows-result 0.4.0",
+ "windows-strings 0.5.0",
+]
+
[[package]]
name = "windows-future"
version = "0.1.1"
@@ -10374,7 +10460,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a787db4595e7eb80239b74ce8babfb1363d8e343ab072f2ffe901400c03349f0"
dependencies = [
"windows-core 0.60.1",
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
@@ -10384,7 +10470,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
dependencies = [
"windows-core 0.61.2",
- "windows-link",
+ "windows-link 0.1.3",
"windows-threading",
]
@@ -10396,7 +10482,7 @@ checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -10407,7 +10493,7 @@ checksum = "83577b051e2f49a058c308f17f273b570a6a758386fc291b5f6a934dd84e48c1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -10418,7 +10504,7 @@ checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -10429,7 +10515,7 @@ checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -10440,7 +10526,7 @@ checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -10449,6 +10535,12 @@ version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
+[[package]]
+name = "windows-link"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
+
[[package]]
name = "windows-numerics"
version = "0.1.1"
@@ -10456,7 +10548,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "005dea54e2f6499f2cee279b8f703b3cf3b5734a2d8d21867c8f44003182eeed"
dependencies = [
"windows-core 0.60.1",
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
@@ -10466,7 +10558,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
dependencies = [
"windows-core 0.61.2",
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
@@ -10475,7 +10567,7 @@ version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
"windows-result 0.3.4",
"windows-strings 0.4.2",
]
@@ -10504,7 +10596,16 @@ version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7084dcc306f89883455a206237404d3eaf961e5bd7e0f312f7c91f57eb44167f"
+dependencies = [
+ "windows-link 0.2.0",
]
[[package]]
@@ -10523,7 +10624,7 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
@@ -10532,7 +10633,16 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7218c655a553b0bed4426cf54b20d7ba363ef543b52d515b3e48d7fd55318dda"
+dependencies = [
+ "windows-link 0.2.0",
]
[[package]]
@@ -10580,6 +10690,15 @@ dependencies = [
"windows-targets 0.53.3",
]
+[[package]]
+name = "windows-sys"
+version = "0.61.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e201184e40b2ede64bc2ea34968b28e33622acdbbf37104f0e4a33f7abe657aa"
+dependencies = [
+ "windows-link 0.2.0",
+]
+
[[package]]
name = "windows-targets"
version = "0.42.2"
@@ -10632,7 +10751,7 @@ version = "0.53.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
"windows_aarch64_gnullvm 0.53.0",
"windows_aarch64_msvc 0.53.0",
"windows_i686_gnu 0.53.0",
@@ -10649,16 +10768,16 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
name = "windows-version"
-version = "0.1.4"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e04a5c6627e310a23ad2358483286c7df260c964eb2d003d8efd6d0f4e79265c"
+checksum = "69e061eb0a22b4a1d778ad70f7575ec7845490abb35b08fa320df7895882cacb"
dependencies = [
- "windows-link",
+ "windows-link 0.2.0",
]
[[package]]
@@ -10861,9 +10980,9 @@ dependencies = [
[[package]]
name = "winnow"
-version = "0.7.12"
+version = "0.7.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95"
+checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
dependencies = [
"memchr",
]
@@ -10879,13 +10998,10 @@ dependencies = [
]
[[package]]
-name = "wit-bindgen-rt"
-version = "0.39.0"
+name = "wit-bindgen"
+version = "0.46.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
-dependencies = [
- "bitflags 2.9.1",
-]
+checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
[[package]]
name = "wl-clipboard-rs"
@@ -10898,7 +11014,7 @@ dependencies = [
"os_pipe",
"rustix 0.38.44",
"tempfile",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"tree_magic_mini",
"wayland-backend",
"wayland-client",
@@ -10934,7 +11050,7 @@ dependencies = [
"kuchikiki",
"libc",
"ndk 0.9.0",
- "objc2 0.6.1",
+ "objc2 0.6.2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-foundation 0.3.1",
@@ -10946,7 +11062,7 @@ dependencies = [
"sha2",
"soup3",
"tao-macros",
- "thiserror 2.0.12",
+ "thiserror 2.0.16",
"url",
"webkit2gtk",
"webkit2gtk-sys",
@@ -10985,7 +11101,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
dependencies = [
"gethostname",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"x11rb-protocol",
]
@@ -11002,7 +11118,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af3a19837351dc82ba89f8a125e22a3c475f05aba604acc023d62b2739ae2909"
dependencies = [
"libc",
- "rustix 1.0.8",
+ "rustix 1.1.2",
]
[[package]]
@@ -11070,7 +11186,7 @@ checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"synstructure",
]
@@ -11086,9 +11202,9 @@ dependencies = [
[[package]]
name = "zbus"
-version = "5.10.0"
+version = "5.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67a073be99ace1adc48af593701c8015cd9817df372e14a1a6b0ee8f8bf043be"
+checksum = "2d07e46d035fb8e375b2ce63ba4e4ff90a7f73cf2ffb0138b29e1158d2eaadf7"
dependencies = [
"async-broadcast",
"async-executor",
@@ -11112,7 +11228,7 @@ dependencies = [
"tracing",
"uds_windows",
"windows-sys 0.60.2",
- "winnow 0.7.12",
+ "winnow 0.7.13",
"zbus_macros",
"zbus_names",
"zvariant",
@@ -11120,14 +11236,14 @@ dependencies = [
[[package]]
name = "zbus_macros"
-version = "5.10.0"
+version = "5.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e80cd713a45a49859dcb648053f63265f4f2851b6420d47a958e5697c68b131"
+checksum = "57e797a9c847ed3ccc5b6254e8bcce056494b375b511b3d6edcec0aeb4defaca"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"zbus_names",
"zvariant",
"zvariant_utils",
@@ -11141,7 +11257,7 @@ checksum = "7be68e64bf6ce8db94f63e72f0c7eb9a60d733f7e0499e628dfab0f84d6bcb97"
dependencies = [
"serde",
"static_assertions",
- "winnow 0.7.12",
+ "winnow 0.7.13",
"zvariant",
]
@@ -11153,22 +11269,22 @@ checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524"
[[package]]
name = "zerocopy"
-version = "0.8.26"
+version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f"
+checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.26"
+version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181"
+checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -11188,7 +11304,7 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"synstructure",
]
@@ -11211,9 +11327,9 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.11.2"
+version = "0.11.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428"
+checksum = "e7aa2bd55086f1ab526693ecbe444205da57e25f4489879da80635a46d90e73b"
dependencies = [
"yoke",
"zerofrom",
@@ -11228,7 +11344,7 @@ checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -11239,15 +11355,15 @@ checksum = "caa8cd6af31c3b31c6631b8f483848b91589021b28fffe50adada48d4f4d2ed1"
dependencies = [
"arbitrary",
"crc32fast",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"memchr",
]
[[package]]
name = "zlib-rs"
-version = "0.5.1"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "626bd9fa9734751fc50d6060752170984d7053f5a39061f524cda68023d4db8a"
+checksum = "2f06ae92f42f5e5c42443fd094f245eb656abf56dd7cce9b8b263236565e00f2"
[[package]]
name = "zune-core"
@@ -11266,9 +11382,9 @@ dependencies = [
[[package]]
name = "zune-jpeg"
-version = "0.4.20"
+version = "0.4.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc1f7e205ce79eb2da3cd71c5f55f3589785cb7c79f6a03d1c8d1491bda5d089"
+checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713"
dependencies = [
"zune-core",
]
@@ -11283,7 +11399,7 @@ dependencies = [
"enumflags2",
"serde",
"url",
- "winnow 0.7.12",
+ "winnow 0.7.13",
"zvariant_derive",
"zvariant_utils",
]
@@ -11294,10 +11410,10 @@ version = "5.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6643fd0b26a46d226bd90d3f07c1b5321fe9bb7f04673cb37ac6d6883885b68e"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"zvariant_utils",
]
@@ -11310,6 +11426,6 @@ dependencies = [
"proc-macro2",
"quote",
"serde",
- "syn 2.0.104",
- "winnow 0.7.12",
+ "syn 2.0.106",
+ "winnow 0.7.13",
]
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index a68225690..9b3936ca8 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -71,7 +71,7 @@ use std::{
str::FromStr,
sync::Arc,
};
-use tauri::{AppHandle, Manager, State, Window, WindowEvent};
+use tauri::{AppHandle, Manager, State, Window, WindowEvent, ipc::Channel};
use tauri_plugin_deep_link::DeepLinkExt;
use tauri_plugin_dialog::DialogExt;
use tauri_plugin_global_shortcut::GlobalShortcutExt;
@@ -1034,7 +1034,7 @@ async fn list_audio_devices() -> Result<Vec<String>, ()> {
Ok(MicrophoneFeed::list().keys().cloned().collect())
}
-#[derive(Serialize, Type, tauri_specta::Event, Debug, Clone)]
+#[derive(Serialize, Type, Debug, Clone)]
pub struct UploadProgress {
progress: f64,
}
@@ -1053,6 +1053,7 @@ async fn upload_exported_video(
app: AppHandle,
path: PathBuf,
mode: UploadMode,
+ channel: Channel<UploadProgress>,
) -> Result<UploadResult, String> {
let Ok(Some(auth)) = AuthStore::get(&app) else {
AuthStore::set(&app, None).map_err(|e| e.to_string())?;
@@ -1074,7 +1075,7 @@ async fn upload_exported_video(
return Ok(UploadResult::UpgradeRequired);
}
- UploadProgress { progress: 0.0 }.emit(&app).ok();
+ channel.send(UploadProgress { progress: 0.0 }).ok();
let s3_config = async {
let video_id = match mode {
@@ -1113,11 +1114,12 @@ async fn upload_exported_video(
Some(s3_config),
Some(meta.project_path.join("screenshots/display.jpg")),
Some(metadata),
+ Some(channel.clone()),
)
.await
{
Ok(uploaded_video) => {
- UploadProgress { progress: 1.0 }.emit(&app).ok();
+ channel.send(UploadProgress { progress: 1.0 }).ok();
meta.sharing = Some(SharingMeta {
link: uploaded_video.link.clone(),
@@ -1938,7 +1940,6 @@ pub async fn run(recording_logging_handle: LoggingHandle) {
NewNotification,
AuthenticationInvalid,
audio_meter::AudioInputLevelChange,
- UploadProgress,
captions::DownloadProgress,
recording::RecordingEvent,
RecordingDeleted,
@@ -2310,13 +2311,12 @@ pub async fn run(recording_logging_handle: LoggingHandle) {
}
}
- if *focused {
- if let Ok(window_id) = window_id
- && window_id.activates_dock()
- {
- app.set_activation_policy(tauri::ActivationPolicy::Regular)
- .ok();
- }
+ if *focused
+ && let Ok(window_id) = window_id
+ && window_id.activates_dock()
+ {
+ app.set_activation_policy(tauri::ActivationPolicy::Regular)
+ .ok();
}
}
WindowEvent::DragDrop(tauri::DragDropEvent::Drop { paths, .. }) => {
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index 851f0f99a..217f14e08 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -19,7 +19,7 @@ use std::{path::PathBuf, str::FromStr, sync::Arc, time::Duration};
use tauri::{AppHandle, Manager};
use tauri_plugin_dialog::{DialogExt, MessageDialogBuilder};
use tauri_specta::Event;
-use tracing::{error, info};
+use tracing::{debug, error, info};
use crate::{
App, CurrentRecordingChanged, MutableState, NewStudioRecordingAdded, RecordingState,
@@ -355,7 +355,7 @@ pub async fn start_recording(
)
});
- println!("spawning actor");
+ debug!("spawning start_recording actor");
// done in spawn to catch panics just in case
let spawn_actor_res = async {
@@ -812,6 +812,7 @@ async fn handle_recording_finish(
Some(video_upload_info.config.clone()),
Some(display_screenshot.clone()),
meta,
+ None,
)
.await
{
diff --git a/apps/desktop/src-tauri/src/upload.rs b/apps/desktop/src-tauri/src/upload.rs
index f306140b9..91b442dc6 100644
--- a/apps/desktop/src-tauri/src/upload.rs
+++ b/apps/desktop/src-tauri/src/upload.rs
@@ -11,22 +11,29 @@ use image::codecs::jpeg::JpegEncoder;
use reqwest::StatusCode;
use reqwest::header::CONTENT_LENGTH;
use serde::{Deserialize, Serialize};
+use serde_json::json;
use specta::Type;
-use std::path::PathBuf;
-use std::time::Duration;
-use tauri::AppHandle;
+use std::{
+ path::PathBuf,
+ time::{Duration, Instant},
+};
+use tauri::{AppHandle, ipc::Channel};
use tauri_plugin_clipboard_manager::ClipboardExt;
-use tauri_specta::Event;
use tokio::io::{AsyncReadExt, AsyncSeekExt};
-use tokio::task;
+use tokio::task::{self, JoinHandle};
use tokio::time::sleep;
-use tracing::{error, info, warn};
+use tracing::{debug, error, info, trace, warn};
#[derive(Deserialize, Serialize, Clone, Type, Debug)]
pub struct S3UploadMeta {
id: String,
}
+#[derive(Deserialize, Clone, Debug)]
+pub struct CreateErrorResponse {
+ error: String,
+}
+
// fn deserialize_empty_object_as_string<'de, D>(deserializer: D) -> Result<String, D::Error>
// where
// D: Deserializer<'de>,
@@ -105,6 +112,99 @@ pub struct UploadedImage {
// pub config: S3UploadMeta,
// }
+pub struct UploadProgressUpdater {
+ video_state: Option<VideoProgressState>,
+ app: AppHandle,
+ video_id: String,
+}
+
+struct VideoProgressState {
+ uploaded: u64,
+ total: u64,
+ pending_task: Option<JoinHandle<()>>,
+ last_update_time: Instant,
+}
+
+impl UploadProgressUpdater {
+ pub fn new(app: AppHandle, video_id: String) -> Self {
+ Self {
+ video_state: None,
+ app,
+ video_id,
+ }
+ }
+
+ pub fn update(&mut self, uploaded: u64, total: u64) {
+ let should_send_immediately = {
+ let state = self.video_state.get_or_insert_with(|| VideoProgressState {
+ uploaded,
+ total,
+ pending_task: None,
+ last_update_time: Instant::now(),
+ });
+
+ // Cancel any pending task
+ if let Some(handle) = state.pending_task.take() {
+ handle.abort();
+ }
+
+ state.uploaded = uploaded;
+ state.total = total;
+ state.last_update_time = Instant::now();
+
+ // Send immediately if upload is complete
+ uploaded >= total
+ };
+
+ let app = self.app.clone();
+ if should_send_immediately {
+ tokio::spawn({
+ let video_id = self.video_id.clone();
+ async move {
+ Self::send_api_update(&app, video_id, uploaded, total).await;
+ }
+ });
+
+ // Clear state since upload is complete
+ self.video_state = None;
+ } else {
+ // Schedule delayed update
+ let handle = {
+ let video_id = self.video_id.clone();
+ tokio::spawn(async move {
+ tokio::time::sleep(Duration::from_secs(2)).await;
+ Self::send_api_update(&app, video_id, uploaded, total).await;
+ })
+ };
+
+ if let Some(state) = &mut self.video_state {
+ state.pending_task = Some(handle);
+ }
+ }
+ }
+
+ async fn send_api_update(app: &AppHandle, video_id: String, uploaded: u64, total: u64) {
+ let response = app
+ .authed_api_request("/api/desktop/video/progress", |client, url| {
+ client.post(url).json(&json!({
+ "videoId": video_id,
+ "uploaded": uploaded,
+ "total": total,
+ "updatedAt": chrono::Utc::now().to_rfc3339()
+ }))
+ })
+ .await;
+
+ match response {
+ Ok(resp) if resp.status().is_success() => {
+ trace!("Progress update sent successfully");
+ }
+ Ok(resp) => error!("Failed to send progress update: {}", resp.status()),
+ Err(err) => error!("Failed to send progress update: {err}"),
+ }
+ }
+}
+
pub async fn upload_video(
app: &AppHandle,
video_id: String,
@@ -112,6 +212,7 @@ pub async fn upload_video(
existing_config: Option<S3UploadMeta>,
screenshot_path: Option<PathBuf>,
meta: Option<S3VideoMeta>,
+ channel: Option<Channel<UploadProgress>>,
) -> Result<UploadedVideo, String> {
println!("Uploading video {video_id}...");
@@ -145,20 +246,24 @@ pub async fn upload_video(
let reader_stream = tokio_util::io::ReaderStream::new(file);
- let mut bytes_uploaded = 0;
- let progress_stream = reader_stream.inspect({
- let app = app.clone();
- move |chunk| {
- if bytes_uploaded > 0 {
- let _ = UploadProgress {
- progress: bytes_uploaded as f64 / total_size as f64,
- }
- .emit(&app);
- }
+ let mut bytes_uploaded = 0u64;
+ let mut progress = UploadProgressUpdater::new(app.clone(), video_id);
- if let Ok(chunk) = chunk {
- bytes_uploaded += chunk.len();
+ let progress_stream = reader_stream.inspect(move |chunk| {
+ if let Ok(chunk) = chunk {
+ bytes_uploaded += chunk.len() as u64;
+ }
+
+ if bytes_uploaded > 0 {
+ if let Some(channel) = &channel {
+ channel
+ .send(UploadProgress {
+ progress: bytes_uploaded as f64 / total_size as f64,
+ })
+ .ok();
}
+
+ progress.update(bytes_uploaded, total_size);
}
});
@@ -316,6 +421,21 @@ pub async fn create_or_get_video(
return Err("Failed to authenticate request; please log in again".into());
}
+ if response.status() != StatusCode::OK {
+ if let Ok(error) = response.json::<CreateErrorResponse>().await {
+ if error.error == "upgrade_required" {
+ return Err(
+ "You must upgrade to Cap Pro to upload recordings over 5 minutes in length"
+ .into(),
+ );
+ }
+
+ return Err(format!("server error: {}", error.error));
+ }
+
+ return Err("Unknown error uploading video".into());
+ }
+
let response_text = response
.text()
.await
@@ -544,13 +664,12 @@ impl InstantMultipartUpload {
let mut uploaded_parts = Vec::new();
let mut part_number = 1;
let mut last_uploaded_position: u64 = 0;
-
- println!("Starting multipart upload for {video_id}...");
+ let mut progress = UploadProgressUpdater::new(app.clone(), pre_created_video.id.clone());
// --------------------------------------------
// initiate the multipart upload
// --------------------------------------------
- println!("Initiating multipart upload for {video_id}...");
+ debug!("Initiating multipart upload for {video_id}...");
let initiate_response = match app
.authed_api_request("/api/upload/multipart/initiate", |c, url| {
c.post(url)
@@ -654,6 +773,7 @@ impl InstantMultipartUpload {
&mut part_number,
&mut last_uploaded_position,
new_data_size.min(CHUNK_SIZE),
+ &mut progress,
)
.await
{
@@ -680,6 +800,7 @@ impl InstantMultipartUpload {
&mut 1,
&mut 0,
uploaded_parts[0].size as u64,
+ &mut progress,
)
.await
.map_err(|err| format!("Failed to re-upload first chunk: {err}"))?;
@@ -726,6 +847,7 @@ impl InstantMultipartUpload {
part_number: &mut i32,
last_uploaded_position: &mut u64,
chunk_size: u64,
+ progress: &mut UploadProgressUpdater,
) -> Result<UploadedPart, String> {
let file_size = match tokio::fs::metadata(file_path).await {
Ok(metadata) => metadata.len(),
@@ -838,6 +960,8 @@ impl InstantMultipartUpload {
}
};
+ progress.update(expected_pos, file_size);
+
if !presign_response.status().is_success() {
let status = presign_response.status();
let error_body = presign_response
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
index 554e59af6..e26e056e0 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
@@ -1,3 +1,4 @@
+import { ProgressCircle } from "@cap/ui-solid";
import Tooltip from "@corvu/tooltip";
import {
createMutation,
@@ -5,7 +6,7 @@ import {
queryOptions,
useQueryClient,
} from "@tanstack/solid-query";
-import { convertFileSrc } from "@tauri-apps/api/core";
+import { Channel, convertFileSrc } from "@tauri-apps/api/core";
import { ask } from "@tauri-apps/plugin-dialog";
import { remove } from "@tauri-apps/plugin-fs";
import { revealItemInDir } from "@tauri-apps/plugin-opener";
@@ -19,10 +20,14 @@ import {
type ParentProps,
Show,
} from "solid-js";
-
import { trackEvent } from "~/utils/analytics";
import { createTauriEventListener } from "~/utils/createEventListener";
-import { commands, events, type RecordingMetaWithMode } from "~/utils/tauri";
+import {
+ commands,
+ events,
+ type RecordingMetaWithMode,
+ type UploadProgress,
+} from "~/utils/tauri";
type Recording = {
meta: RecordingMetaWithMode;
@@ -242,13 +247,19 @@ function RecordingItem(props: {
</Show>
<Show when={mode() === "instant"}>
{(_) => {
+ const [progress, setProgress] = createSignal(0);
const reupload = createMutation(() => ({
- mutationFn: () => {
- return commands.uploadExportedVideo(
+ mutationFn: async () => {
+ setProgress(0);
+ return await commands.uploadExportedVideo(
props.recording.path,
"Reupload",
+ new Channel<UploadProgress>((progress) =>
+ setProgress(Math.round(progress.progress * 100)),
+ ),
);
},
+ onSettled: () => setProgress(0),
}));
return (
@@ -260,7 +271,11 @@ function RecordingItem(props: {
onClick={() => reupload.mutate()}
>
{reupload.isPending ? (
- <IconLucideLoaderCircle class="animate-spin" />
+ <ProgressCircle
+ variant="primary"
+ progress={progress()}
+ size="sm"
+ />
) : (
<IconLucideRotateCcw class="size-4" />
)}
diff --git a/apps/desktop/src/routes/editor/ExportDialog.tsx b/apps/desktop/src/routes/editor/ExportDialog.tsx
index 22faab612..a41e7574d 100644
--- a/apps/desktop/src/routes/editor/ExportDialog.tsx
+++ b/apps/desktop/src/routes/editor/ExportDialog.tsx
@@ -6,6 +6,7 @@ import {
createQuery,
keepPreviousData,
} from "@tanstack/solid-query";
+import { Channel } from "@tauri-apps/api/core";
import { save as saveDialog } from "@tauri-apps/plugin-dialog";
import { cx } from "cva";
import {
@@ -33,6 +34,7 @@ import {
type ExportSettings,
events,
type FramesRendered,
+ type UploadProgress,
} from "~/utils/tauri";
import { type RenderState, useEditorContext } from "./context";
import { RESOLUTION_OPTIONS } from "./Header";
@@ -323,40 +325,44 @@ export function ExportDialog() {
}
}
- const unlisten = await events.uploadProgress.listen((event) => {
- console.log("Upload progress event:", event.payload);
+ const uploadChannel = new Channel<UploadProgress>((progress) => {
+ console.log("Upload progress:", progress);
setExportState(
produce((state) => {
if (state.type !== "uploading") return;
- state.progress = Math.round(event.payload.progress * 100);
+ state.progress = Math.round(progress.progress * 100);
}),
);
});
- try {
- await exportWithSettings((progress) =>
- setExportState({ type: "rendering", progress }),
- );
-
- setExportState({ type: "uploading", progress: 0 });
+ await exportWithSettings((progress) =>
+ setExportState({ type: "rendering", progress }),
+ );
- // Now proceed with upload
- const result = meta().sharing
- ? await commands.uploadExportedVideo(projectPath, "Reupload")
- : await commands.uploadExportedVideo(projectPath, {
+ setExportState({ type: "uploading", progress: 0 });
+
+ // Now proceed with upload
+ const result = meta().sharing
+ ? await commands.uploadExportedVideo(
+ projectPath,
+ "Reupload",
+ uploadChannel,
+ )
+ : await commands.uploadExportedVideo(
+ projectPath,
+ {
Initial: { pre_created_video: null },
- });
-
- if (result === "NotAuthenticated")
- throw new Error("You need to sign in to share recordings");
- else if (result === "PlanCheckFailed")
- throw new Error("Failed to verify your subscription status");
- else if (result === "UpgradeRequired")
- throw new Error("This feature requires an upgraded plan");
- } finally {
- unlisten();
- }
+ },
+ uploadChannel,
+ );
+
+ if (result === "NotAuthenticated")
+ throw new Error("You need to sign in to share recordings");
+ else if (result === "PlanCheckFailed")
+ throw new Error("Failed to verify your subscription status");
+ else if (result === "UpgradeRequired")
+ throw new Error("This feature requires an upgraded plan");
},
onSuccess: async () => {
const d = dialog();
diff --git a/apps/desktop/src/routes/editor/ShareButton.tsx b/apps/desktop/src/routes/editor/ShareButton.tsx
index b80731252..fbd388384 100644
--- a/apps/desktop/src/routes/editor/ShareButton.tsx
+++ b/apps/desktop/src/routes/editor/ShareButton.tsx
@@ -1,13 +1,14 @@
import { Button } from "@cap/ui-solid";
import { Select as KSelect } from "@kobalte/core/select";
import { createMutation } from "@tanstack/solid-query";
+import { Channel } from "@tauri-apps/api/core";
import { createSignal, Show } from "solid-js";
import { createStore, produce, reconcile } from "solid-js/store";
import Tooltip from "~/components/Tooltip";
import { createProgressBar } from "~/routes/editor/utils";
import { authStore } from "~/store";
import { exportVideo } from "~/utils/export";
-import { commands, events } from "~/utils/tauri";
+import { commands, events, type UploadProgress } from "~/utils/tauri";
import { useEditorContext } from "./context";
import { RESOLUTION_OPTIONS } from "./Header";
import {
@@ -52,68 +53,72 @@ function ShareButton() {
}
}
- const unlisten = await events.uploadProgress.listen((event) => {
- console.log("Upload progress event:", event.payload);
+ const uploadChannel = new Channel<UploadProgress>((progress) => {
+ console.log("Upload progress:", progress);
setUploadState(
produce((state) => {
if (state.type !== "uploading") return;
- state.progress = Math.round(event.payload.progress * 100);
+ state.progress = Math.round(progress.progress * 100);
}),
);
});
- try {
- setUploadState({ type: "starting" });
+ setUploadState({ type: "starting" });
- // Setup progress listener before starting upload
+ // Setup progress listener before starting upload
- console.log("Starting actual upload...");
+ console.log("Starting actual upload...");
- await exportVideo(
- projectPath,
- {
- format: "Mp4",
- fps: 30,
- resolution_base: {
- x: RESOLUTION_OPTIONS._1080p.width,
- y: RESOLUTION_OPTIONS._1080p.height,
- },
- compression: "Web",
- },
- (msg) => {
- setUploadState(
- reconcile({
- type: "rendering",
- renderedFrames: msg.renderedCount,
- totalFrames: msg.totalFrames,
- }),
- );
+ await exportVideo(
+ projectPath,
+ {
+ format: "Mp4",
+ fps: 30,
+ resolution_base: {
+ x: RESOLUTION_OPTIONS._1080p.width,
+ y: RESOLUTION_OPTIONS._1080p.height,
},
- );
+ compression: "Web",
+ },
+ (msg) => {
+ setUploadState(
+ reconcile({
+ type: "rendering",
+ renderedFrames: msg.renderedCount,
+ totalFrames: msg.totalFrames,
+ }),
+ );
+ },
+ );
- setUploadState({ type: "uploading", progress: 0 });
+ setUploadState({ type: "uploading", progress: 0 });
- // Now proceed with upload
- const result = meta().sharing
- ? await commands.uploadExportedVideo(projectPath, "Reupload")
- : await commands.uploadExportedVideo(projectPath, {
+ // Now proceed with upload
+ const result = meta().sharing
+ ? await commands.uploadExportedVideo(
+ projectPath,
+ "Reupload",
+ uploadChannel,
+ )
+ : await commands.uploadExportedVideo(
+ projectPath,
+ {
Initial: { pre_created_video: null },
- });
+ },
+ uploadChannel,
+ );
- if (result === "NotAuthenticated") {
- throw new Error("You need to sign in to share recordings");
- } else if (result === "PlanCheckFailed")
- throw new Error("Failed to verify your subscription status");
- else if (result === "UpgradeRequired")
- throw new Error("This feature requires an upgraded plan");
+ if (result === "NotAuthenticated") {
+ throw new Error("You need to sign in to share recordings");
+ } else if (result === "PlanCheckFailed")
+ throw new Error("Failed to verify your subscription status");
+ else if (result === "UpgradeRequired")
+ throw new Error("This feature requires an upgraded plan");
- setUploadState({ type: "link-copied" });
+ setUploadState({ type: "link-copied" });
- return result;
- } finally {
- unlisten();
- }
+ return result;
},
onError: (error) => {
console.error(error);
diff --git a/apps/desktop/src/routes/recordings-overlay.tsx b/apps/desktop/src/routes/recordings-overlay.tsx
index b7a926a99..01a781288 100644
--- a/apps/desktop/src/routes/recordings-overlay.tsx
+++ b/apps/desktop/src/routes/recordings-overlay.tsx
@@ -3,7 +3,7 @@ import Tooltip from "@corvu/tooltip";
import { createElementBounds } from "@solid-primitives/bounds";
import { makePersisted } from "@solid-primitives/storage";
import { createMutation, createQuery } from "@tanstack/solid-query";
-import { convertFileSrc } from "@tauri-apps/api/core";
+import { Channel, convertFileSrc } from "@tauri-apps/api/core";
import { cx } from "cva";
import {
type Accessor,
@@ -30,6 +30,7 @@ import {
commands,
events,
type FramesRendered,
+ type UploadProgress,
type UploadResult,
} from "~/utils/tauri";
import IconLucideClock from "~icons/lucide/clock";
@@ -726,8 +727,8 @@ function createRecordingMutations(
}
}
- const unlisten = await events.uploadProgress.listen((event) => {
- console.log("Upload progress event:", event.payload);
+ const uploadChannel = new Channel<UploadProgress>((progress) => {
+ console.log("Upload progress:", progress);
setActionState(
produce((actionState) => {
if (
@@ -736,70 +737,65 @@ function createRecordingMutations(
)
return;
- actionState.state.progress = Math.round(
- event.payload.progress * 100,
- );
+ actionState.state.progress = Math.round(progress.progress * 100);
}),
);
});
- try {
- let res: UploadResult;
- if (isRecording) {
- setActionState({
- type: "upload",
- state: { type: "rendering", state: { type: "starting" } },
- });
+ let res: UploadResult;
+ if (isRecording) {
+ setActionState({
+ type: "upload",
+ state: { type: "rendering", state: { type: "starting" } },
+ });
- const progress = createRenderProgressCallback(
- "upload",
- setActionState,
- );
+ const progress = createRenderProgressCallback("upload", setActionState);
- await exportWithDefaultSettings(progress);
+ await exportWithDefaultSettings(progress);
- // Show quick progress animation for existing video
- setActionState(
- produce((s) => {
- if (
- s.type === "copy" &&
- s.state.type === "rendering" &&
- s.state.state.type === "rendering"
- )
- s.state.state.renderedFrames = s.state.state.totalFrames;
- }),
- );
+ // Show quick progress animation for existing video
+ setActionState(
+ produce((s) => {
+ if (
+ s.type === "copy" &&
+ s.state.type === "rendering" &&
+ s.state.state.type === "rendering"
+ )
+ s.state.state.renderedFrames = s.state.state.totalFrames;
+ }),
+ );
- setActionState({
- type: "upload",
- state: { type: "uploading", progress: 0 },
- });
+ setActionState({
+ type: "upload",
+ state: { type: "uploading", progress: 0 },
+ });
- res = await commands.uploadExportedVideo(media.path, {
+ res = await commands.uploadExportedVideo(
+ media.path,
+ {
Initial: { pre_created_video: null },
- });
- } else {
- setActionState({
- type: "upload",
- state: { type: "uploading", progress: 0 },
- });
+ },
+ uploadChannel,
+ );
+ } else {
+ setActionState({
+ type: "upload",
+ state: { type: "uploading", progress: 0 },
+ });
- res = await commands.uploadScreenshot(media.path);
- }
+ res = await commands.uploadScreenshot(media.path);
+ }
- switch (res) {
- case "NotAuthenticated":
- throw new Error("Not authenticated");
- case "PlanCheckFailed":
- throw new Error("Plan check failed");
- case "UpgradeRequired":
- onEvent("upgradeRequired");
- return;
- default:
- break;
- }
- } finally {
- unlisten();
+ switch (res) {
+ case "NotAuthenticated":
+ throw new Error("Not authenticated");
+ case "PlanCheckFailed":
+ throw new Error("Plan check failed");
+ case "UpgradeRequired":
+ onEvent("upgradeRequired");
+ return;
+ default:
+ break;
}
setActionState({ type: "upload", state: { type: "link-copied" } });
diff --git a/apps/desktop/src/utils/tauri.ts b/apps/desktop/src/utils/tauri.ts
index f5efed716..967c40dbc 100644
--- a/apps/desktop/src/utils/tauri.ts
+++ b/apps/desktop/src/utils/tauri.ts
@@ -113,8 +113,8 @@ async doPermissionsCheck(initialCheck: boolean) : Promise<OSPermissionsCheck> {
async requestPermission(permission: OSPermission) : Promise<void> {
await TAURI_INVOKE("request_permission", { permission });
},
-async uploadExportedVideo(path: string, mode: UploadMode) : Promise<UploadResult> {
- return await TAURI_INVOKE("upload_exported_video", { path, mode });
+async uploadExportedVideo(path: string, mode: UploadMode, channel: TAURI_CHANNEL<UploadProgress>) : Promise<UploadResult> {
+ return await TAURI_INVOKE("upload_exported_video", { path, mode, channel });
},
async uploadScreenshot(screenshotPath: string) : Promise<UploadResult> {
return await TAURI_INVOKE("upload_screenshot", { screenshotPath });
@@ -291,8 +291,7 @@ requestNewScreenshot: RequestNewScreenshot,
requestOpenRecordingPicker: RequestOpenRecordingPicker,
requestOpenSettings: RequestOpenSettings,
requestStartRecording: RequestStartRecording,
-targetUnderCursor: TargetUnderCursor,
-uploadProgress: UploadProgress
+targetUnderCursor: TargetUnderCursor
}>({
audioInputLevelChange: "audio-input-level-change",
authenticationInvalid: "authentication-invalid",
@@ -313,8 +312,7 @@ requestNewScreenshot: "request-new-screenshot",
requestOpenRecordingPicker: "request-open-recording-picker",
requestOpenSettings: "request-open-settings",
requestStartRecording: "request-start-recording",
-targetUnderCursor: "target-under-cursor",
-uploadProgress: "upload-progress"
+targetUnderCursor: "target-under-cursor"
})
/** user-defined constants **/
diff --git a/apps/web/actions/videos/get-user-videos.ts b/apps/web/actions/videos/get-user-videos.ts
index 64bb3f580..d12d4c043 100644
--- a/apps/web/actions/videos/get-user-videos.ts
+++ b/apps/web/actions/videos/get-user-videos.ts
@@ -2,7 +2,7 @@
import { db } from "@cap/database";
import { getCurrentUser } from "@cap/database/auth/session";
-import { comments, users, videos } from "@cap/database/schema";
+import { comments, users, videos, videoUploads } from "@cap/database/schema";
import { desc, eq, sql } from "drizzle-orm";
export async function getUserVideos(limit?: number) {
@@ -31,10 +31,14 @@ export async function getUserVideos(limit?: number) {
${videos.createdAt}
)
`,
+ hasActiveUpload: sql`${videoUploads.videoId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
})
.from(videos)
.leftJoin(comments, eq(videos.id, comments.videoId))
.leftJoin(users, eq(videos.ownerId, users.id))
+ .leftJoin(videoUploads, eq(videos.id, videoUploads.videoId))
.where(eq(videos.ownerId, userId))
.groupBy(
videos.id,
diff --git a/apps/web/app/(org)/dashboard/caps/Caps.tsx b/apps/web/app/(org)/dashboard/caps/Caps.tsx
index 411c4ef50..1623cb271 100644
--- a/apps/web/app/(org)/dashboard/caps/Caps.tsx
+++ b/apps/web/app/(org)/dashboard/caps/Caps.tsx
@@ -46,6 +46,7 @@ export type VideoData = {
ownerName: string;
metadata?: VideoMetadata;
hasPassword: boolean;
+ hasActiveUpload: boolean;
}[];
export const Caps = ({
diff --git a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx
index efb1b4b6f..2a2078469 100644
--- a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx
+++ b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx
@@ -26,6 +26,9 @@ import { toast } from "sonner";
import { downloadVideo } from "@/actions/videos/download";
import { ConfirmationDialog } from "@/app/(org)/dashboard/_components/ConfirmationDialog";
import { useDashboardContext } from "@/app/(org)/dashboard/Contexts";
+import ProgressCircle, {
+ useUploadProgress,
+} from "@/app/s/[videoId]/_components/ProgressCircle";
import { Tooltip } from "@/components/Tooltip";
import { VideoThumbnail } from "@/components/VideoThumbnail";
import { useEffectMutation } from "@/lib/EffectRuntime";
@@ -59,6 +62,7 @@ export interface CapCardProps extends PropsWithChildren {
ownerName: string | null;
metadata?: VideoMetadata;
hasPassword?: boolean;
+ hasActiveUpload: boolean | undefined;
duration?: number;
};
analytics: number;
@@ -160,6 +164,11 @@ export const CapCard = ({
const isOwner = userId === cap.ownerId;
+ const uploadProgress = useUploadProgress(
+ cap.id,
+ cap.hasActiveUpload || false,
+ );
+
// Helper function to create a drag preview element
const createDragPreview = (text: string): HTMLElement => {
// Create the element
@@ -354,11 +363,8 @@ export const CapCard = ({
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
- if (!isSubscribed) {
- setUpgradeModalOpen(true);
- } else {
- setIsPasswordDialogOpen(true);
- }
+ if (!isSubscribed) setUpgradeModalOpen(true);
+ else setIsPasswordDialogOpen(true);
}}
className="flex gap-2 items-center rounded-lg"
>
@@ -422,33 +428,62 @@ export const CapCard = ({
</div>
</div>
)}
- <Link
- className={clsx(
- "block group",
- anyCapSelected && "cursor-pointer pointer-events-none",
- )}
- onClick={(e) => {
- if (isDeleting) {
- e.preventDefault();
- }
- }}
- href={`/s/${cap.id}`}
- >
- <VideoThumbnail
- videoDuration={cap.duration}
- imageClass={clsx(
- anyCapSelected
- ? "opacity-50"
- : isDropdownOpen
- ? "opacity-30"
- : "group-hover:opacity-30",
- "transition-opacity duration-200",
+ <div className="relative">
+ <Link
+ className={clsx(
+ "block group",
+ anyCapSelected && "cursor-pointer pointer-events-none",
)}
- userId={cap.ownerId}
- videoId={cap.id}
- alt={`${cap.name} Thumbnail`}
- />
- </Link>
+ onClick={(e) => {
+ if (isDeleting) {
+ e.preventDefault();
+ }
+ }}
+ href={`/s/${cap.id}`}
+ >
+ <VideoThumbnail
+ videoDuration={cap.duration}
+ imageClass={clsx(
+ anyCapSelected
+ ? "opacity-50"
+ : isDropdownOpen
+ ? "opacity-30"
+ : "group-hover:opacity-30",
+ "transition-opacity duration-200",
+ uploadProgress && "opacity-30",
+ )}
+ userId={cap.ownerId}
+ videoId={cap.id}
+ alt={`${cap.name} Thumbnail`}
+ />
+ </Link>
+ {uploadProgress && (
+ <div className="flex absolute inset-0 z-50 justify-center items-center bg-black rounded-t-xl">
+ {uploadProgress.status === "failed" ? (
+ <div className="flex flex-col items-center">
+ <div className="flex justify-center items-center mb-2 w-8 h-8 bg-red-500 rounded-full">
+ <FontAwesomeIcon
+ icon={faVideo}
+ className="text-white size-3"
+ />
+ </div>
+ <p className="text-xs text-center text-white">
+ Upload failed
+ </p>
+ </div>
+ ) : (
+ <div className="relative size-20 md:size-16">
+ <ProgressCircle
+ progressTextClassName="md:!text-[11px]"
+ subTextClassName="!mt-0 md:!text-[7px] !text-[10px] mb-1"
+ className="md:scale-[1.5] scale-[1.2]"
+ progress={uploadProgress.progress}
+ />
+ </div>
+ )}
+ </div>
+ )}
+ </div>
<div
className={clsx(
"flex flex-col flex-grow gap-3 px-4 pb-4 w-full",
diff --git a/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx b/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx
index aae859c1a..343d9e504 100644
--- a/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx
+++ b/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx
@@ -5,13 +5,21 @@ import { userIsPro } from "@cap/utils";
import { faUpload } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useRouter } from "next/navigation";
-import { useRef, useState } from "react";
+import { useEffect, useRef, useState } from "react";
import { toast } from "sonner";
import { createVideoAndGetUploadUrl } from "@/actions/video/upload";
import { useDashboardContext } from "@/app/(org)/dashboard/Contexts";
import { useUploadingContext } from "@/app/(org)/dashboard/caps/UploadingContext";
import { UpgradeModal } from "@/components/UpgradeModal";
+type UploadState = {
+ videoId?: string;
+ uploaded: number;
+ total: number;
+ pendingTask?: ReturnType<typeof setTimeout>;
+ lastUpdateTime: number;
+};
+
export const UploadCapButton = ({
onStart,
onProgress,
@@ -33,6 +41,12 @@ export const UploadCapButton = ({
const [upgradeModalOpen, setUpgradeModalOpen] = useState(false);
const router = useRouter();
+ const [uploadState, setUploadState] = useState<UploadState>({
+ uploaded: 0,
+ total: 0,
+ lastUpdateTime: Date.now(),
+ });
+
const handleClick = () => {
if (!user) return;
@@ -309,11 +323,20 @@ export const UploadCapButton = ({
const percent = (event.loaded / event.total) * 100;
setUploadProgress(percent);
onProgress?.(uploadId, 100, percent);
+
+ setUploadState({
+ videoId: uploadId,
+ uploaded: event.loaded,
+ total: event.total,
+ lastUpdateTime: Date.now(),
+ pendingTask: uploadState.pendingTask,
+ });
}
};
xhr.onload = () => {
if (xhr.status >= 200 && xhr.status < 300) {
+ sendProgressUpdate(uploadId, uploadState.total, uploadState.total);
resolve();
} else {
reject(new Error(`Upload failed with status ${xhr.status}`));
@@ -375,10 +398,105 @@ export const UploadCapButton = ({
} finally {
setIsUploading(false);
setUploadProgress(0);
+ setUploadState({
+ uploaded: 0,
+ total: 0,
+ lastUpdateTime: Date.now(),
+ });
if (inputRef.current) inputRef.current.value = "";
}
};
+ const sendProgressUpdate = async (
+ videoId: string,
+ uploaded: number,
+ total: number,
+ ) => {
+ try {
+ const response = await fetch("/api/desktop/video/progress", {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ videoId,
+ uploaded,
+ total,
+ updatedAt: new Date().toISOString(),
+ }),
+ });
+
+ if (!response.ok)
+ console.error("Failed to send progress update:", response.status);
+ } catch (err) {
+ console.error("Error sending progress update:", err);
+ }
+ };
+
+ // Prevent the user closing the tab while uploading
+ useEffect(() => {
+ const handleBeforeUnload = (e: BeforeUnloadEvent) => {
+ if (isUploading) {
+ e.preventDefault();
+ // Chrome requires returnValue to be set
+ e.returnValue = "";
+ return "";
+ }
+ };
+
+ window.addEventListener("beforeunload", handleBeforeUnload);
+ return () => window.removeEventListener("beforeunload", handleBeforeUnload);
+ }, [isUploading]);
+
+ useEffect(() => {
+ if (!uploadState.videoId || uploadState.uploaded === 0 || !isUploading)
+ return;
+
+ // Clear any existing pending task
+ if (uploadState.pendingTask) clearTimeout(uploadState.pendingTask);
+
+ const shouldSendImmediately = uploadState.uploaded >= uploadState.total;
+
+ if (shouldSendImmediately) {
+ // Send completion update immediately and clear state
+ sendProgressUpdate(
+ uploadState.videoId,
+ uploadState.uploaded,
+ uploadState.total,
+ );
+
+ setUploadState((prev) => ({
+ ...prev,
+ pendingTask: undefined,
+ }));
+ } else {
+ // Schedule delayed update (after 2 seconds)
+ const newPendingTask = setTimeout(() => {
+ if (uploadState.videoId) {
+ sendProgressUpdate(
+ uploadState.videoId,
+ uploadState.uploaded,
+ uploadState.total,
+ );
+ }
+ }, 2000);
+
+ setUploadState((prev) => ({
+ ...prev,
+ pendingTask: newPendingTask,
+ }));
+ }
+
+ return () => {
+ if (uploadState.pendingTask) clearTimeout(uploadState.pendingTask);
+ };
+ }, [
+ uploadState.videoId,
+ uploadState.uploaded,
+ uploadState.total,
+ isUploading,
+ ]);
+
return (
<>
<Button
diff --git a/apps/web/app/(org)/dashboard/caps/page.tsx b/apps/web/app/(org)/dashboard/caps/page.tsx
index 7a4fc3675..0304cc857 100644
--- a/apps/web/app/(org)/dashboard/caps/page.tsx
+++ b/apps/web/app/(org)/dashboard/caps/page.tsx
@@ -9,6 +9,7 @@ import {
spaceVideos,
users,
videos,
+ videoUploads,
} from "@cap/database/schema";
import { serverEnv } from "@cap/env";
import { Video } from "@cap/web-domain";
@@ -172,13 +173,17 @@ export default async function CapsPage({
${videos.createdAt}
)
`,
- hasPassword: sql<number>`IF(${videos.password} IS NULL, 0, 1)`,
+ hasPassword: sql`${videos.password} IS NOT NULL`.mapWith(Boolean),
+ hasActiveUpload: sql`${videoUploads.videoId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
})
.from(videos)
.leftJoin(comments, eq(videos.id, comments.videoId))
.leftJoin(sharedVideos, eq(videos.id, sharedVideos.videoId))
.leftJoin(organizations, eq(sharedVideos.organizationId, organizations.id))
.leftJoin(users, eq(videos.ownerId, users.id))
+ .leftJoin(videoUploads, eq(videos.id, videoUploads.videoId))
.where(and(eq(videos.ownerId, userId), isNull(videos.folderId)))
.groupBy(
videos.id,
@@ -242,7 +247,6 @@ export default async function CapsPage({
[key: string]: any;
}
| undefined,
- hasPassword: video.hasPassword === 1,
};
});
diff --git a/apps/web/app/(org)/dashboard/spaces/[spaceId]/SharedCaps.tsx b/apps/web/app/(org)/dashboard/spaces/[spaceId]/SharedCaps.tsx
index abf99a3e4..251977466 100644
--- a/apps/web/app/(org)/dashboard/spaces/[spaceId]/SharedCaps.tsx
+++ b/apps/web/app/(org)/dashboard/spaces/[spaceId]/SharedCaps.tsx
@@ -32,6 +32,7 @@ type SharedVideoData = {
totalReactions: number;
ownerName: string | null;
metadata?: VideoMetadata;
+ hasActiveUpload: boolean | undefined;
}[];
type SpaceData = {
diff --git a/apps/web/app/(org)/dashboard/spaces/[spaceId]/components/SharedCapCard.tsx b/apps/web/app/(org)/dashboard/spaces/[spaceId]/components/SharedCapCard.tsx
index 192e6a83f..9bbab6542 100644
--- a/apps/web/app/(org)/dashboard/spaces/[spaceId]/components/SharedCapCard.tsx
+++ b/apps/web/app/(org)/dashboard/spaces/[spaceId]/components/SharedCapCard.tsx
@@ -14,6 +14,7 @@ interface SharedCapCardProps {
totalReactions: number;
ownerName: string | null;
metadata?: VideoMetadata;
+ hasActiveUpload: boolean | undefined;
};
analytics: number;
isLoadingAnalytics: boolean;
diff --git a/apps/web/app/(org)/dashboard/spaces/[spaceId]/page.tsx b/apps/web/app/(org)/dashboard/spaces/[spaceId]/page.tsx
index 467647214..b1ac81dbd 100644
--- a/apps/web/app/(org)/dashboard/spaces/[spaceId]/page.tsx
+++ b/apps/web/app/(org)/dashboard/spaces/[spaceId]/page.tsx
@@ -11,6 +11,7 @@ import {
spaceVideos,
users,
videos,
+ videoUploads,
} from "@cap/database/schema";
import { serverEnv } from "@cap/env";
import { Video } from "@cap/web-domain";
@@ -202,11 +203,15 @@ export default async function SharedCapsPage({
totalReactions: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'emoji' THEN ${comments.id} END)`,
ownerName: users.name,
effectiveDate: sql<string>`COALESCE(JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')), ${videos.createdAt})`,
+ hasActiveUpload: sql`${videoUploads.videoId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
})
.from(spaceVideos)
.innerJoin(videos, eq(spaceVideos.videoId, videos.id))
.leftJoin(comments, eq(videos.id, comments.videoId))
.leftJoin(users, eq(videos.ownerId, users.id))
+ .leftJoin(videoUploads, eq(videos.id, videoUploads.videoId))
.where(
and(eq(spaceVideos.spaceId, spaceId), isNull(spaceVideos.folderId)),
)
@@ -308,11 +313,15 @@ export default async function SharedCapsPage({
totalReactions: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'emoji' THEN ${comments.id} END)`,
ownerName: users.name,
effectiveDate: sql<string>`COALESCE(JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')), ${videos.createdAt})`,
+ hasActiveUpload: sql`${videoUploads.videoId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
})
.from(sharedVideos)
.innerJoin(videos, eq(sharedVideos.videoId, videos.id))
.leftJoin(comments, eq(videos.id, comments.videoId))
.leftJoin(users, eq(videos.ownerId, users.id))
+ .leftJoin(videoUploads, eq(videos.id, videoUploads.videoId))
.where(
and(
eq(sharedVideos.organizationId, orgId),
diff --git a/apps/web/app/api/desktop/[...route]/video.ts b/apps/web/app/api/desktop/[...route]/video.ts
index 229965f57..d21141e41 100644
--- a/apps/web/app/api/desktop/[...route]/video.ts
+++ b/apps/web/app/api/desktop/[...route]/video.ts
@@ -2,10 +2,12 @@ import { db } from "@cap/database";
import { sendEmail } from "@cap/database/emails/config";
import { FirstShareableLink } from "@cap/database/emails/first-shareable-link";
import { nanoId } from "@cap/database/helpers";
-import { s3Buckets, videos } from "@cap/database/schema";
+import { s3Buckets, videos, videoUploads } from "@cap/database/schema";
import { buildEnv, NODE_ENV, serverEnv } from "@cap/env";
+import { userIsPro } from "@cap/utils";
+import { Video } from "@cap/web-domain";
import { zValidator } from "@hono/zod-validator";
-import { and, count, eq, sql } from "drizzle-orm";
+import { and, count, eq, gt, gte, lt, lte } from "drizzle-orm";
import { Hono } from "hono";
import { z } from "zod";
import { dub } from "@/utils/dub";
@@ -46,9 +48,9 @@ app.get(
} = c.req.valid("query");
const user = c.get("user");
- const isUpgraded = user.stripeSubscriptionStatus === "active";
+ const isCapPro = userIsPro(user);
- if (!isUpgraded && durationInSecs && durationInSecs > /* 5 min */ 5 * 60)
+ if (!isCapPro && durationInSecs && durationInSecs > /* 5 min */ 5 * 60)
return c.json({ error: "upgrade_required" }, { status: 403 });
console.log("Video create request:", {
@@ -123,6 +125,10 @@ app.get(
fps,
});
+ await db().insert(videoUploads).values({
+ videoId: idToUse,
+ });
+
if (buildEnv.NEXT_PUBLIC_IS_CAP && NODE_ENV === "production")
await dub().links.create({
url: `${serverEnv().WEB_URL}/s/${idToUse}`,
@@ -207,6 +213,8 @@ app.delete(
{ status: 404 },
);
+ await db().delete(videoUploads).where(eq(videoUploads.videoId, videoId));
+
await db()
.delete(videos)
.where(and(eq(videos.id, videoId), eq(videos.ownerId, user.id)));
@@ -231,3 +239,76 @@ app.delete(
}
},
);
+
+app.post(
+ "/progress",
+ zValidator(
+ "json",
+ z.object({
+ videoId: z.string(),
+ uploaded: z.number(),
+ total: z.number(),
+ // We get this from the client so we can avoid race conditions.
+ // Eg. If this value is older than the value in the DB, we ignore it.
+ updatedAt: z.string().pipe(z.coerce.date()),
+ }),
+ ),
+ async (c) => {
+ const {
+ videoId: videoIdRaw,
+ uploaded: uploadedRaw,
+ total,
+ updatedAt,
+ } = c.req.valid("json");
+ const user = c.get("user");
+ const videoId = Video.VideoId.make(videoIdRaw);
+
+ // Prevent it maths breaking
+ const uploaded = Math.min(uploadedRaw, total);
+
+ try {
+ const [video] = await db()
+ .select({ id: videos.id })
+ .from(videos)
+ .where(and(eq(videos.id, videoId), eq(videos.ownerId, user.id)));
+ if (!video)
+ return c.json(
+ { error: true, message: "Video not found" },
+ { status: 404 },
+ );
+
+ const result = await db()
+ .update(videoUploads)
+ .set({
+ uploaded,
+ total,
+ updatedAt,
+ })
+ .where(
+ and(
+ eq(videoUploads.videoId, videoId),
+ lte(videoUploads.updatedAt, updatedAt),
+ ),
+ );
+
+ if (result.rowsAffected === 0) {
+ const result2 = await db().insert(videoUploads).values({
+ videoId,
+ uploaded,
+ total,
+ updatedAt,
+ });
+ }
+
+ if (uploaded === total)
+ await db()
+ .delete(videoUploads)
+ .where(eq(videoUploads.videoId, videoId));
+
+ return c.json(true);
+ } catch (error) {
+ console.error("Error in progress update endpoint:", error);
+ return c.json({ error: "Internal server error" }, { status: 500 });
+ }
+ },
+);
diff --git a/apps/web/app/api/upload/[...route]/multipart.ts b/apps/web/app/api/upload/[...route]/multipart.ts
index 6f0bb1674..12999a322 100644
--- a/apps/web/app/api/upload/[...route]/multipart.ts
+++ b/apps/web/app/api/upload/[...route]/multipart.ts
@@ -1,5 +1,6 @@
import { db, updateIfDefined } from "@cap/database";
-import { s3Buckets, videos } from "@cap/database/schema";
+import { s3Buckets, videos, videoUploads } from "@cap/database/schema";
+import type { VideoMetadata } from "@cap/database/types";
import { serverEnv } from "@cap/env";
import { zValidator } from "@hono/zod-validator";
import { and, eq } from "drizzle-orm";
@@ -275,10 +276,9 @@ app.post(
const videoIdFromFileKey = fileKey.split("/")[1];
- const videoIdToUse =
- "videoId" in body ? body.videoId : videoIdFromFileKey;
- if (videoIdToUse)
- await db()
+ const videoId = "videoId" in body ? body.videoId : videoIdFromFileKey;
+ if (videoId) {
+ const result = await db()
.update(videos)
.set({
duration: updateIfDefined(body.durationInSecs, videos.duration),
@@ -286,9 +286,14 @@ app.post(
height: updateIfDefined(body.height, videos.height),
fps: updateIfDefined(body.fps, videos.fps),
})
- .where(
- and(eq(videos.id, videoIdToUse), eq(videos.ownerId, user.id)),
- );
+ .where(and(eq(videos.id, videoId), eq(videos.ownerId, user.id)));
+
+ // This proves authentication
+ if (result.rowsAffected > 0)
+ await db()
+ .delete(videoUploads)
+ .where(eq(videoUploads.videoId, videoId));
+ }
if (videoIdFromFileKey) {
try {
diff --git a/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx b/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx
index cc97a6ea7..d3325d0d6 100644
--- a/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx
+++ b/apps/web/app/embed/[videoId]/_components/EmbedVideo.tsx
@@ -43,7 +43,9 @@ type CommentWithAuthor = typeof commentsSchema.$inferSelect & {
export const EmbedVideo = forwardRef<
HTMLVideoElement,
{
- data: Omit<typeof videos.$inferSelect, "password">;
+ data: Omit<typeof videos.$inferSelect, "password"> & {
+ hasActiveUpload: boolean | undefined;
+ };
user: typeof userSelectProps | null;
comments: CommentWithAuthor[];
chapters?: { title: string; start: number }[];
@@ -195,20 +197,24 @@ export const EmbedVideo = forwardRef<
<div className="relative w-screen h-screen rounded-xl">
{data.source.type === "desktopMP4" ? (
<CapVideoPlayer
+ videoId={data.id}
mediaPlayerClassName="w-full h-full"
videoSrc={videoSrc}
chaptersSrc={chaptersUrl || ""}
captionsSrc={subtitleUrl || ""}
videoRef={videoRef}
enableCrossOrigin={enableCrossOrigin}
+ hasActiveUpload={data.hasActiveUpload}
/>
) : (
<HLSVideoPlayer
+ videoId={data.id}
mediaPlayerClassName="w-full h-full"
videoSrc={videoSrc}
chaptersSrc={chaptersUrl || ""}
captionsSrc={subtitleUrl || ""}
videoRef={videoRef}
+ hasActiveUpload={data.hasActiveUpload}
/>
)}
</div>
diff --git a/apps/web/app/embed/[videoId]/page.tsx b/apps/web/app/embed/[videoId]/page.tsx
index cc88f96d7..95c672f8d 100644
--- a/apps/web/app/embed/[videoId]/page.tsx
+++ b/apps/web/app/embed/[videoId]/page.tsx
@@ -6,6 +6,7 @@ import {
sharedVideos,
users,
videos,
+ videoUploads,
} from "@cap/database/schema";
import type { VideoMetadata } from "@cap/database/types";
import { buildEnv } from "@cap/env";
@@ -146,13 +147,17 @@ export default async function EmbedVideoPage(props: Props) {
height: videos.height,
duration: videos.duration,
fps: videos.fps,
- hasPassword: sql<number>`IF(${videos.password} IS NULL, 0, 1)`,
+ hasPassword: sql`${videos.password} IS NOT NULL`.mapWith(Boolean),
sharedOrganization: {
organizationId: sharedVideos.organizationId,
},
+ hasActiveUpload: sql`${videoUploads.videoId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
})
.from(videos)
.leftJoin(sharedVideos, eq(videos.id, sharedVideos.videoId))
+ .leftJoin(videoUploads, eq(videos.id, videoUploads.videoId))
.where(eq(videos.id, videoId)),
).pipe(Policy.withPublicPolicy(videosPolicy.canView(videoId)));
@@ -195,6 +200,7 @@ async function EmbedContent({
}: {
video: Omit<typeof videos.$inferSelect, "password"> & {
sharedOrganization: { organizationId: string } | null;
+ hasActiveUpload: boolean | undefined;
};
autoplay: boolean;
}) {
diff --git a/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
index e40b0f6c4..733589602 100644
--- a/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
+++ b/apps/web/app/s/[videoId]/_components/CapVideoPlayer.tsx
@@ -1,11 +1,14 @@
"use client";
import { LogoSpinner } from "@cap/ui";
+import type { Video } from "@cap/web-domain";
import { faPlay } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import clsx from "clsx";
import { AnimatePresence, motion } from "framer-motion";
+import { AlertTriangleIcon } from "lucide-react";
import { useCallback, useEffect, useRef, useState } from "react";
+import ProgressCircle, { useUploadProgress } from "./ProgressCircle";
import {
MediaPlayer,
MediaPlayerCaptions,
@@ -28,22 +31,26 @@ import {
interface Props {
videoSrc: string;
+ videoId: Video.VideoId;
chaptersSrc: string;
captionsSrc: string;
videoRef: React.RefObject<HTMLVideoElement>;
mediaPlayerClassName?: string;
autoplay?: boolean;
enableCrossOrigin?: boolean;
+ hasActiveUpload: boolean | undefined;
}
export function CapVideoPlayer({
videoSrc,
+ videoId,
chaptersSrc,
captionsSrc,
videoRef,
mediaPlayerClassName,
autoplay = false,
enableCrossOrigin = false,
+ hasActiveUpload,
}: Props) {
const [currentCue, setCurrentCue] = useState<string>("");
const [controlsVisible, setControlsVisible] = useState(false);
@@ -379,61 +386,108 @@ export function CapVideoPlayer({
return `https://placeholder.pics/svg/224x128/dc2626/ffffff/Error`;
}, []);
+ const uploadProgress = useUploadProgress(videoId, hasActiveUpload || false);
+ const isUploading = uploadProgress?.status === "uploading";
+ const isUploadFailed = uploadProgress?.status === "failed";
+
+ const prevUploadProgress = useRef<typeof uploadProgress>(uploadProgress);
+ useEffect(() => {
+ // Check if we transitioned from having upload progress to null which means it's completed and reload the video.
+ // This prevents it just showing the dreaded "Format error" screen.
+ if (prevUploadProgress.current && !uploadProgress && !videoLoaded) {
+ reloadVideo();
+ // Make it more reliable.
+ setTimeout(() => reloadVideo(), 1000);
+ }
+ prevUploadProgress.current = uploadProgress;
+ }, [uploadProgress, videoLoaded, reloadVideo]);
+
return (
- <>
- <MediaPlayer
- onMouseEnter={() => setControlsVisible(true)}
- onMouseLeave={() => setControlsVisible(false)}
- onTouchStart={() => setControlsVisible(true)}
- onTouchEnd={() => setControlsVisible(false)}
+ <MediaPlayer
+ onMouseEnter={() => setControlsVisible(true)}
+ onMouseLeave={() => setControlsVisible(false)}
+ onTouchStart={() => setControlsVisible(true)}
+ onTouchEnd={() => setControlsVisible(false)}
+ className={clsx(
+ mediaPlayerClassName,
+ "[&::-webkit-media-text-track-display]:!hidden",
+ )}
+ autoHide
+ >
+ {isUploadFailed && (
+ <div className="flex absolute inset-0 flex-col px-3 gap-3 z-[20] justify-center items-center bg-black transition-opacity duration-300">
+ <AlertTriangleIcon className="text-red-500 size-12" />
+ <p className="text-gray-11 text-sm leading-relaxed text-center text-balance w-full max-w-[340px] mx-auto">
+ Upload failed. Please try re-uploading from the Cap desktop app via
+ Settings {">"} Previous Recordings.
+ </p>
+ </div>
+ )}
+ <div
className={clsx(
- mediaPlayerClassName,
- "[&::-webkit-media-text-track-display]:!hidden",
+ "flex absolute inset-0 z-10 justify-center items-center bg-black transition-opacity duration-300",
+ isUploading || videoLoaded || !isUploadFailed
+ ? "opacity-0 pointer-events-none"
+ : "opacity-100",
)}
- autoHide
>
- <div
- className={clsx(
- "flex absolute inset-0 z-10 justify-center items-center bg-black transition-opacity duration-300",
- videoLoaded ? "opacity-0 pointer-events-none" : "opacity-100",
+ <div className="flex flex-col gap-2 items-center">
+ <LogoSpinner className="w-8 h-auto animate-spin sm:w-10" />
+ {retryCount.current > 0 && (
+ <p className="text-sm text-white opacity-75">
+ Preparing video... ({retryCount.current}/{maxRetries})
+ </p>
)}
- >
- <div className="flex flex-col items-center gap-2">
- <LogoSpinner className="w-8 h-auto animate-spin sm:w-10" />
- {retryCount.current > 0 && (
- <p className="text-white text-sm opacity-75">
- Preparing video... ({retryCount.current}/{maxRetries})
- </p>
- )}
- </div>
</div>
- {urlResolved && (
- <MediaPlayerVideo
- src={resolvedVideoSrc}
- ref={videoRef}
- onLoadedData={() => {
- setVideoLoaded(true);
- }}
- onPlay={() => {
- setShowPlayButton(false);
- setHasPlayedOnce(true);
- }}
- crossOrigin={useCrossOrigin ? "anonymous" : undefined}
- playsInline
- autoPlay={autoplay}
+ </div>
+ {urlResolved && (
+ <MediaPlayerVideo
+ src={resolvedVideoSrc}
+ ref={videoRef}
+ onLoadedData={() => {
+ setVideoLoaded(true);
+ }}
+ onPlay={() => {
+ setShowPlayButton(false);
+ setHasPlayedOnce(true);
+ }}
+ crossOrigin={useCrossOrigin ? "anonymous" : undefined}
+ playsInline
+ autoPlay={autoplay}
+ >
+ <track default kind="chapters" src={chaptersSrc} />
+ <track
+ label="English"
+ kind="captions"
+ srcLang="en"
+ src={captionsSrc}
+ default
+ />
+ </MediaPlayerVideo>
+ )}
+ <AnimatePresence>
+ {!videoLoaded && isUploading && !isUploadFailed && (
+ <motion.div
+ initial={{ opacity: 0, y: 10 }}
+ animate={{ opacity: 1, y: 0 }}
+ exit={{ opacity: 0, y: 10 }}
+ transition={{ duration: 0.2 }}
+ className="flex absolute inset-0 z-10 justify-center items-center m-auto size-[130px] md:size-32"
>
- <track default kind="chapters" src={chaptersSrc} />
- <track
- label="English"
- kind="captions"
- srcLang="en"
- src={captionsSrc}
- default
+ <ProgressCircle
+ progress={
+ uploadProgress?.status === "uploading"
+ ? uploadProgress.progress
+ : 0
+ }
/>
- </MediaPlayerVideo>
+ </motion.div>
)}
- <AnimatePresence>
- {showPlayButton && videoLoaded && !hasPlayedOnce && (
+ {showPlayButton &&
+ videoLoaded &&
+ !hasPlayedOnce &&
+ !isUploading &&
+ !isUploadFailed && (
<motion.div
whileHover={{ scale: 1.1 }}
whileTap={{ scale: 0.9 }}
@@ -450,52 +504,56 @@ export function CapVideoPlayer({
/>
</motion.div>
)}
- </AnimatePresence>
- {currentCue && toggleCaptions && (
- <div
- className={clsx(
- "absolute left-1/2 transform -translate-x-1/2 text-sm sm:text-xl z-40 pointer-events-none bg-black/80 text-white px-3 sm:px-4 py-1.5 sm:py-2 rounded-md text-center transition-all duration-300 ease-in-out",
- "max-w-[90%] sm:max-w-[480px] md:max-w-[600px]",
- controlsVisible || videoRef.current?.paused
- ? "bottom-16 sm:bottom-20"
- : "bottom-3 sm:bottom-12",
- )}
- >
- {currentCue}
+ </AnimatePresence>
+ {currentCue && toggleCaptions && (
+ <div
+ className={clsx(
+ "absolute left-1/2 transform -translate-x-1/2 text-sm sm:text-xl z-40 pointer-events-none bg-black/80 text-white px-3 sm:px-4 py-1.5 sm:py-2 rounded-md text-center transition-all duration-300 ease-in-out",
+ "max-w-[90%] sm:max-w-[480px] md:max-w-[600px]",
+ controlsVisible || videoRef.current?.paused
+ ? "bottom-16 sm:bottom-20"
+ : "bottom-3 sm:bottom-12",
+ )}
+ >
+ {currentCue}
+ </div>
+ )}
+ <MediaPlayerLoading />
+ {!isRetrying && !isRetryingRef.current && !isUploading && (
+ <MediaPlayerError />
+ )}
+ <MediaPlayerVolumeIndicator />
+ <MediaPlayerControls
+ className="flex-col items-start gap-2.5"
+ isUploadingOrFailed={isUploading || isUploadFailed}
+ >
+ <MediaPlayerControlsOverlay />
+ <MediaPlayerSeek
+ tooltipThumbnailSrc={
+ isMobile || !useCrossOrigin || isUploading
+ ? undefined
+ : generateVideoFrameThumbnail
+ }
+ />
+ <div className="flex gap-2 items-center w-full">
+ <div className="flex flex-1 gap-2 items-center">
+ <MediaPlayerPlay />
+ <MediaPlayerSeekBackward />
+ <MediaPlayerSeekForward />
+ <MediaPlayerVolume expandable />
+ <MediaPlayerTime />
</div>
- )}
- <MediaPlayerLoading />
- {!isRetrying && !isRetryingRef.current && <MediaPlayerError />}
- <MediaPlayerVolumeIndicator />
- <MediaPlayerControls className="flex-col items-start gap-2.5">
- <MediaPlayerControlsOverlay />
- <MediaPlayerSeek
- tooltipThumbnailSrc={
- isMobile || !useCrossOrigin
- ? undefined
- : generateVideoFrameThumbnail
- }
- />
- <div className="flex gap-2 items-center w-full">
- <div className="flex flex-1 gap-2 items-center">
- <MediaPlayerPlay />
- <MediaPlayerSeekBackward />
- <MediaPlayerSeekForward />
- <MediaPlayerVolume expandable />
- <MediaPlayerTime />
- </div>
- <div className="flex gap-2 items-center">
- <MediaPlayerCaptions
- setToggleCaptions={setToggleCaptions}
- toggleCaptions={toggleCaptions}
- />
- <MediaPlayerSettings />
- <MediaPlayerPiP />
- <MediaPlayerFullscreen />
- </div>
+ <div className="flex gap-2 items-center">
+ <MediaPlayerCaptions
+ setToggleCaptions={setToggleCaptions}
+ toggleCaptions={toggleCaptions}
+ />
+ <MediaPlayerSettings />
+ <MediaPlayerPiP />
+ <MediaPlayerFullscreen />
</div>
- </MediaPlayerControls>
- </MediaPlayer>
- </>
+ </div>
+ </MediaPlayerControls>
+ </MediaPlayer>
);
}
diff --git a/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx
index 9d5515432..d305271c4 100644
--- a/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx
+++ b/apps/web/app/s/[videoId]/_components/HLSVideoPlayer.tsx
@@ -1,12 +1,15 @@
"use client";
import { LogoSpinner } from "@cap/ui";
+import type { Video } from "@cap/web-domain";
import { faPlay } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import clsx from "clsx";
import { AnimatePresence, motion } from "framer-motion";
import Hls from "hls.js";
-import { useCallback, useEffect, useRef, useState } from "react";
+import { AlertTriangleIcon } from "lucide-react";
+import { useEffect, useRef, useState } from "react";
+import ProgressCircle, { useUploadProgress } from "./ProgressCircle";
import {
MediaPlayer,
MediaPlayerCaptions,
@@ -29,20 +32,24 @@ import {
interface Props {
videoSrc: string;
+ videoId: Video.VideoId;
chaptersSrc: string;
captionsSrc: string;
videoRef: React.RefObject<HTMLVideoElement>;
mediaPlayerClassName?: string;
autoplay?: boolean;
+ hasActiveUpload?: boolean;
}
export function HLSVideoPlayer({
videoSrc,
+ videoId,
chaptersSrc,
captionsSrc,
videoRef,
mediaPlayerClassName,
autoplay = false,
+ hasActiveUpload,
}: Props) {
const hlsInstance = useRef<Hls | null>(null);
const [currentCue, setCurrentCue] = useState<string>("");
@@ -244,104 +251,139 @@ export function HLSVideoPlayer({
};
}, [captionsSrc]);
+ const uploadProgress = useUploadProgress(videoId, hasActiveUpload || false);
+ const isUploading = uploadProgress?.status === "uploading";
+ const isUploadFailed = uploadProgress?.status === "failed";
+
return (
- <>
- <MediaPlayer
- onMouseEnter={() => setControlsVisible(true)}
- onMouseLeave={() => setControlsVisible(false)}
- onTouchStart={() => setControlsVisible(true)}
- onTouchEnd={() => setControlsVisible(false)}
+ <MediaPlayer
+ onMouseEnter={() => setControlsVisible(true)}
+ onMouseLeave={() => setControlsVisible(false)}
+ onTouchStart={() => setControlsVisible(true)}
+ onTouchEnd={() => setControlsVisible(false)}
+ className={clsx(
+ mediaPlayerClassName,
+ "[&::-webkit-media-text-track-display]:!hidden",
+ )}
+ autoHide
+ >
+ {isUploadFailed && (
+ <div className="flex absolute inset-0 flex-col px-3 gap-3 z-[20] justify-center items-center bg-black transition-opacity duration-300">
+ <AlertTriangleIcon className="text-red-500 size-12" />
+ <p className="text-gray-11 text-sm leading-relaxed text-center text-balance w-full max-w-[340px] mx-auto">
+ Upload failed. Please try re-uploading from the Cap desktop app via
+ Settings {">"} Previous Recordings.
+ </p>
+ </div>
+ )}
+ <div
className={clsx(
- mediaPlayerClassName,
- "[&::-webkit-media-text-track-display]:!hidden",
+ "flex absolute inset-0 z-10 justify-center items-center bg-black transition-opacity duration-300",
+ isUploading || videoLoaded || !isUploadFailed
+ ? "opacity-0 pointer-events-none"
+ : "opacity-100",
+ )}
+ >
+ <div className="flex flex-col gap-2 items-center">
+ <LogoSpinner className="w-8 h-auto animate-spin sm:w-10" />
+ </div>
+ </div>
+ <AnimatePresence>
+ {!videoLoaded && isUploading && (
+ <motion.div
+ initial={{ opacity: 0, y: 10 }}
+ animate={{ opacity: 1, y: 0 }}
+ exit={{ opacity: 0, y: 10 }}
+ transition={{ duration: 0.2 }}
+ className="flex absolute inset-0 z-10 justify-center items-center m-auto size-[130px] md:size-32"
+ >
+ <ProgressCircle
+ progress={
+ uploadProgress?.status === "uploading"
+ ? uploadProgress.progress
+ : 0
+ }
+ />
+ </motion.div>
+ )}
+ {showPlayButton && videoLoaded && !hasPlayedOnce && !isUploading && (
+ <motion.div
+ whileHover={{ scale: 1.1 }}
+ whileTap={{ scale: 0.9 }}
+ initial={{ opacity: 0, y: 10 }}
+ animate={{ opacity: 1, y: 0 }}
+ exit={{ opacity: 0, y: 10 }}
+ transition={{ duration: 0.2 }}
+ onClick={() => videoRef.current?.play()}
+ className="flex absolute inset-0 z-10 justify-center items-center m-auto bg-blue-500 rounded-full transition-colors transform cursor-pointer hover:bg-blue-600 size-12 xs:size-20 md:size-32"
+ >
+ <FontAwesomeIcon
+ icon={faPlay}
+ className="text-white size-4 xs:size-8 md:size-12"
+ />
+ </motion.div>
)}
- autoHide
+ </AnimatePresence>
+ <MediaPlayerVideo
+ src={undefined} // HLS source is handled by HLS.js
+ ref={videoRef}
+ onPlay={() => {
+ setShowPlayButton(false);
+ setHasPlayedOnce(true);
+ }}
+ playsInline
+ autoPlay={autoplay}
>
+ <track default kind="chapters" src={chaptersSrc} />
+ <track
+ label="English"
+ kind="captions"
+ srcLang="en"
+ src={captionsSrc}
+ default
+ />
+ </MediaPlayerVideo>
+ {currentCue && toggleCaptions && (
<div
className={clsx(
- "flex absolute inset-0 z-10 justify-center items-center bg-black transition-opacity duration-300",
- videoLoaded ? "opacity-0 pointer-events-none" : "opacity-100",
+ "absolute left-1/2 transform -translate-x-1/2 text-sm sm:text-xl z-40 pointer-events-none bg-black/80 text-white px-3 sm:px-4 py-1.5 sm:py-2 rounded-md text-center transition-all duration-300 ease-in-out",
+ "max-w-[90%] sm:max-w-[480px] md:max-w-[600px]",
+ controlsVisible || videoRef.current?.paused
+ ? "bottom-16 sm:bottom-20"
+ : "bottom-3 sm:bottom-12",
)}
>
- <LogoSpinner className="w-8 h-auto animate-spin sm:w-10" />
+ {currentCue}
</div>
- <AnimatePresence>
- {showPlayButton && videoLoaded && !hasPlayedOnce && (
- <motion.div
- whileHover={{ scale: 1.1 }}
- whileTap={{ scale: 0.9 }}
- initial={{ opacity: 0, y: 10 }}
- animate={{ opacity: 1, y: 0 }}
- exit={{ opacity: 0, y: 10 }}
- transition={{ duration: 0.2 }}
- onClick={() => videoRef.current?.play()}
- className="flex absolute inset-0 z-10 justify-center items-center m-auto bg-blue-500 rounded-full transition-colors transform cursor-pointer hover:bg-blue-600 size-12 xs:size-20 md:size-32"
- >
- <FontAwesomeIcon
- icon={faPlay}
- className="text-white size-4 xs:size-8 md:size-12"
- />
- </motion.div>
- )}
- </AnimatePresence>
- <MediaPlayerVideo
- src={undefined} // HLS source is handled by HLS.js
- ref={videoRef}
- onPlay={() => {
- setShowPlayButton(false);
- setHasPlayedOnce(true);
- }}
- playsInline
- autoPlay={autoplay}
- >
- <track default kind="chapters" src={chaptersSrc} />
- <track
- label="English"
- kind="captions"
- srcLang="en"
- src={captionsSrc}
- default
- />
- </MediaPlayerVideo>
- {currentCue && toggleCaptions && (
- <div
- className={clsx(
- "absolute left-1/2 transform -translate-x-1/2 text-sm sm:text-xl z-40 pointer-events-none bg-black/80 text-white px-3 sm:px-4 py-1.5 sm:py-2 rounded-md text-center transition-all duration-300 ease-in-out",
- "max-w-[90%] sm:max-w-[480px] md:max-w-[600px]",
- controlsVisible || videoRef.current?.paused
- ? "bottom-16 sm:bottom-20"
- : "bottom-3 sm:bottom-12",
- )}
- >
- {currentCue}
+ )}
+ <MediaPlayerLoading />
+ <MediaPlayerError />
+ <MediaPlayerVolumeIndicator />
+ <MediaPlayerControls
+ className="flex-col items-start gap-2.5"
+ isUploadingOrFailed={isUploading || isUploadFailed}
+ >
+ <MediaPlayerControlsOverlay />
+ <MediaPlayerSeek />
+ <div className="flex gap-2 items-center w-full">
+ <div className="flex flex-1 gap-2 items-center">
+ <MediaPlayerPlay />
+ <MediaPlayerSeekBackward />
+ <MediaPlayerSeekForward />
+ <MediaPlayerVolume expandable />
+ <MediaPlayerTime />
</div>
- )}
- <MediaPlayerLoading />
- <MediaPlayerError />
- <MediaPlayerVolumeIndicator />
- <MediaPlayerControls className="flex-col items-start gap-2.5">
- <MediaPlayerControlsOverlay />
- <MediaPlayerSeek />
- <div className="flex gap-2 items-center w-full">
- <div className="flex flex-1 gap-2 items-center">
- <MediaPlayerPlay />
- <MediaPlayerSeekBackward />
- <MediaPlayerSeekForward />
- <MediaPlayerVolume expandable />
- <MediaPlayerTime />
- </div>
- <div className="flex gap-2 items-center">
- <MediaPlayerCaptions
- setToggleCaptions={setToggleCaptions}
- toggleCaptions={toggleCaptions}
- />
- <MediaPlayerSettings />
- <MediaPlayerPiP />
- <MediaPlayerFullscreen />
- </div>
+ <div className="flex gap-2 items-center">
+ <MediaPlayerCaptions
+ setToggleCaptions={setToggleCaptions}
+ toggleCaptions={toggleCaptions}
+ />
+ <MediaPlayerSettings />
+ <MediaPlayerPiP />
+ <MediaPlayerFullscreen />
</div>
- </MediaPlayerControls>
- </MediaPlayer>
- </>
+ </div>
+ </MediaPlayerControls>
+ </MediaPlayer>
);
}
diff --git a/apps/web/app/s/[videoId]/_components/ProgressCircle.tsx b/apps/web/app/s/[videoId]/_components/ProgressCircle.tsx
new file mode 100644
index 000000000..a160cfb3a
--- /dev/null
+++ b/apps/web/app/s/[videoId]/_components/ProgressCircle.tsx
@@ -0,0 +1,128 @@
+"use client";
+
+import type { Video } from "@cap/web-domain";
+import clsx from "clsx";
+import { Effect, Option } from "effect";
+import { useEffectQuery } from "@/lib/EffectRuntime";
+import { withRpc } from "@/lib/Rpcs";
+
+type UploadProgress =
+ | {
+ status: "uploading";
+ lastUpdated: Date;
+ progress: number;
+ }
+ | {
+ status: "failed";
+ lastUpdated: Date;
+ };
+
+const SECOND = 1000;
+const MINUTE = 60 * SECOND;
+const HOUR = 60 * 60 * SECOND;
+const DAY = 24 * HOUR;
+
+export function useUploadProgress(videoId: Video.VideoId, enabled: boolean) {
+ const query = useEffectQuery({
+ queryKey: ["getUploadProgress", videoId],
+ queryFn: () =>
+ withRpc((rpc) => rpc.GetUploadProgress(videoId)).pipe(
+ Effect.map((v) => Option.getOrNull(v ?? Option.none())),
+ ),
+ enabled,
+ refetchInterval: (query) => {
+ if (!enabled || !query.state.data) return false;
+
+ const timeSinceUpdate = Date.now() - query.state.data.updatedAt.getTime();
+ if (timeSinceUpdate > DAY) return 30 * SECOND;
+ if (timeSinceUpdate > HOUR) return 15 * SECOND;
+ else if (timeSinceUpdate > 5 * MINUTE) return 5 * SECOND;
+ else return SECOND;
+ },
+ });
+ if (!enabled || !query.data) return null;
+ const lastUpdated = new Date(query.data.updatedAt);
+
+ return (
+ Date.now() - lastUpdated.getTime() > 5 * MINUTE
+ ? {
+ status: "failed",
+ lastUpdated,
+ }
+ : {
+ status: "uploading",
+ lastUpdated,
+ progress:
+ // `0/0` for progress is `NaN`
+ query.data.total === 0
+ ? 0
+ : (query.data.uploaded / query.data.total) * 100,
+ }
+ ) satisfies UploadProgress;
+}
+
+const ProgressCircle = ({
+ progress,
+ className,
+ progressTextClassName,
+ subTextClassName,
+}: {
+ progress: number;
+ className?: string;
+ progressTextClassName?: string;
+ subTextClassName?: string;
+}) => {
+ return (
+ <div
+ className={clsx(
+ "relative scale-100 size-full sm:scale-110 md:scale-[1.3]",
+ className,
+ )}
+ >
+ <svg className="transform -rotate-90 size-full" viewBox="0 0 100 100">
+ <title>Progress Circle</title>
+ <circle
+ cx="50"
+ cy="50"
+ r="45"
+ fill="none"
+ stroke="rgba(255, 255, 255, 0.2)"
+ strokeWidth="5"
+ />
+ <circle
+ cx="50"
+ cy="50"
+ r="45"
+ fill="none"
+ stroke="#3b82f6"
+ strokeWidth="5"
+ strokeLinecap="round"
+ strokeDasharray={`${2 * Math.PI * 45}`}
+ strokeDashoffset={`${2 * Math.PI * 45 * (1 - progress / 100)}`}
+ className="transition-all duration-300 ease-out"
+ />
+ </svg>
+
+ <div className="flex absolute inset-0 flex-col justify-center items-center p-2">
+ <p
+ className={clsx(
+ "text-sm font-semibold tabular-nums md:leading-tight leading-tight text-white xs:text-sm md:text-lg",
+ progressTextClassName,
+ )}
+ >
+ {Math.round(progress)}%
+ </p>
+ <p
+ className={clsx(
+ "mt-0.5 leading-tight text-[10px] text-white/80",
+ subTextClassName,
+ )}
+ >
+ Uploading...
+ </p>
+ </div>
+ </div>
+ );
+};
+
+export default ProgressCircle;
diff --git a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
index 7a8074523..e38a8aba4 100644
--- a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
+++ b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
@@ -35,6 +35,7 @@ export const ShareVideo = forwardRef<
{
data: typeof videos.$inferSelect & {
ownerIsPro?: boolean;
+ hasActiveUpload?: boolean;
};
user: typeof userSelectProps | null;
comments: MaybePromise<CommentWithAuthor[]>;
@@ -147,20 +148,24 @@ export const ShareVideo = forwardRef<
<div className="relative h-full">
{data.source.type === "desktopMP4" ? (
<CapVideoPlayer
+ videoId={data.id}
mediaPlayerClassName="w-full h-full max-w-full max-h-full rounded-xl"
videoSrc={videoSrc}
chaptersSrc={chaptersUrl || ""}
captionsSrc={subtitleUrl || ""}
videoRef={videoRef}
enableCrossOrigin={enableCrossOrigin}
+ hasActiveUpload={data.hasActiveUpload}
/>
) : (
<HLSVideoPlayer
+ videoId={data.id}
mediaPlayerClassName="w-full h-full max-w-full max-h-full rounded-xl"
videoSrc={videoSrc}
chaptersSrc={chaptersUrl || ""}
captionsSrc={subtitleUrl || ""}
videoRef={videoRef}
+ hasActiveUpload={data.hasActiveUpload}
/>
)}
</div>
diff --git a/apps/web/app/s/[videoId]/_components/video/media-player.tsx b/apps/web/app/s/[videoId]/_components/video/media-player.tsx
index 6114c8fc0..2c0422877 100644
--- a/apps/web/app/s/[videoId]/_components/video/media-player.tsx
+++ b/apps/web/app/s/[videoId]/_components/video/media-player.tsx
@@ -876,10 +876,11 @@ function MediaPlayerAudio(props: MediaPlayerAudioProps) {
interface MediaPlayerControlsProps extends React.ComponentProps<"div"> {
asChild?: boolean;
+ isUploadingOrFailed?: boolean;
}
function MediaPlayerControls(props: MediaPlayerControlsProps) {
- const { asChild, className, ...controlsProps } = props;
+ const { asChild, className, isUploadingOrFailed, ...controlsProps } = props;
const context = useMediaPlayerContext("MediaPlayerControls");
const isFullscreen = useMediaSelector(
@@ -889,6 +890,8 @@ function MediaPlayerControls(props: MediaPlayerControlsProps) {
const ControlsPrimitive = asChild ? Slot : "div";
+ if (isUploadingOrFailed) return null;
+
return (
<ControlsPrimitive
data-disabled={context.disabled ? "" : undefined}
diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsx
index 18ed939b9..61f652c74 100644
--- a/apps/web/app/s/[videoId]/page.tsx
+++ b/apps/web/app/s/[videoId]/page.tsx
@@ -9,6 +9,7 @@ import {
spaceVideos,
users,
videos,
+ videoUploads,
} from "@cap/database/schema";
import type { VideoMetadata } from "@cap/database/types";
import { buildEnv } from "@cap/env";
@@ -285,15 +286,22 @@ export default async function ShareVideoPage(props: Props) {
height: videos.height,
duration: videos.duration,
fps: videos.fps,
- hasPassword: sql<number>`IF(${videos.password} IS NULL, 0, 1)`,
+ hasPassword: sql`${videos.password} IS NOT NULL`.mapWith(Boolean),
sharedOrganization: {
organizationId: sharedVideos.organizationId,
},
- ownerIsPro: sql<number>`IF(${users.stripeSubscriptionStatus} IN ('active','trialing','complete','paid') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL, 1, 0)`,
+ ownerIsPro:
+ sql`${users.stripeSubscriptionStatus} IN ('active','trialing','complete','paid') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
+ hasActiveUpload: sql`${videoUploads.videoId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
})
.from(videos)
.leftJoin(sharedVideos, eq(videos.id, sharedVideos.videoId))
.leftJoin(users, eq(videos.ownerId, users.id))
+ .leftJoin(videoUploads, eq(videos.id, videoUploads.videoId))
.where(eq(videos.id, videoId)),
).pipe(Policy.withPublicPolicy(videosPolicy.canView(videoId)));
@@ -342,8 +350,8 @@ async function AuthorizedContent({
}: {
video: Omit<InferSelectModel<typeof videos>, "folderId" | "password"> & {
sharedOrganization: { organizationId: string } | null;
- hasPassword: number;
- ownerIsPro?: number;
+ hasPassword: boolean;
+ ownerIsPro?: boolean;
};
searchParams: { [key: string]: string | string[] | undefined };
}) {
@@ -441,7 +449,10 @@ async function AuthorizedContent({
id: videos.id,
name: videos.name,
ownerId: videos.ownerId,
- ownerIsPro: sql<number>`IF(${users.stripeSubscriptionStatus} IN ('active','trialing','complete','paid') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL, 1, 0)`,
+ ownerIsPro:
+ sql`${users.stripeSubscriptionStatus} IN ('active','trialing','complete','paid') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
createdAt: videos.createdAt,
updatedAt: videos.updatedAt,
awsRegion: videos.awsRegion,
@@ -652,8 +663,6 @@ async function AuthorizedContent({
const videoWithOrganizationInfo: VideoWithOrganization = {
...video,
- hasPassword: Number(video.hasPassword) === 1,
- ownerIsPro: Number(video.ownerIsPro) === 1,
organizationMembers: membersList.map((member) => member.userId),
organizationId: video.sharedOrganization?.organizationId ?? undefined,
sharedOrganizations: sharedOrganizations,
diff --git a/apps/web/lib/folder.ts b/apps/web/lib/folder.ts
index ce55abdd9..94099c36d 100644
--- a/apps/web/lib/folder.ts
+++ b/apps/web/lib/folder.ts
@@ -11,6 +11,7 @@ import {
spaceVideos,
users,
videos,
+ videoUploads,
} from "@cap/database/schema";
import type { Video } from "@cap/web-domain";
import { Folder } from "@cap/web-domain";
@@ -175,13 +176,17 @@ export async function getVideosByFolderId(folderId: string) {
${videos.createdAt}
)
`,
- hasPassword: sql<number>`IF(${videos.password} IS NULL, 0, 1)`,
+ hasPassword: sql`${videos.password} IS NOT NULL`.mapWith(Boolean),
+ hasActiveUpload: sql`${videoUploads.videoId} IS NOT NULL`.mapWith(
+ Boolean,
+ ),
})
.from(videos)
.leftJoin(comments, eq(videos.id, comments.videoId))
.leftJoin(sharedVideos, eq(videos.id, sharedVideos.videoId))
.leftJoin(organizations, eq(sharedVideos.organizationId, organizations.id))
.leftJoin(users, eq(videos.ownerId, users.id))
+ .leftJoin(videoUploads, eq(videos.id, videoUploads.videoId))
.where(eq(videos.folderId, folderId))
.groupBy(
videos.id,
@@ -228,7 +233,8 @@ export async function getVideosByFolderId(folderId: string) {
[key: string]: unknown;
}
| undefined,
- hasPassword: video.hasPassword === 1,
+ hasPassword: video.hasPassword,
+ hasActiveUpload: video.hasActiveUpload,
foldersData: [], // Empty array since videos in a folder don't need folder data
};
});
diff --git a/crates/recording/src/feeds/camera.rs b/crates/recording/src/feeds/camera.rs
index a3b208052..87b71b719 100644
--- a/crates/recording/src/feeds/camera.rs
+++ b/crates/recording/src/feeds/camera.rs
@@ -359,14 +359,14 @@ impl Message<SetInput> for CameraFeed {
Ok(r) => {
let _ = ready_tx.send(Ok(InputConnected {
camera_info: r.camera_info.clone(),
- video_info: r.video_info.clone(),
+ video_info: r.video_info,
done_tx: done_tx.clone(),
}));
let _ = actor_ref
.ask(InputConnected {
camera_info: r.camera_info.clone(),
- video_info: r.video_info.clone(),
+ video_info: r.video_info,
done_tx: done_tx.clone(),
})
.await;
diff --git a/crates/rendering-skia/src/layers/background.rs b/crates/rendering-skia/src/layers/background.rs
index 5dbeb449b..2d6752779 100644
--- a/crates/rendering-skia/src/layers/background.rs
+++ b/crates/rendering-skia/src/layers/background.rs
@@ -247,10 +247,10 @@ impl RecordableLayer for BackgroundLayer {
self.render_background(canvas, bounds);
// Render border if enabled
- if let Some(border) = &uniforms.border {
- if border.enabled {
- self.render_border(canvas, bounds, border);
- }
+ if let Some(border) = &uniforms.border
+ && border.enabled
+ {
+ self.render_border(canvas, bounds, border);
}
// Update what was last rendered
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs
index c7447d125..94b8ab4ef 100644
--- a/crates/rendering/src/lib.rs
+++ b/crates/rendering/src/lib.rs
@@ -649,7 +649,7 @@ impl ProjectUniforms {
.background
.border
.as_ref()
- .map_or(false, |b| b.enabled)
+ .is_some_and(|b| b.enabled)
{
1.0
} else {
diff --git a/crates/rendering/src/scene.rs b/crates/rendering/src/scene.rs
index 94500b07d..9203633cc 100644
--- a/crates/rendering/src/scene.rs
+++ b/crates/rendering/src/scene.rs
@@ -64,17 +64,17 @@ pub struct InterpolatedScene {
}
impl InterpolatedScene {
- fn from_single_mode(mode: SceneMode) -> Self {
- let (camera_opacity, screen_opacity, camera_scale) = Self::get_scene_values(&mode);
+ fn from_single_mode(scene_mode: SceneMode) -> Self {
+ let (camera_opacity, screen_opacity, camera_scale) = Self::get_scene_values(&scene_mode);
InterpolatedScene {
camera_opacity,
screen_opacity,
camera_scale,
- scene_mode: mode.clone(),
+ scene_mode,
transition_progress: 1.0,
- from_mode: mode.clone(),
- to_mode: mode,
+ from_mode: scene_mode,
+ to_mode: scene_mode,
screen_blur: 0.0,
camera_only_zoom: 1.0,
camera_only_blur: 0.0,
@@ -100,21 +100,17 @@ impl InterpolatedScene {
);
if gap < MIN_GAP_FOR_TRANSITION && same_mode {
// Small gap between same modes, no transition needed
- return InterpolatedScene::from_single_mode(segment.mode.clone());
+ return InterpolatedScene::from_single_mode(segment.mode);
} else if gap > 0.01 {
SceneMode::Default
} else {
- prev_seg.mode.clone()
+ prev_seg.mode
}
} else {
SceneMode::Default
};
let progress = (cursor.time - transition_start) / SCENE_TRANSITION_DURATION;
- (
- prev_mode,
- segment.mode.clone(),
- ease_in_out(progress as f32) as f64,
- )
+ (prev_mode, segment.mode, ease_in_out(progress as f32) as f64)
} else if cursor.time >= transition_end && cursor.time < segment.end {
if let Some(next_seg) = cursor.next_segment() {
let gap = next_seg.start - segment.end;
@@ -128,13 +124,13 @@ impl InterpolatedScene {
);
if gap < MIN_GAP_FOR_TRANSITION && same_mode {
// Keep the current mode without transitioning
- (segment.mode.clone(), segment.mode.clone(), 1.0)
+ (segment.mode, segment.mode, 1.0)
} else if gap > 0.01 {
// There's a significant gap, so transition to default scene
let progress =
((cursor.time - transition_end) / SCENE_TRANSITION_DURATION).min(1.0);
(
- segment.mode.clone(),
+ segment.mode,
SceneMode::Default,
ease_in_out(progress as f32) as f64,
)
@@ -143,8 +139,8 @@ impl InterpolatedScene {
let progress =
((cursor.time - transition_end) / SCENE_TRANSITION_DURATION).min(1.0);
(
- segment.mode.clone(),
- next_seg.mode.clone(),
+ segment.mode,
+ next_seg.mode,
ease_in_out(progress as f32) as f64,
)
}
@@ -153,13 +149,13 @@ impl InterpolatedScene {
let progress =
((cursor.time - transition_end) / SCENE_TRANSITION_DURATION).min(1.0);
(
- segment.mode.clone(),
+ segment.mode,
SceneMode::Default,
ease_in_out(progress as f32) as f64,
)
}
} else {
- (segment.mode.clone(), segment.mode.clone(), 1.0)
+ (segment.mode, segment.mode, 1.0)
}
} else if let Some(next_segment) = cursor.next_segment() {
let transition_start = next_segment.start - SCENE_TRANSITION_DURATION;
@@ -175,18 +171,18 @@ impl InterpolatedScene {
| (SceneMode::HideCamera, SceneMode::HideCamera)
);
if gap < MIN_GAP_FOR_TRANSITION && same_mode {
- (prev_seg.mode.clone(), prev_seg.mode.clone(), 1.0)
+ (prev_seg.mode, prev_seg.mode, 1.0)
} else if cursor.time >= transition_start {
// Start transitioning into the next segment
let prev_mode = if gap > 0.01 {
SceneMode::Default
} else {
- prev_seg.mode.clone()
+ prev_seg.mode
};
let progress = (cursor.time - transition_start) / SCENE_TRANSITION_DURATION;
(
prev_mode,
- next_segment.mode.clone(),
+ next_segment.mode,
ease_in_out(progress as f32) as f64,
)
} else {
@@ -198,7 +194,7 @@ impl InterpolatedScene {
let progress = (cursor.time - transition_start) / SCENE_TRANSITION_DURATION;
(
SceneMode::Default,
- next_segment.mode.clone(),
+ next_segment.mode,
ease_in_out(progress as f32) as f64,
)
} else {
@@ -274,9 +270,9 @@ impl InterpolatedScene {
screen_opacity,
camera_scale,
scene_mode: if transition_progress > 0.5 {
- next_mode.clone()
+ next_mode
} else {
- current_mode.clone()
+ current_mode
},
transition_progress,
from_mode: current_mode,
diff --git a/packages/database/schema.ts b/packages/database/schema.ts
index 41c4df63e..fdb8beb8b 100644
--- a/packages/database/schema.ts
+++ b/packages/database/schema.ts
@@ -10,6 +10,7 @@ import {
mysqlTable,
text,
timestamp,
+ tinyint,
uniqueIndex,
varchar,
} from "drizzle-orm/mysql-core";
@@ -639,3 +640,11 @@ export const foldersRelations = relations(folders, ({ one, many }) => ({
childFolders: many(folders, { relationName: "parentChild" }),
videos: many(videos),
}));
+
+export const videoUploads = mysqlTable("video_uploads", {
+ videoId: nanoId("video_id").primaryKey().notNull(),
+ uploaded: int("uploaded").notNull().default(0),
+ total: int("total").notNull().default(0),
+ startedAt: timestamp("started_at").notNull().defaultNow(),
+ updatedAt: timestamp("updated_at").notNull().defaultNow(),
+});
diff --git a/packages/ui-solid/src/ProgressCircle.tsx b/packages/ui-solid/src/ProgressCircle.tsx
new file mode 100644
index 000000000..78e8fd946
--- /dev/null
+++ b/packages/ui-solid/src/ProgressCircle.tsx
@@ -0,0 +1,112 @@
+import { cva, type VariantProps } from "cva";
+import type { ComponentProps } from "solid-js";
+import { createMemo } from "solid-js";
+
+const containerStyles = cva("flex items-center justify-center relative", {
+ defaultVariants: {
+ size: "md",
+ },
+ variants: {
+ size: {
+ xs: "w-3 h-3",
+ sm: "w-[19px] h-[19px]",
+ md: "w-5 h-5",
+ lg: "w-6 h-6",
+ xl: "w-8 h-8",
+ },
+ },
+});
+
+const strokeStyles = cva("", {
+ defaultVariants: {
+ variant: "default",
+ },
+ variants: {
+ variant: {
+ default: "stroke-gray-12",
+ primary: "stroke-blue-10",
+ white: "stroke-white",
+ current: "stroke-current",
+ },
+ },
+});
+
+const backgroundStyles = cva("", {
+ defaultVariants: {
+ variant: "default",
+ },
+ variants: {
+ variant: {
+ default: "stroke-gray-6",
+ primary: "stroke-blue-5",
+ white: "stroke-white/20",
+ current: "stroke-current/20",
+ },
+ },
+});
+
+type ProgressCircleProps = VariantProps<typeof containerStyles> &
+ VariantProps<typeof strokeStyles> &
+ Omit<ComponentProps<"div">, "children"> & {
+ progress: number; // 0-100
+ strokeWidth?: number;
+ };
+
+export function ProgressCircle(props: ProgressCircleProps) {
+ const progress = () => Math.max(0, Math.min(100, props.progress));
+ const strokeWidth = () => props.strokeWidth ?? 2;
+
+ const radius = createMemo(() => {
+ const sizeMap = { xs: 6, sm: 8, md: 10, lg: 12, xl: 16 };
+ return sizeMap[props.size ?? "md"] - strokeWidth();
+ });
+
+ const circumference = createMemo(() => 2 * Math.PI * radius());
+ const strokeDashoffset = createMemo(
+ () => circumference() - (progress() / 100) * circumference(),
+ );
+
+ const center = createMemo(() => {
+ const sizeMap = { xs: 6, sm: 9, md: 10, lg: 12, xl: 16 };
+ return sizeMap[props.size ?? "md"];
+ });
+
+ return (
+ <div
+ {...props}
+ class={containerStyles({ size: props.size, class: props.class })}
+ >
+ <svg
+ class="w-full h-full transform -rotate-90"
+ viewBox={`0 0 ${center() * 2} ${center() * 2}`}
+ aria-label={`Progress: ${progress()}%`}
+ role="progressbar"
+ aria-valuenow={progress()}
+ aria-valuemin={0}
+ aria-valuemax={100}
+ >
+ {/* Background circle */}
+ <circle
+ cx={center()}
+ cy={center()}
+ r={radius()}
+ fill="none"
+ stroke-width={strokeWidth()}
+ class={backgroundStyles({ variant: props.variant })}
+ />
+ {/* Progress circle */}
+ <circle
+ cx={center()}
+ cy={center()}
+ r={radius()}
+ fill="none"
+ stroke-width={strokeWidth()}
+ stroke-linecap="round"
+ stroke-dasharray={circumference().toString()}
+ stroke-dashoffset={strokeDashoffset().toString()}
+ class={`transition-all duration-300 ${strokeStyles({ variant: props.variant })}`}
+ />
+ </svg>
+ </div>
+ );
+}
diff --git a/packages/ui-solid/src/index.tsx b/packages/ui-solid/src/index.tsx
index 642e4f246..79a1fadf7 100644
--- a/packages/ui-solid/src/index.tsx
+++ b/packages/ui-solid/src/index.tsx
@@ -1,2 +1,3 @@
export * from "./Button";
+export * from "./ProgressCircle";
export * from "./SwitchTab";
diff --git a/packages/web-backend/src/Videos/VideosRpcs.ts b/packages/web-backend/src/Videos/VideosRpcs.ts
index 5428052ac..c04de7f1d 100644
--- a/packages/web-backend/src/Videos/VideosRpcs.ts
+++ b/packages/web-backend/src/Videos/VideosRpcs.ts
@@ -1,6 +1,6 @@
import { InternalError, Video } from "@cap/web-domain";
import { Effect } from "effect";
-
+import { provideOptionalAuth } from "../Auth";
import { Videos } from ".";
export const VideosRpcsLive = Video.VideoRpcs.toLayer(
@@ -13,7 +13,7 @@ export const VideosRpcsLive = Video.VideoRpcs.toLayer(
Effect.catchTags({
DatabaseError: () => new InternalError({ type: "database" }),
S3Error: () => new InternalError({ type: "s3" }),
- UnknownException: () => new InternalError({ type: "s3" }),
+ UnknownException: () => new InternalError({ type: "unknown" }),
}),
),
VideoDuplicate: (videoId) =>
@@ -21,7 +21,16 @@ export const VideosRpcsLive = Video.VideoRpcs.toLayer(
Effect.catchTags({
DatabaseError: () => new InternalError({ type: "database" }),
S3Error: () => new InternalError({ type: "s3" }),
- UnknownException: () => new InternalError({ type: "s3" }),
+ UnknownException: () => new InternalError({ type: "unknown" }),
+ }),
+ ),
+ GetUploadProgress: (videoId) =>
+ videos.getUploadProgress(videoId).pipe(
+ provideOptionalAuth,
+ (v) => v,
+ Effect.catchTags({
+ DatabaseError: () => new InternalError({ type: "database" }),
+ UnknownException: () => new InternalError({ type: "unknown" }),
}),
),
};
diff --git a/packages/web-backend/src/Videos/index.ts b/packages/web-backend/src/Videos/index.ts
index 81d8bc031..720e77df5 100644
--- a/packages/web-backend/src/Videos/index.ts
+++ b/packages/web-backend/src/Videos/index.ts
@@ -1,5 +1,8 @@
+import * as Db from "@cap/database/schema";
import { CurrentUser, Policy, Video } from "@cap/web-domain";
-import { Array, Effect, Option } from "effect";
+import * as Dz from "drizzle-orm";
+import { Array, Effect, Option, pipe } from "effect";
+import { Database } from "../Database";
import { S3Buckets } from "../S3Buckets";
import { S3BucketAccess } from "../S3Buckets/S3BucketAccess";
import { VideosPolicy } from "./VideosPolicy";
@@ -103,6 +106,35 @@ export class Videos extends Effect.Service<Videos>()("Videos", {
);
}).pipe(Effect.provide(S3ProviderLayer));
}),
+
+ /*
+ * Gets the progress of a video upload.
+ */
+ getUploadProgress: Effect.fn("Videos.getUploadProgress")(function* (
+ videoId: Video.VideoId,
+ ) {
+ const db = yield* Database;
+
+ const [result] = yield* db
+ .execute((db) =>
+ db
+ .select({
+ uploaded: Db.videoUploads.uploaded,
+ total: Db.videoUploads.total,
+ startedAt: Db.videoUploads.startedAt,
+ updatedAt: Db.videoUploads.updatedAt,
+ })
+ .from(Db.videoUploads)
+ .where(Dz.eq(Db.videoUploads.videoId, videoId)),
+ )
+ .pipe(Policy.withPublicPolicy(policy.canView(videoId)));
+
+ return pipe(
+ result,
+ Option.fromNullable,
+ Option.map((r) => new Video.UploadProgress(r)),
+ );
+ }),
};
}),
dependencies: [VideosPolicy.Default, VideosRepo.Default, S3Buckets.Default],
diff --git a/packages/web-domain/src/Errors.ts b/packages/web-domain/src/Errors.ts
index 07a8ed26d..597d8c3d9 100644
--- a/packages/web-domain/src/Errors.ts
+++ b/packages/web-domain/src/Errors.ts
@@ -2,5 +2,5 @@ import { Schema } from "effect";
export class InternalError extends Schema.TaggedError<InternalError>()(
"InternalError",
- { type: Schema.Literal("database", "s3") },
+ { type: Schema.Literal("database", "s3", "unknown") },
) {}
diff --git a/packages/web-domain/src/Video.ts b/packages/web-domain/src/Video.ts
index 8df0deb36..b04317fe0 100644
--- a/packages/web-domain/src/Video.ts
+++ b/packages/web-domain/src/Video.ts
@@ -34,6 +34,15 @@ export class Video extends Schema.Class<Video>("Video")({
toJS = () => Schema.encode(Video)(this).pipe(Effect.orDie);
}
+export class UploadProgress extends Schema.Class<UploadProgress>(
+ "UploadProgress",
+)({
+ uploaded: Schema.Int.pipe(Schema.greaterThanOrEqualTo(0)),
+ total: Schema.Int.pipe(Schema.greaterThanOrEqualTo(0)),
+ startedAt: Schema.Date,
+ updatedAt: Schema.Date,
+}) {}
+
/**
* Used to specify a video password provided by a user,
* whether via cookies in the case of the website,
@@ -89,4 +98,14 @@ export class VideoRpcs extends RpcGroup.make(
payload: VideoId,
error: Schema.Union(NotFoundError, InternalError, PolicyDeniedError),
}).middleware(RpcAuthMiddleware),
+ Rpc.make("GetUploadProgress", {
+ payload: VideoId,
+ success: Schema.Option(UploadProgress),
+ error: Schema.Union(
+ NotFoundError,
+ InternalError,
+ PolicyDeniedError,
+ VerifyVideoPasswordError,
+ ),
+ }),
) {}