Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

start using new camera api (#788)

Brendan Allan0ab4c72af2d6
diff --git a/Cargo.lock b/Cargo.lock
index 4199c044e..71f5e4608 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,36 +10,18 @@ checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3"
[[package]]
name = "addr2line"
-version = "0.22.0"
+version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678"
+checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
dependencies = [
"gimli",
]
-[[package]]
-name = "adler"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
-
[[package]]
name = "adler2"
-version = "2.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
-
-[[package]]
-name = "ahash"
-version = "0.8.11"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
-dependencies = [
- "cfg-if 1.0.0",
- "once_cell",
- "version_check",
- "zerocopy",
-]
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
[[package]]
name = "aho-corasick"
@@ -52,9 +34,12 @@ dependencies = [
[[package]]
name = "aligned-vec"
-version = "0.5.0"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4aa90d7ce82d4be67b64039a3d588d38dbcc6736577de4a847025ce5b0c468d1"
+checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b"
+dependencies = [
+ "equator",
+]
[[package]]
name = "alloc-no-stdlib"
@@ -71,12 +56,6 @@ dependencies = [
"alloc-no-stdlib",
]
-[[package]]
-name = "allocator-api2"
-version = "0.2.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
-
[[package]]
name = "alsa"
version = "0.9.1"
@@ -84,8 +63,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed7572b7ba83a31e20d1b48970ee402d2e3e0537dcfe0a3ff4d6eb7508617d43"
dependencies = [
"alsa-sys",
- "bitflags 2.9.0",
- "cfg-if 1.0.0",
+ "bitflags 2.9.1",
+ "cfg-if",
"libc",
]
@@ -120,24 +99,15 @@ version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccaf7e9dfbb6ab22c82e473cd1a8a7bd313c19a5b7e40970f3d89ef5a5c9e81e"
dependencies = [
- "unicode-width",
+ "unicode-width 0.1.14",
"yansi-term",
]
-[[package]]
-name = "ansi_term"
-version = "0.12.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
-dependencies = [
- "winapi",
-]
-
[[package]]
name = "anstream"
-version = "0.6.18"
+version = "0.6.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
+checksum = "301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933"
dependencies = [
"anstyle",
"anstyle-parse",
@@ -150,35 +120,36 @@ dependencies = [
[[package]]
name = "anstyle"
-version = "1.0.10"
+version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
+checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd"
[[package]]
name = "anstyle-parse"
-version = "0.2.6"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
+checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
dependencies = [
"utf8parse",
]
[[package]]
name = "anstyle-query"
-version = "1.1.2"
+version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
+checksum = "6c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9"
dependencies = [
"windows-sys 0.59.0",
]
[[package]]
name = "anstyle-wincon"
-version = "3.0.6"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125"
+checksum = "403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882"
dependencies = [
"anstyle",
+ "once_cell_polyfill",
"windows-sys 0.59.0",
]
@@ -194,37 +165,40 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.86"
+version = "1.0.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
+checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
dependencies = [
"backtrace",
]
[[package]]
name = "arbitrary"
-version = "1.3.2"
+version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110"
+checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223"
dependencies = [
"derive_arbitrary",
]
[[package]]
name = "arboard"
-version = "3.4.1"
+version = "3.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df099ccb16cd014ff054ac1bf392c67feeef57164b05c42f037cd40f5d4357f4"
+checksum = "55f533f8e0af236ffe5eb979b99381df3258853f00ba2e44b6e1955292c75227"
dependencies = [
"clipboard-win",
- "core-graphics 0.23.2",
- "image 0.25.5",
+ "image",
"log",
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "objc2 0.6.1",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.1",
"parking_lot",
- "windows-sys 0.48.0",
+ "percent-encoding",
+ "windows-sys 0.59.0",
+ "wl-clipboard-rs",
"x11rb",
]
@@ -236,7 +210,7 @@ checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -251,19 +225,19 @@ version = "0.38.0+1.3.281"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
dependencies = [
- "libloading 0.8.5",
+ "libloading 0.8.8",
]
[[package]]
name = "ashpd"
-version = "0.9.2"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d43c03d9e36dd40cab48435be0b09646da362c278223ca535493877b2c1dee9"
+checksum = "6cbdf310d77fd3aaee6ea2093db7011dc2d35d2eb3481e5607f1f8d942ed99df"
dependencies = [
"enumflags2",
"futures-channel",
"futures-util",
- "rand 0.8.5",
+ "rand 0.9.2",
"raw-window-handle",
"serde",
"serde_repr",
@@ -272,14 +246,14 @@ dependencies = [
"wayland-backend",
"wayland-client",
"wayland-protocols",
- "zbus 4.4.0",
+ "zbus",
]
[[package]]
name = "async-broadcast"
-version = "0.7.1"
+version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20cd0e2e25ea8e5f7e9df04578dc6cf5c83577fd09b1a46aaf5c85e1c33f2a7e"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
dependencies = [
"event-listener",
"event-listener-strategy",
@@ -289,9 +263,9 @@ dependencies = [
[[package]]
name = "async-channel"
-version = "2.3.1"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a"
+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
dependencies = [
"concurrent-queue",
"event-listener-strategy",
@@ -301,45 +275,34 @@ dependencies = [
[[package]]
name = "async-executor"
-version = "1.13.1"
+version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30ca9a001c1e8ba5149f91a74362376cc6bc5b919d92d988668657bd570bdcec"
+checksum = "bb812ffb58524bdd10860d7d974e2f01cc0950c2438a74ee5ec2e2280c6c4ffa"
dependencies = [
"async-task",
"concurrent-queue",
"fastrand",
"futures-lite",
+ "pin-project-lite",
"slab",
]
-[[package]]
-name = "async-fs"
-version = "2.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebcd09b382f40fcd159c2d695175b2ae620ffa5f3bd6f664131efff4e8b9e04a"
-dependencies = [
- "async-lock",
- "blocking",
- "futures-lite",
-]
-
[[package]]
name = "async-io"
-version = "2.3.4"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "444b0228950ee6501b3568d3c93bf1176a1fdbc3b758dcd9475046d30f4dc7e8"
+checksum = "19634d6336019ef220f09fd31168ce5c184b295cbf80345437cc36094ef223ca"
dependencies = [
"async-lock",
- "cfg-if 1.0.0",
+ "cfg-if",
"concurrent-queue",
"futures-io",
"futures-lite",
"parking",
"polling",
- "rustix 0.38.39",
+ "rustix 1.0.8",
"slab",
- "tracing",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -355,9 +318,9 @@ dependencies = [
[[package]]
name = "async-process"
-version = "2.2.4"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8a07789659a4d385b79b18b9127fc27e1a59e1e89117c78c5ea3b806f016374"
+checksum = "65daa13722ad51e6ab1a1b9c01299142bc75135b337923cfa10e79bbbd669f00"
dependencies = [
"async-channel",
"async-io",
@@ -365,12 +328,10 @@ dependencies = [
"async-signal",
"async-task",
"blocking",
- "cfg-if 1.0.0",
+ "cfg-if",
"event-listener",
"futures-lite",
- "rustix 0.38.39",
- "tracing",
- "windows-sys 0.59.0",
+ "rustix 1.0.8",
]
[[package]]
@@ -381,25 +342,25 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "async-signal"
-version = "0.2.10"
+version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "637e00349800c0bdf8bfc21ebbc0b6524abea702b0da4168ac00d070d0c0b9f3"
+checksum = "f567af260ef69e1d52c2b560ce0ea230763e6fbb9214a85d768760a920e3e3c1"
dependencies = [
"async-io",
"async-lock",
"atomic-waker",
- "cfg-if 1.0.0",
+ "cfg-if",
"futures-core",
"futures-io",
- "rustix 0.38.39",
+ "rustix 1.0.8",
"signal-hook-registry",
"slab",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -410,20 +371,20 @@ checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
[[package]]
name = "async-trait"
-version = "0.1.81"
+version = "0.1.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107"
+checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "atk"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4af014b17dd80e8af9fa689b2d4a211ddba6eb583c1622f35d0cb543f6b17e4"
+checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b"
dependencies = [
"atk-sys",
"glib",
@@ -432,9 +393,9 @@ dependencies = [
[[package]]
name = "atk-sys"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "251e0b7d90e33e0ba930891a505a9a35ece37b2dd37a14f3ffc306c13b980009"
+checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086"
dependencies = [
"glib-sys",
"gobject-sys",
@@ -448,42 +409,31 @@ version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
-[[package]]
-name = "atty"
-version = "0.2.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
-dependencies = [
- "hermit-abi 0.1.19",
- "libc",
- "winapi",
-]
-
[[package]]
name = "autocfg"
-version = "1.3.0"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
+checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "av1-grain"
-version = "0.2.3"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6678909d8c5d46a42abcf571271e15fdbc0a225e3646cf23762cd415046c78bf"
+checksum = "4f3efb2ca85bc610acfa917b5aaa36f3fcbebed5b3182d7f877b02531c4b80c8"
dependencies = [
"anyhow",
"arrayvec",
"log",
- "nom 7.1.3",
+ "nom",
"num-rational",
"v_frame",
]
[[package]]
name = "avif-serialize"
-version = "0.8.2"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e335041290c43101ca215eed6f43ec437eb5a42125573f600fc3fa42b9bddd62"
+checksum = "2ea8ef51aced2b9191c08197f55450d830876d9933f8f48a429b354f1d496b42"
dependencies = [
"arrayvec",
]
@@ -505,7 +455,7 @@ dependencies = [
"http-body-util",
"hyper",
"hyper-util",
- "itoa 1.0.11",
+ "itoa",
"matchit",
"memchr",
"mime",
@@ -517,10 +467,10 @@ dependencies = [
"serde_path_to_error",
"serde_urlencoded",
"sha1",
- "sync_wrapper 1.0.1",
+ "sync_wrapper",
"tokio",
"tokio-tungstenite",
- "tower 0.5.1",
+ "tower",
"tower-layer",
"tower-service",
"tracing",
@@ -541,7 +491,7 @@ dependencies = [
"mime",
"pin-project-lite",
"rustversion",
- "sync_wrapper 1.0.1",
+ "sync_wrapper",
"tower-layer",
"tower-service",
"tracing",
@@ -555,22 +505,22 @@ checksum = "57d123550fa8d071b7255cb0cc04dc302baa6c8c4a79f55701552684d8399bce"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "backtrace"
-version = "0.3.73"
+version = "0.3.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a"
+checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002"
dependencies = [
"addr2line",
- "cc",
- "cfg-if 1.0.0",
+ "cfg-if",
"libc",
- "miniz_oxide 0.7.4",
+ "miniz_oxide",
"object",
"rustc-demangle",
+ "windows-targets 0.52.6",
]
[[package]]
@@ -593,87 +543,82 @@ checksum = "0fa4734ba28c4eb6dcd44213f969e007bd2a17f966151656d1c7676f8526bedd"
[[package]]
name = "bindgen"
-version = "0.56.0"
+version = "0.69.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2da379dbebc0b76ef63ca68d8fc6e71c0f13e59432e0987e508c1820e6ab5239"
+checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
dependencies = [
- "bitflags 1.3.2",
- "cexpr 0.4.0",
+ "annotate-snippets",
+ "bitflags 2.9.1",
+ "cexpr",
"clang-sys",
- "clap 2.34.0",
- "env_logger",
+ "itertools 0.12.1",
"lazy_static",
"lazycell",
"log",
- "peeking_take_while",
+ "prettyplease",
"proc-macro2",
"quote",
"regex",
"rustc-hash 1.1.0",
- "shlex 0.1.1",
- "which 3.1.1",
+ "shlex",
+ "syn 2.0.104",
+ "which",
]
[[package]]
name = "bindgen"
-version = "0.69.4"
+version = "0.70.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
+checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f"
dependencies = [
- "annotate-snippets",
- "bitflags 2.9.0",
- "cexpr 0.6.0",
+ "bitflags 2.9.1",
+ "cexpr",
"clang-sys",
- "itertools",
- "lazy_static",
- "lazycell",
- "log",
- "prettyplease",
+ "itertools 0.13.0",
"proc-macro2",
"quote",
"regex",
"rustc-hash 1.1.0",
- "shlex 1.3.0",
- "syn 2.0.90",
- "which 4.4.2",
+ "shlex",
+ "syn 2.0.104",
]
[[package]]
name = "bindgen"
-version = "0.70.1"
+version = "0.71.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f"
+checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
dependencies = [
- "bitflags 2.9.0",
- "cexpr 0.6.0",
+ "bitflags 2.9.1",
+ "cexpr",
"clang-sys",
- "itertools",
+ "itertools 0.13.0",
+ "log",
+ "prettyplease",
"proc-macro2",
"quote",
"regex",
- "rustc-hash 1.1.0",
- "shlex 1.3.0",
- "syn 2.0.90",
+ "rustc-hash 2.1.1",
+ "shlex",
+ "syn 2.0.104",
]
[[package]]
name = "bindgen"
-version = "0.71.1"
+version = "0.72.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
+checksum = "4f72209734318d0b619a5e0f5129918b848c416e122a3c4ce054e03cb87b726f"
dependencies = [
- "bitflags 2.9.0",
- "cexpr 0.6.0",
+ "bitflags 2.9.1",
+ "cexpr",
"clang-sys",
- "itertools",
- "log",
- "prettyplease",
+ "itertools 0.13.0",
"proc-macro2",
"quote",
"regex",
"rustc-hash 2.1.1",
- "shlex 1.3.0",
- "syn 2.0.90",
+ "shlex",
+ "syn 2.0.104",
]
[[package]]
@@ -705,18 +650,18 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
-version = "2.9.0"
+version = "2.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
+checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
dependencies = [
"serde",
]
[[package]]
name = "bitstream-io"
-version = "2.5.3"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b81e1519b0d82120d2fd469d5bfb2919a9361c48b02d82d04befc1cdd2002452"
+checksum = "6099cdc01846bc367c4e7dd630dc5966dccf36b652fae7a74e17b640411a91b2"
[[package]]
name = "block"
@@ -733,25 +678,6 @@ dependencies = [
"generic-array",
]
-[[package]]
-name = "block-sys"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae85a0696e7ea3b835a453750bf002770776609115e6d25c6d2ff28a8200f7e7"
-dependencies = [
- "objc-sys",
-]
-
-[[package]]
-name = "block2"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e58aa60e59d8dbfcc36138f5f18be5f24394d33b38b24f7fd0b1caa33095f22f"
-dependencies = [
- "block-sys",
- "objc2 0.5.2",
-]
-
[[package]]
name = "block2"
version = "0.5.1"
@@ -763,18 +689,18 @@ dependencies = [
[[package]]
name = "block2"
-version = "0.6.0"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d59b4c170e16f0405a2e95aff44432a0d41aa97675f3d52623effe95792a037"
+checksum = "340d2f0bdb2a43c1d3cd40513185b2bd7def0aa1052f956455114bc98f82dcf2"
dependencies = [
- "objc2 0.6.0",
+ "objc2 0.6.1",
]
[[package]]
name = "blocking"
-version = "1.6.1"
+version = "1.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea"
+checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21"
dependencies = [
"async-channel",
"async-task",
@@ -785,9 +711,9 @@ dependencies = [
[[package]]
name = "brotli"
-version = "7.0.0"
+version = "8.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd"
+checksum = "9991eea70ea4f293524138648e41ee89b0b2b12ddef3b255effa43c8056e0e0d"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
@@ -796,9 +722,9 @@ dependencies = [
[[package]]
name = "brotli-decompressor"
-version = "4.0.1"
+version = "5.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362"
+checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
@@ -814,20 +740,20 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "built"
-version = "0.7.4"
+version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "236e6289eda5a812bc6b53c3b024039382a2895fbbeef2d748b2931546d392c4"
+checksum = "56ed6191a7e78c36abdb16ab65341eefd73d64d303fffccdbb00d51e4205967b"
[[package]]
name = "bumpalo"
-version = "3.16.0"
+version = "3.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
+checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
[[package]]
name = "bytemuck"
@@ -840,13 +766,13 @@ dependencies = [
[[package]]
name = "bytemuck_derive"
-version = "1.7.1"
+version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0cc8b54b395f2fcfbb3d90c47b01c7f444d94d05bdeb775811dec868ac3bbc26"
+checksum = "441473f2b4b0459a68628c744bc61d23e730fb00128b841d30fa4bb3972257e4"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -863,9 +789,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
[[package]]
name = "bytes"
-version = "1.7.1"
+version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50"
+checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
dependencies = [
"serde",
]
@@ -876,7 +802,7 @@ version = "0.18.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"cairo-sys-rs",
"glib",
"libc",
@@ -897,9 +823,9 @@ dependencies = [
[[package]]
name = "camino"
-version = "1.1.9"
+version = "1.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3"
+checksum = "0da45bc31171d8d6960122e222a67740df867c1dd53b4d51caa297084c185cab"
dependencies = [
"serde",
]
@@ -908,6 +834,7 @@ dependencies = [
name = "cap"
version = "0.1.0"
dependencies = [
+ "cap-camera",
"cap-editor",
"cap-export",
"cap-flags",
@@ -916,12 +843,10 @@ dependencies = [
"cap-recording",
"cap-rendering",
"cap-utils",
- "clap 4.5.41",
+ "clap",
"editor",
"ffmpeg-next",
- "flume 0.11.0",
- "nokhwa",
- "nokhwa-bindings-macos",
+ "flume",
"scap",
"serde",
"serde_json",
@@ -941,12 +866,27 @@ dependencies = [
"tokio",
]
+[[package]]
+name = "cap-camera"
+version = "0.1.0"
+dependencies = [
+ "cap-camera-avfoundation",
+ "cap-camera-windows",
+ "cidre",
+ "inquire",
+ "serde",
+ "specta",
+ "thiserror 1.0.69",
+ "windows 0.60.0",
+ "windows-core 0.60.1",
+]
+
[[package]]
name = "cap-camera-avfoundation"
version = "0.1.0"
dependencies = [
"cidre",
- "clap 4.5.41",
+ "clap",
"inquire",
]
@@ -955,17 +895,34 @@ name = "cap-camera-directshow"
version = "0.1.0"
dependencies = [
"inquire",
+ "thiserror 1.0.69",
"tracing",
"tracing-subscriber",
"windows 0.60.0",
"windows-core 0.60.1",
]
+[[package]]
+name = "cap-camera-ffmpeg"
+version = "0.1.0"
+dependencies = [
+ "cap-camera",
+ "cap-camera-avfoundation",
+ "cap-camera-windows",
+ "cidre",
+ "ffmpeg-next",
+ "inquire",
+ "thiserror 1.0.69",
+ "windows 0.60.0",
+ "windows-core 0.60.1",
+]
+
[[package]]
name = "cap-camera-mediafoundation"
version = "0.1.0"
dependencies = [
"inquire",
+ "thiserror 1.0.69",
"tracing",
"windows 0.60.0",
"windows-core 0.60.1",
@@ -977,7 +934,6 @@ version = "0.1.0"
dependencies = [
"cap-camera-directshow",
"cap-camera-mediafoundation",
- "ffmpeg-next",
"inquire",
"thiserror 1.0.69",
"windows 0.60.0",
@@ -990,18 +946,19 @@ version = "0.1.0"
dependencies = [
"cap-displays",
"core-graphics 0.24.0",
- "device_query 3.0.1",
+ "device_query",
]
[[package]]
name = "cap-desktop"
-version = "0.3.60"
+version = "0.3.61-beta.1"
dependencies = [
"anyhow",
"axum",
"base64 0.22.1",
"bytemuck",
"cap-audio",
+ "cap-camera",
"cap-editor",
"cap-export",
"cap-fail",
@@ -1012,20 +969,21 @@ dependencies = [
"cap-rendering",
"cap-utils",
"chrono",
+ "cidre",
"clipboard-rs",
- "cocoa 0.26.0",
- "core-foundation 0.10.0",
+ "cocoa 0.26.1",
+ "core-foundation 0.10.1",
"core-graphics 0.24.0",
"cpal 0.15.3 (git+https://github.com/RustAudio/cpal?rev=f43d36e55494993bbbde3299af0c53e5cdf4d4cf)",
- "device_query 2.1.0",
+ "device_query",
"dirs",
"dotenvy_macro",
"ffmpeg-next",
- "flume 0.11.0",
+ "flume",
"futures",
"futures-intrusive",
"global-hotkey",
- "image 0.25.5",
+ "image",
"keyed_priority_queue",
"lazy_static",
"log",
@@ -1033,7 +991,7 @@ dependencies = [
"mp4",
"nix 0.29.0",
"objc",
- "objc2-app-kit 0.3.0",
+ "objc2-app-kit",
"png",
"rand 0.8.5",
"relative-path",
@@ -1077,7 +1035,7 @@ dependencies = [
"uuid",
"wgpu",
"whisper-rs",
- "windows 0.58.0",
+ "windows 0.60.0",
"windows-sys 0.59.0",
]
@@ -1086,7 +1044,7 @@ name = "cap-displays"
version = "0.1.0"
dependencies = [
"core-graphics 0.24.0",
- "windows 0.58.0",
+ "windows 0.60.0",
"windows-sys 0.59.0",
]
@@ -1101,7 +1059,7 @@ dependencies = [
"cap-rendering",
"cpal 0.15.3 (git+https://github.com/RustAudio/cpal?rev=f43d36e55494993bbbde3299af0c53e5cdf4d4cf)",
"ffmpeg-next",
- "flume 0.11.0",
+ "flume",
"futures",
"sentry",
"serde",
@@ -1121,10 +1079,10 @@ dependencies = [
"cap-project",
"cap-rendering",
"cap-utils",
- "clap 4.5.41",
+ "clap",
"ffmpeg-next",
"futures",
- "image 0.25.5",
+ "image",
"inquire",
"mp4",
"serde",
@@ -1164,24 +1122,25 @@ version = "0.1.0"
dependencies = [
"axum",
"cap-audio",
+ "cap-camera",
+ "cap-camera-ffmpeg",
+ "cap-camera-windows",
"cap-fail",
"cap-flags",
- "cap-gpu-converters",
"cap-project",
"cidre",
- "cocoa 0.26.0",
- "core-foundation 0.10.0",
+ "cocoa 0.26.1",
+ "core-foundation 0.10.1",
"core-graphics 0.24.0",
"cpal 0.15.3 (git+https://github.com/RustAudio/cpal?rev=f43d36e55494993bbbde3299af0c53e5cdf4d4cf)",
"ffmpeg-next",
"ffmpeg-sys-next",
- "flume 0.11.0",
+ "flume",
"futures",
"gif",
- "image 0.25.5",
+ "image",
"indexmap 2.10.0",
- "nokhwa",
- "nokhwa-bindings-macos",
+ "inquire",
"num-traits",
"objc",
"objc-foundation",
@@ -1196,7 +1155,8 @@ dependencies = [
"tokio",
"tokio-util",
"tracing",
- "windows 0.58.0",
+ "tracing-subscriber",
+ "windows 0.60.0",
"windows-capture",
]
@@ -1225,13 +1185,13 @@ dependencies = [
"cap-utils",
"chrono",
"cidre",
- "cocoa 0.26.0",
- "device_query 2.1.0",
+ "cocoa 0.26.1",
+ "device_query",
"either",
"ffmpeg-next",
- "flume 0.11.0",
+ "flume",
"futures",
- "image 0.25.5",
+ "image",
"objc",
"relative-path",
"scap",
@@ -1245,7 +1205,7 @@ dependencies = [
"tokio-util",
"tracing",
"tracing-subscriber",
- "windows 0.58.0",
+ "windows 0.60.0",
]
[[package]]
@@ -1266,7 +1226,7 @@ dependencies = [
"futures",
"futures-intrusive",
"glyphon",
- "image 0.25.5",
+ "image",
"log",
"pretty_assertions",
"reactive_graph",
@@ -1297,7 +1257,7 @@ dependencies = [
name = "cap-utils"
version = "0.1.0"
dependencies = [
- "flume 0.11.0",
+ "flume",
"futures",
"nix 0.29.0",
"serde",
@@ -1323,18 +1283,18 @@ dependencies = [
[[package]]
name = "cargo-platform"
-version = "0.1.8"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc"
+checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"
dependencies = [
"serde",
]
[[package]]
name = "cargo_metadata"
-version = "0.19.1"
+version = "0.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8769706aad5d996120af43197bf46ef6ad0fda35216b4505f926a365a232d924"
+checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"
dependencies = [
"camino",
"cargo-platform",
@@ -1346,23 +1306,23 @@ dependencies = [
[[package]]
name = "cargo_toml"
-version = "0.22.1"
+version = "0.22.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02260d489095346e5cafd04dea8e8cb54d1d74fcd759022a9b72986ebe9a1257"
+checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"
dependencies = [
"serde",
- "toml",
+ "toml 0.9.4",
]
[[package]]
name = "cc"
-version = "1.2.24"
+version = "1.2.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "16595d3be041c03b09d08d0858631facccee9221e579704070e6e9e4915d3bc7"
+checksum = "deec109607ca693028562ed836a5f1c4b8bd77755c4e132fc5ce11b0b6211ae7"
dependencies = [
"jobserver",
"libc",
- "shlex 1.3.0",
+ "shlex",
]
[[package]]
@@ -1371,22 +1331,13 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
-[[package]]
-name = "cexpr"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f4aedb84272dbe89af497cf81375129abda4fc0a9e7c5d317498c15cc30c0d27"
-dependencies = [
- "nom 5.1.3",
-]
-
[[package]]
name = "cexpr"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
dependencies = [
- "nom 7.1.3",
+ "nom",
]
[[package]]
@@ -1412,15 +1363,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "0.1.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
-
-[[package]]
-name = "cfg-if"
-version = "1.0.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
[[package]]
name = "cfg_aliases"
@@ -1439,9 +1384,9 @@ dependencies = [
[[package]]
name = "chrono"
-version = "0.4.38"
+version = "0.4.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
+checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d"
dependencies = [
"android-tzdata",
"iana-time-zone",
@@ -1449,7 +1394,7 @@ dependencies = [
"num-traits",
"serde",
"wasm-bindgen",
- "windows-targets 0.52.6",
+ "windows-link",
]
[[package]]
@@ -1475,29 +1420,14 @@ checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
dependencies = [
"glob",
"libc",
- "libloading 0.8.5",
-]
-
-[[package]]
-name = "clap"
-version = "2.34.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
-dependencies = [
- "ansi_term",
- "atty",
- "bitflags 1.3.2",
- "strsim 0.8.0",
- "textwrap",
- "unicode-width",
- "vec_map",
+ "libloading 0.8.8",
]
[[package]]
name = "clap"
-version = "4.5.41"
+version = "4.5.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be92d32e80243a54711e5d7ce823c35c41c9d929dc4ab58e1276f625841aadf9"
+checksum = "ed87a9d530bb41a67537289bafcac159cb3ee28460e0a4571123d2a778a6a882"
dependencies = [
"clap_builder",
"clap_derive",
@@ -1505,14 +1435,14 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.5.41"
+version = "4.5.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "707eab41e9622f9139419d573eca0900137718000c517d47da73045f54331c3d"
+checksum = "64f4f3f3c77c94aff3c7e9aac9a2ca1974a5adf392a8bb751e827d6d127ab966"
dependencies = [
"anstream",
"anstyle",
"clap_lex",
- "strsim 0.11.1",
+ "strsim",
]
[[package]]
@@ -1524,14 +1454,14 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "clap_lex"
-version = "0.7.4"
+version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
+checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675"
[[package]]
name = "claxon"
@@ -1546,19 +1476,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "afede46921767868c5c7f8f55202bdd8bec0bab6bc9605174200f45924f93c62"
dependencies = [
"clipboard-win",
- "image 0.25.5",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
- "objc2-foundation 0.3.0",
+ "image",
+ "objc2 0.6.1",
+ "objc2-app-kit",
+ "objc2-foundation 0.3.1",
"windows 0.59.0",
"x11rb",
]
[[package]]
name = "clipboard-win"
-version = "5.4.0"
+version = "5.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "15efe7a882b08f34e38556b14f2fb3daa98769d06c7f0c1b076dfd0d983bc892"
+checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"
dependencies = [
"error-code",
"windows-win",
@@ -1573,21 +1503,6 @@ dependencies = [
"cc",
]
-[[package]]
-name = "cocoa"
-version = "0.20.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c49e86fc36d5704151f5996b7b3795385f50ce09e3be0f47a0cfde869681cf8"
-dependencies = [
- "bitflags 1.3.2",
- "block",
- "core-foundation 0.7.0",
- "core-graphics 0.19.2",
- "foreign-types 0.3.2",
- "libc",
- "objc",
-]
-
[[package]]
name = "cocoa"
version = "0.25.0"
@@ -1606,14 +1521,14 @@ dependencies = [
[[package]]
name = "cocoa"
-version = "0.26.0"
+version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f79398230a6e2c08f5c9760610eb6924b52aa9e7950a619602baba59dcbbdbb2"
+checksum = "ad36507aeb7e16159dfe68db81ccc27571c3ccd4b76fb2fb72fc59e7a4b1b64c"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block",
- "cocoa-foundation 0.2.0",
- "core-foundation 0.10.0",
+ "cocoa-foundation 0.2.1",
+ "core-foundation 0.10.1",
"core-graphics 0.24.0",
"foreign-types 0.5.0",
"libc",
@@ -1636,15 +1551,14 @@ dependencies = [
[[package]]
name = "cocoa-foundation"
-version = "0.2.0"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e14045fb83be07b5acf1c0884b2180461635b433455fa35d1cd6f17f1450679d"
+checksum = "81411967c50ee9a1fc11365f8c585f863a22a9697c89239c452292c40ba79b0d"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block",
- "core-foundation 0.10.0",
+ "core-foundation 0.10.1",
"core-graphics-types 0.2.0",
- "libc",
"objc",
]
@@ -1656,7 +1570,7 @@ checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
dependencies = [
"serde",
"termcolor",
- "unicode-width",
+ "unicode-width 0.2.1",
]
[[package]]
@@ -1667,9 +1581,9 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
[[package]]
name = "colorchoice"
-version = "1.0.3"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
+checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
[[package]]
name = "combine"
@@ -1705,7 +1619,7 @@ version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e"
dependencies = [
- "getrandom 0.2.15",
+ "getrandom 0.2.16",
"once_cell",
"tiny-keccak",
]
@@ -1747,12 +1661,13 @@ dependencies = [
[[package]]
name = "cookie_store"
-version = "0.21.0"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4934e6b7e8419148b6ef56950d277af8561060b56afd59e2aadf98b59fce6baa"
+checksum = "2eac901828f88a5241ee0600950ab981148a18f2f756900ffba1b125ca6a3ef9"
dependencies = [
"cookie",
- "idna 0.5.0",
+ "document-features",
+ "idna",
"log",
"publicsuffix",
"serde",
@@ -1768,17 +1683,7 @@ version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02f7359c779907f80443d2b2d1b5a61182abb6d8ffd43b6fcb87a27c327d845f"
dependencies = [
- "core-foundation 0.10.0",
-]
-
-[[package]]
-name = "core-foundation"
-version = "0.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171"
-dependencies = [
- "core-foundation-sys 0.7.0",
- "libc",
+ "core-foundation 0.10.1",
]
[[package]]
@@ -1787,26 +1692,20 @@ version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
dependencies = [
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"libc",
]
[[package]]
name = "core-foundation"
-version = "0.10.0"
+version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b55271e5c8c478ad3f38ad24ef34923091e0548492a266d19b3c0b4d82574c63"
+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
dependencies = [
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"libc",
]
-[[package]]
-name = "core-foundation-sys"
-version = "0.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac"
-
[[package]]
name = "core-foundation-sys"
version = "0.8.7"
@@ -1815,37 +1714,38 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "core-graphics"
-version = "0.19.2"
+version = "0.23.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3889374e6ea6ab25dba90bb5d96202f61108058361f6dc72e8b03e6f8bbe923"
+checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
dependencies = [
"bitflags 1.3.2",
- "core-foundation 0.7.0",
- "foreign-types 0.3.2",
+ "core-foundation 0.9.4",
+ "core-graphics-types 0.1.3",
+ "foreign-types 0.5.0",
"libc",
]
[[package]]
name = "core-graphics"
-version = "0.23.2"
+version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
+checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
dependencies = [
- "bitflags 1.3.2",
- "core-foundation 0.9.4",
- "core-graphics-types 0.1.3",
+ "bitflags 2.9.1",
+ "core-foundation 0.10.1",
+ "core-graphics-types 0.2.0",
"foreign-types 0.5.0",
"libc",
]
[[package]]
name = "core-graphics"
-version = "0.24.0"
+version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
+checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
dependencies = [
- "bitflags 2.9.0",
- "core-foundation 0.10.0",
+ "bitflags 2.9.1",
+ "core-foundation 0.10.1",
"core-graphics-types 0.2.0",
"foreign-types 0.5.0",
"libc",
@@ -1857,7 +1757,7 @@ version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32eb7c354ae9f6d437a6039099ce7ecd049337a8109b23d73e48e8ffba8e9cd5"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"core-foundation 0.9.4",
"core-graphics-types 0.1.3",
"foreign-types 0.5.0",
@@ -1881,8 +1781,8 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
dependencies = [
- "bitflags 2.9.0",
- "core-foundation 0.10.0",
+ "bitflags 2.9.1",
+ "core-foundation 0.10.1",
"libc",
]
@@ -1893,30 +1793,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e33a8804301de5fc0f705ea1cdea692233c08bdcee8e42abb258f5de3b9a5e7"
dependencies = [
"core-audio-types-rs",
- "core-foundation 0.10.0",
+ "core-foundation 0.10.1",
"core-utils-rs",
"core-video-rs",
"thiserror 2.0.12",
]
-[[package]]
-name = "core-media-sys"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "273bf3fc5bf51fd06a7766a84788c1540b6527130a0bce39e00567d6ab9f31f1"
-dependencies = [
- "cfg-if 0.1.10",
- "core-foundation-sys 0.7.0",
- "libc",
-]
-
[[package]]
name = "core-utils-rs"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "068ec1aa07335261033bf610b2868ea9db05353468b72b0045ae469e00d26121"
dependencies = [
- "core-foundation 0.10.0",
+ "core-foundation 0.10.1",
"four-char-code",
]
@@ -1926,27 +1815,13 @@ version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7559e93f816c05607068cb0b741d997a47709f4ba70b36a02d335f7136b30c46"
dependencies = [
- "core-foundation 0.10.0",
+ "core-foundation 0.10.1",
"core-graphics 0.24.0",
"core-utils-rs",
"io-surface",
"thiserror 2.0.12",
]
-[[package]]
-name = "core-video-sys"
-version = "0.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34ecad23610ad9757664d644e369246edde1803fcb43ed72876565098a5d3828"
-dependencies = [
- "cfg-if 0.1.10",
- "core-foundation-sys 0.7.0",
- "core-graphics 0.19.2",
- "libc",
- "metal 0.18.0",
- "objc",
-]
-
[[package]]
name = "coreaudio-rs"
version = "0.11.3"
@@ -1954,17 +1829,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "321077172d79c662f64f5071a03120748d5bb652f5231570141be24cfcd2bace"
dependencies = [
"bitflags 1.3.2",
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"coreaudio-sys",
]
[[package]]
name = "coreaudio-sys"
-version = "0.2.15"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f01585027057ff5f0a5bf276174ae4c1594a2c5bde93d5f46a016d76270f5a9"
+checksum = "ceec7a6067e62d6f931a2baf6f3a751f4a892595bcec1461a3c94ef9949864b6"
dependencies = [
- "bindgen 0.69.4",
+ "bindgen 0.72.0",
]
[[package]]
@@ -1973,7 +1848,7 @@ version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da46a9d5a8905cc538a4a5bceb6a4510de7a51049c5588c0114efce102bcbbe8"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"fontdb",
"log",
"rangemap",
@@ -1997,7 +1872,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "873dab07c8f743075e57f524c583985fbaf745602acbe916a01539364369a779"
dependencies = [
"alsa",
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"coreaudio-rs",
"dasp_sample",
"jni",
@@ -2019,7 +1894,7 @@ version = "0.15.3"
source = "git+https://github.com/RustAudio/cpal?rev=f43d36e55494993bbbde3299af0c53e5cdf4d4cf#f43d36e55494993bbbde3299af0c53e5cdf4d4cf"
dependencies = [
"alsa",
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"coreaudio-rs",
"dasp_sample",
"jni",
@@ -2037,36 +1912,36 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.13"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51e852e6dc9a5bed1fae92dd2375037bf2b768725bf3be87811edee3249d09ad"
+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
dependencies = [
"libc",
]
[[package]]
name = "crc32fast"
-version = "1.4.2"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"
+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
]
[[package]]
name = "crossbeam-channel"
-version = "0.5.13"
+version = "0.5.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2"
+checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-deque"
-version = "0.8.5"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"
+checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -2083,9 +1958,9 @@ dependencies = [
[[package]]
name = "crossbeam-utils"
-version = "0.8.20"
+version = "0.8.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"
+checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
[[package]]
name = "crossterm"
@@ -2109,7 +1984,7 @@ version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"crossterm_winapi",
"libc",
"mio 0.8.11",
@@ -2130,9 +2005,9 @@ dependencies = [
[[package]]
name = "crunchy"
-version = "0.2.2"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
+checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "crypto-common"
@@ -2146,15 +2021,15 @@ dependencies = [
[[package]]
name = "cssparser"
-version = "0.27.2"
+version = "0.29.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a"
+checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa"
dependencies = [
"cssparser-macros",
"dtoa-short",
- "itoa 0.4.8",
+ "itoa",
"matches",
- "phf 0.8.0",
+ "phf 0.10.1",
"proc-macro2",
"quote",
"smallvec",
@@ -2168,34 +2043,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
dependencies = [
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "ctor"
-version = "0.2.8"
+version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f"
+checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"
dependencies = [
"quote",
- "syn 2.0.90",
-]
-
-[[package]]
-name = "ctrlc"
-version = "3.4.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90eeab0aa92f3f9b4e87f258c72b139c207d251f9cbc1080a0086b86a8870dd3"
-dependencies = [
- "nix 0.29.0",
- "windows-sys 0.59.0",
+ "syn 2.0.104",
]
[[package]]
name = "darling"
-version = "0.20.10"
+version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"
+checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
dependencies = [
"darling_core",
"darling_macro",
@@ -2203,27 +2068,27 @@ dependencies = [
[[package]]
name = "darling_core"
-version = "0.20.10"
+version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"
+checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
- "strsim 0.11.1",
- "syn 2.0.90",
+ "strsim",
+ "syn 2.0.104",
]
[[package]]
name = "darling_macro"
-version = "0.20.10"
+version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
+checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
dependencies = [
"darling_core",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -2234,9 +2099,9 @@ checksum = "0c87e182de0887fd5361989c677c4e8f5000cd9491d6d563161a8f3a5519fc7f"
[[package]]
name = "data-encoding"
-version = "2.6.0"
+version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2"
+checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476"
[[package]]
name = "data-url"
@@ -2267,9 +2132,9 @@ dependencies = [
[[package]]
name = "deranged"
-version = "0.3.11"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
+checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e"
dependencies = [
"powerfmt",
"serde",
@@ -2277,48 +2142,33 @@ dependencies = [
[[package]]
name = "derive_arbitrary"
-version = "1.3.2"
+version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"
+checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "derive_more"
-version = "0.99.18"
+version = "0.99.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce"
+checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f"
dependencies = [
"convert_case 0.4.0",
"proc-macro2",
"quote",
"rustc_version",
- "syn 2.0.90",
-]
-
-[[package]]
-name = "device_query"
-version = "2.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bafa241a89a5edccff5057d0b85fbc083a781bd03d766c11a688331604980985"
-dependencies = [
- "lazy_static",
- "macos-accessibility-client",
- "pkg-config",
- "readkey",
- "readmouse",
- "windows 0.48.0",
- "x11",
+ "syn 2.0.104",
]
[[package]]
name = "device_query"
-version = "3.0.1"
+version = "4.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "429b683ad2cf0d2f0f37f510655854baf18d5f108c3790ab5dd1d09a26874436"
+checksum = "d7331225604b9b097b41872d550134933d4be83465d70a2c4a132b929f99aaca"
dependencies = [
"macos-accessibility-client",
"pkg-config",
@@ -2362,7 +2212,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -2371,6 +2221,18 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
+[[package]]
+name = "dispatch2"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
+dependencies = [
+ "bitflags 2.9.1",
+ "block2 0.6.1",
+ "libc",
+ "objc2 0.6.1",
+]
+
[[package]]
name = "displaydoc"
version = "0.2.5"
@@ -2379,7 +2241,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -2388,7 +2250,7 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412"
dependencies = [
- "libloading 0.8.5",
+ "libloading 0.8.8",
]
[[package]]
@@ -2405,13 +2267,13 @@ dependencies = [
[[package]]
name = "dlopen2_derive"
-version = "0.4.0"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2b99bf03862d7f545ebc28ddd33a665b50865f4dfd84031a393823879bd4c54"
+checksum = "788160fb30de9cdd857af31c6a2675904b16ece8fc2737b2c7127ba368c9d0f4"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -2458,18 +2320,18 @@ checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
[[package]]
name = "dpi"
-version = "0.1.1"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f25c0e292a7ca6d6498557ff1df68f32c99850012b6ea401cf8daf771f22ff53"
+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
dependencies = [
"serde",
]
[[package]]
name = "dtoa"
-version = "1.0.9"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653"
+checksum = "d6add3b8cff394282be81f3fc1a0605db594ed69890078ca6e2cab1c408bcf04"
[[package]]
name = "dtoa-short"
@@ -2488,9 +2350,9 @@ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]]
name = "dyn-clone"
-version = "1.0.17"
+version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
[[package]]
name = "editor"
@@ -2505,20 +2367,20 @@ dependencies = [
[[package]]
name = "either"
-version = "1.13.0"
+version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
+checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "embed-resource"
-version = "3.0.1"
+version = "3.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4762ce03154ba57ebaeee60cc631901ceae4f18219cbb874e464347471594742"
+checksum = "4c6d81016d6c977deefb2ef8d8290da019e27cc26167e102185da528e6c0ab38"
dependencies = [
"cc",
"memchr",
"rustc_version",
- "toml",
+ "toml 0.9.4",
"vswhom",
"winreg",
]
@@ -2531,11 +2393,11 @@ checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
[[package]]
name = "encoding_rs"
-version = "0.8.34"
+version = "0.8.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59"
+checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
]
[[package]]
@@ -2546,9 +2408,9 @@ checksum = "a3d8a32ae18130a3c84dd492d4215c3d913c3b07c6b63c2eb3eb7ff1101ab7bf"
[[package]]
name = "enumflags2"
-version = "0.7.10"
+version = "0.7.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d232db7f5956f3f14313dc2f87985c58bd2c695ce124c8cdd984e08e15ac133d"
+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
dependencies = [
"enumflags2_derive",
"serde",
@@ -2556,39 +2418,46 @@ dependencies = [
[[package]]
name = "enumflags2_derive"
-version = "0.7.10"
+version = "0.7.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8"
+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
-name = "env_logger"
-version = "0.8.4"
+name = "equator"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3"
+checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc"
dependencies = [
- "atty",
- "humantime",
- "log",
- "regex",
- "termcolor",
+ "equator-macro",
+]
+
+[[package]]
+name = "equator-macro"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.104",
]
[[package]]
name = "equivalent"
-version = "1.0.1"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
name = "erased-serde"
-version = "0.4.5"
+version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "24e2389d65ab4fab27dc2a5de7b191e1f6617d1f1c8855c0dc569c94a4cbb18d"
+checksum = "e004d887f51fcb9fef17317a2f3525c887d8aa3f4f50fed920816a688284a5b7"
dependencies = [
"serde",
"typeid",
@@ -2601,14 +2470,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
name = "error-code"
-version = "3.3.1"
+version = "3.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5d9305ccc6942a704f4335694ecd3de2ea531b114ac2d51f5f843750787a92f"
+checksum = "dea2df4cf52843e0452895c455a1a2cfbb842a1e7329671acf418fdc53ed4c59"
[[package]]
name = "etagere"
@@ -2631,9 +2500,9 @@ dependencies = [
[[package]]
name = "event-listener"
-version = "5.3.1"
+version = "5.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba"
+checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae"
dependencies = [
"concurrent-queue",
"parking",
@@ -2642,9 +2511,9 @@ dependencies = [
[[package]]
name = "event-listener-strategy"
-version = "0.5.2"
+version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1"
+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
dependencies = [
"event-listener",
"pin-project-lite",
@@ -2652,15 +2521,14 @@ dependencies = [
[[package]]
name = "exr"
-version = "1.72.0"
+version = "1.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "887d93f60543e9a9362ef8a21beedd0a833c5d9610e18c67abe15a5963dcb1a4"
+checksum = "f83197f59927b46c04a183a619b7c29df34e63e63c7869320862268c0ef687e0"
dependencies = [
"bit_field",
- "flume 0.11.0",
"half",
"lebe",
- "miniz_oxide 0.7.4",
+ "miniz_oxide",
"rayon-core",
"smallvec",
"zune-inflate",
@@ -2668,15 +2536,15 @@ dependencies = [
[[package]]
name = "fastrand"
-version = "2.1.1"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
+checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
[[package]]
name = "fdeflate"
-version = "0.3.4"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
dependencies = [
"simd-adler32",
]
@@ -2694,16 +2562,16 @@ name = "ffmpeg-next"
version = "7.1.0"
source = "git+https://github.com/CapSoftware/rust-ffmpeg?rev=49db1fede112#49db1fede1123029670728bd6e3fcbb07b0f5716"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"ffmpeg-sys-next",
"libc",
]
[[package]]
name = "ffmpeg-sys-next"
-version = "7.1.0"
+version = "7.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2bc3234d0a4b2f7d083699d0860c6c9dd83713908771b60f94a96f8704adfe45"
+checksum = "f9e9c75ebd4463de9d8998fb134ba26347fe5faee62fabf0a4b4d41bd500b4ad"
dependencies = [
"bindgen 0.70.1",
"cc",
@@ -2729,7 +2597,7 @@ version = "0.2.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"libc",
"libredox",
"windows-sys 0.59.0",
@@ -2748,33 +2616,26 @@ dependencies = [
]
[[package]]
-name = "flate2"
-version = "1.0.32"
+name = "fixedbitset"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c0596c1eac1f9e04ed902702e9878208b336edc9d6fddc8a48387349bab3666"
-dependencies = [
- "crc32fast",
- "miniz_oxide 0.8.0",
-]
+checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
[[package]]
-name = "flume"
-version = "0.10.14"
+name = "flate2"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1657b4441c3403d9f7b3409e47575237dac27b1b5726df654a6ecbf92f0f7577"
+checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d"
dependencies = [
- "futures-core",
- "futures-sink",
- "nanorand",
- "pin-project",
- "spin",
+ "crc32fast",
+ "miniz_oxide",
]
[[package]]
name = "flume"
-version = "0.11.0"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181"
+checksum = "da0e4dd2a88388a1f4ccc7c9ce104604dab68d9f408dc34cd45823d5a9069095"
dependencies = [
"futures-core",
"futures-sink",
@@ -2853,7 +2714,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -2879,9 +2740,9 @@ dependencies = [
[[package]]
name = "four-char-code"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c661315fd366b2a1f970df7b7cb1a28d2678d49ef4872f7dcc19b4a83150f20b"
+checksum = "42da99970737c0150e3c5cd1cdc510735a2511739f5c3aa3c6bfc9f31441488d"
[[package]]
name = "fs_extra"
@@ -2960,9 +2821,9 @@ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
[[package]]
name = "futures-lite"
-version = "2.3.0"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5"
+checksum = "f5edaec856126859abb19ed65f39e90fea3a9574b9707f13539acf4abf7eb532"
dependencies = [
"fastrand",
"futures-core",
@@ -2979,7 +2840,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -3032,9 +2893,9 @@ dependencies = [
[[package]]
name = "gdk"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f5ba081bdef3b75ebcdbfc953699ed2d7417d6bd853347a42a37d76406a33646"
+checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691"
dependencies = [
"cairo-rs",
"gdk-pixbuf",
@@ -3073,9 +2934,9 @@ dependencies = [
[[package]]
name = "gdk-sys"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "31ff856cb3386dae1703a920f803abafcc580e9b5f711ca62ed1620c25b51ff2"
+checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7"
dependencies = [
"cairo-sys-rs",
"gdk-pixbuf-sys",
@@ -3090,9 +2951,9 @@ dependencies = [
[[package]]
name = "gdkwayland-sys"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a90fbf5c033c65d93792192a49a8efb5bb1e640c419682a58bb96f5ae77f3d4a"
+checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69"
dependencies = [
"gdk-sys",
"glib-sys",
@@ -3104,9 +2965,9 @@ dependencies = [
[[package]]
name = "gdkx11"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db2ea8a4909d530f79921290389cbd7c34cb9d623bfe970eaae65ca5f9cd9cce"
+checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe"
dependencies = [
"gdk",
"gdkx11-sys",
@@ -3118,9 +2979,9 @@ dependencies = [
[[package]]
name = "gdkx11-sys"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fee8f00f4ee46cad2939b8990f5c70c94ff882c3028f3cc5abf950fa4ab53043"
+checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d"
dependencies = [
"gdk-sys",
"glib-sys",
@@ -3151,11 +3012,11 @@ dependencies = [
[[package]]
name = "gethostname"
-version = "0.5.0"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc3655aa6818d65bc620d6911f05aa7b6aeb596291e1e9f79e52df85583d1e30"
+checksum = "fc257fdb4038301ce4b9cd1b3b51704509692bb3ff716a410cbd07925d9dae55"
dependencies = [
- "rustix 0.38.39",
+ "rustix 1.0.8",
"windows-targets 0.52.6",
]
@@ -3165,21 +3026,21 @@ version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"libc",
"wasi 0.9.0+wasi-snapshot-preview1",
]
[[package]]
name = "getrandom"
-version = "0.2.15"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
+checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"js-sys",
"libc",
- "wasi 0.11.0+wasi-snapshot-preview1",
+ "wasi 0.11.1+wasi-snapshot-preview1",
"wasm-bindgen",
]
@@ -3189,17 +3050,19 @@ version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
+ "js-sys",
"libc",
"r-efi",
"wasi 0.14.2+wasi-0.2.4",
+ "wasm-bindgen",
]
[[package]]
name = "gif"
-version = "0.13.1"
+version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fb2d69b19215e18bb912fa30f7ce15846e301408695e44e0ef719f1da9e19f2"
+checksum = "4ae047235e33e2829703574b54fdec96bfbad892062d97fed2f76022287de61b"
dependencies = [
"color_quant",
"weezl",
@@ -3207,9 +3070,9 @@ dependencies = [
[[package]]
name = "gimli"
-version = "0.29.0"
+version = "0.31.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd"
+checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
[[package]]
name = "gio"
@@ -3266,7 +3129,7 @@ version = "0.18.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"futures-channel",
"futures-core",
"futures-executor",
@@ -3294,7 +3157,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -3309,25 +3172,26 @@ dependencies = [
[[package]]
name = "glob"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
+checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
[[package]]
name = "global-hotkey"
-version = "0.6.3"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b00d88f1be7bf4cd2e61623ce08e84be2dfa4eab458e5d632d3dab95f16c1f64"
+checksum = "b9247516746aa8e53411a0db9b62b0e24efbcf6a76e0ba73e5a91b512ddabed7"
dependencies = [
"crossbeam-channel",
"keyboard-types",
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
+ "objc2 0.6.1",
+ "objc2-app-kit",
"once_cell",
"serde",
- "thiserror 1.0.69",
+ "thiserror 2.0.12",
"windows-sys 0.59.0",
- "x11-dl",
+ "x11rb",
+ "xkeysym",
]
[[package]]
@@ -3344,9 +3208,9 @@ dependencies = [
[[package]]
name = "glutin_wgl_sys"
-version = "0.6.0"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a4e1951bbd9434a81aa496fe59ccc2235af3820d27b85f9314e279609211e2c"
+checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e"
dependencies = [
"gl_generator",
]
@@ -3381,7 +3245,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"gpu-alloc-types",
]
@@ -3391,7 +3255,7 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
]
[[package]]
@@ -3408,13 +3272,13 @@ dependencies = [
[[package]]
name = "gpu-descriptor"
-version = "0.3.0"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c08c1f623a8d0b722b8b99f821eb0ba672a1618f0d3b16ddbee1cedd2dd8557"
+checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"gpu-descriptor-types",
- "hashbrown 0.14.5",
+ "hashbrown 0.15.4",
]
[[package]]
@@ -3423,14 +3287,14 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
]
[[package]]
name = "gtk"
-version = "0.18.1"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93c4f5e0e20b60e10631a5f06da7fe3dda744b05ad0ea71fee2f47adf865890c"
+checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a"
dependencies = [
"atk",
"cairo-rs",
@@ -3449,9 +3313,9 @@ dependencies = [
[[package]]
name = "gtk-sys"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "771437bf1de2c1c0b496c11505bdf748e26066bbe942dfc8f614c9460f6d7722"
+checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414"
dependencies = [
"atk-sys",
"cairo-sys-rs",
@@ -3467,15 +3331,15 @@ dependencies = [
[[package]]
name = "gtk3-macros"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c6063efb63db582968fb7df72e1ae68aa6360dcfb0a75143f34fc7d616bad75e"
+checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -3486,9 +3350,9 @@ checksum = "17e2ac29387b1aa07a1e448f7bb4f35b500787971e965b02842b900afa5c8f6f"
[[package]]
name = "h2"
-version = "0.4.6"
+version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "524e8ac6999421f49a846c2d4411f337e53497d8ec55d67753beffa43c5d9205"
+checksum = "17da50a276f1e01e0ba6c029e47b7100754904ee8a278f886546e98575380785"
dependencies = [
"atomic-waker",
"bytes",
@@ -3509,7 +3373,7 @@ version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"crunchy",
"num-traits",
]
@@ -3525,10 +3389,6 @@ name = "hashbrown"
version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
-dependencies = [
- "ahash",
- "allocator-api2",
-]
[[package]]
name = "hashbrown"
@@ -3553,24 +3413,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "hermit-abi"
-version = "0.1.19"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
-dependencies = [
- "libc",
-]
-
-[[package]]
-name = "hermit-abi"
-version = "0.3.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
-
-[[package]]
-name = "hermit-abi"
-version = "0.4.0"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"
+checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
[[package]]
name = "hex"
@@ -3595,13 +3440,13 @@ dependencies = [
[[package]]
name = "hostname"
-version = "0.4.0"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9c7c7c8ac16c798734b8a24560c1362120597c40d5e1459f09498f8f6c8f2ba"
+checksum = "a56f203cd1c76362b69e3863fd987520ac36cf70a8c92627449b2f64a8cf7d65"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"libc",
- "windows 0.52.0",
+ "windows-link",
]
[[package]]
@@ -3612,27 +3457,25 @@ checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f"
[[package]]
name = "html5ever"
-version = "0.26.0"
+version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7"
+checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c"
dependencies = [
"log",
"mac",
"markup5ever",
- "proc-macro2",
- "quote",
- "syn 1.0.109",
+ "match_token",
]
[[package]]
name = "http"
-version = "1.1.0"
+version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258"
+checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
dependencies = [
"bytes",
"fnv",
- "itoa 1.0.11",
+ "itoa",
]
[[package]]
@@ -3647,12 +3490,12 @@ dependencies = [
[[package]]
name = "http-body-util"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f"
+checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
dependencies = [
"bytes",
- "futures-util",
+ "futures-core",
"http",
"http-body",
"pin-project-lite",
@@ -3666,9 +3509,9 @@ checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573"
[[package]]
name = "httparse"
-version = "1.9.4"
+version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9"
+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "httpdate"
@@ -3676,17 +3519,11 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
-[[package]]
-name = "humantime"
-version = "2.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
-
[[package]]
name = "hyper"
-version = "1.4.1"
+version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05"
+checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
dependencies = [
"bytes",
"futures-channel",
@@ -3696,7 +3533,7 @@ dependencies = [
"http-body",
"httparse",
"httpdate",
- "itoa 1.0.11",
+ "itoa",
"pin-project-lite",
"smallvec",
"tokio",
@@ -3705,11 +3542,10 @@ dependencies = [
[[package]]
name = "hyper-rustls"
-version = "0.27.3"
+version = "0.27.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333"
+checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"
dependencies = [
- "futures-util",
"http",
"hyper",
"hyper-util",
@@ -3739,36 +3575,43 @@ dependencies = [
[[package]]
name = "hyper-util"
-version = "0.1.7"
+version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cde7055719c54e36e95e8719f95883f22072a48ede39db7fc17a4e1d5281e9b9"
+checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e"
dependencies = [
+ "base64 0.22.1",
"bytes",
"futures-channel",
+ "futures-core",
"futures-util",
"http",
"http-body",
"hyper",
+ "ipnet",
+ "libc",
+ "percent-encoding",
"pin-project-lite",
- "socket2",
+ "socket2 0.6.0",
+ "system-configuration",
"tokio",
- "tower 0.4.13",
"tower-service",
"tracing",
+ "windows-registry",
]
[[package]]
name = "iana-time-zone"
-version = "0.1.60"
+version = "0.1.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
+checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8"
dependencies = [
"android_system_properties",
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
+ "log",
"wasm-bindgen",
- "windows-core 0.52.0",
+ "windows-core 0.61.2",
]
[[package]]
@@ -3791,58 +3634,123 @@ dependencies = [
]
[[package]]
-name = "icrate"
-version = "0.1.2"
+name = "icu_collections"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fb69199826926eb864697bddd27f73d9fddcffc004f5733131e15b465e30642"
+checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47"
dependencies = [
- "block2 0.4.0",
- "objc2 0.5.2",
+ "displaydoc",
+ "potential_utf",
+ "yoke",
+ "zerofrom",
+ "zerovec",
]
[[package]]
-name = "ident_case"
-version = "1.0.1"
+name = "icu_locale_core"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a"
+dependencies = [
+ "displaydoc",
+ "litemap",
+ "tinystr",
+ "writeable",
+ "zerovec",
+]
[[package]]
-name = "idna"
-version = "0.3.0"
+name = "icu_normalizer"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6"
+checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979"
dependencies = [
- "unicode-bidi",
- "unicode-normalization",
+ "displaydoc",
+ "icu_collections",
+ "icu_normalizer_data",
+ "icu_properties",
+ "icu_provider",
+ "smallvec",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer_data"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3"
+
+[[package]]
+name = "icu_properties"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b"
+dependencies = [
+ "displaydoc",
+ "icu_collections",
+ "icu_locale_core",
+ "icu_properties_data",
+ "icu_provider",
+ "potential_utf",
+ "zerotrie",
+ "zerovec",
]
+[[package]]
+name = "icu_properties_data"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632"
+
+[[package]]
+name = "icu_provider"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af"
+dependencies = [
+ "displaydoc",
+ "icu_locale_core",
+ "stable_deref_trait",
+ "tinystr",
+ "writeable",
+ "yoke",
+ "zerofrom",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
[[package]]
name = "idna"
-version = "0.5.0"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
+checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
dependencies = [
- "unicode-bidi",
- "unicode-normalization",
+ "idna_adapter",
+ "smallvec",
+ "utf8_iter",
]
[[package]]
-name = "image"
-version = "0.24.9"
+name = "idna_adapter"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d"
+checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
dependencies = [
- "bytemuck",
- "byteorder",
- "color_quant",
- "num-traits",
+ "icu_normalizer",
+ "icu_properties",
]
[[package]]
name = "image"
-version = "0.25.5"
+version = "0.25.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd6f44aed642f18953a158afeb30206f4d50da59fbc66ecb53c66488de73563b"
+checksum = "db35664ce6b9810857a38a906215e75a9c879f0696556a39f59c62829710251a"
dependencies = [
"bytemuck",
"byteorder-lite",
@@ -3863,9 +3771,9 @@ dependencies = [
[[package]]
name = "image-webp"
-version = "0.2.0"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e031e8e3d94711a9ccb5d6ea357439ef3dcbed361798bd4071dc4d9793fbe22f"
+checksum = "f6970fe7a5300b4b42e62c52efa0187540a5bef546c60edaf554ef595d2e6f0b"
dependencies = [
"byteorder-lite",
"quick-error",
@@ -3873,9 +3781,9 @@ dependencies = [
[[package]]
name = "imgref"
-version = "1.10.1"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44feda355f4159a7c757171a77de25daf6411e217b4cabd03bd6650690468126"
+checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408"
[[package]]
name = "indexmap"
@@ -3899,15 +3807,6 @@ dependencies = [
"serde",
]
-[[package]]
-name = "infer"
-version = "0.16.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc150e5ce2330295b8616ce0e3f53250e53af31759a9dbedad1621ba29151847"
-dependencies = [
- "cfb",
-]
-
[[package]]
name = "infer"
version = "0.19.0"
@@ -3923,7 +3822,7 @@ version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fddf93031af70e75410a2511ec04d49e758ed2f26dad3404a934e0fb45cc12a"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"crossterm 0.25.0",
"dyn-clone",
"fuzzy-matcher",
@@ -3931,7 +3830,7 @@ dependencies = [
"newline-converter",
"once_cell",
"unicode-segmentation",
- "unicode-width",
+ "unicode-width 0.1.14",
]
[[package]]
@@ -3942,47 +3841,56 @@ checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "inventory"
-version = "0.3.19"
+version = "0.3.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "54b12ebb6799019b044deaf431eadfe23245b259bba5a2c0796acec3943a3cdb"
+checksum = "ab08d7cd2c5897f2c949e5383ea7c7db03fb19130ffcfbf7eda795137ae3cb83"
dependencies = [
"rustversion",
]
[[package]]
name = "io-surface"
-version = "0.16.0"
+version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8283575d5f0b2e7447ec0840363879d71c0fa325d4c699d5b45208ea4a51f45e"
+checksum = "554b8c5d64ec09a3a520fe58e4d48a73e00ff32899cdcbe32a4877afd4968b8e"
dependencies = [
"cgl",
- "core-foundation 0.10.0",
- "core-foundation-sys 0.8.7",
+ "core-foundation 0.10.1",
+ "core-foundation-sys",
"leaky-cow",
- "libc",
]
[[package]]
name = "io-uring"
-version = "0.7.8"
+version = "0.7.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b86e202f00093dcba4275d4636b93ef9dd75d025ae560d2521b45ea28ab49013"
+checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4"
dependencies = [
- "bitflags 2.9.0",
- "cfg-if 1.0.0",
+ "bitflags 2.9.1",
+ "cfg-if",
"libc",
]
[[package]]
name = "ipnet"
-version = "2.9.0"
+version = "2.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
+
+[[package]]
+name = "iri-string"
+version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"
+checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2"
+dependencies = [
+ "memchr",
+ "serde",
+]
[[package]]
name = "is-docker"
@@ -4019,16 +3927,19 @@ dependencies = [
]
[[package]]
-name = "itoa"
-version = "0.4.8"
+name = "itertools"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
+dependencies = [
+ "either",
+]
[[package]]
name = "itoa"
-version = "1.0.11"
+version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
+checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
[[package]]
name = "javascriptcore-rs"
@@ -4060,7 +3971,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
dependencies = [
"cesu8",
- "cfg-if 1.0.0",
+ "cfg-if",
"combine",
"jni-sys",
"log",
@@ -4077,18 +3988,19 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
[[package]]
name = "jobserver"
-version = "0.1.32"
+version = "0.1.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0"
+checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a"
dependencies = [
+ "getrandom 0.3.3",
"libc",
]
[[package]]
name = "jpeg-decoder"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f5d4a7da358eff58addd2877a45865158f0d78c911d43a5784ceb7bbf52833b0"
+checksum = "00810f1d8b74be64b13dbf3db89ac67740615d6c891f0e7b6179326533011a07"
[[package]]
name = "js-sys"
@@ -4128,7 +4040,7 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"serde",
"unicode-segmentation",
]
@@ -4149,7 +4061,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
dependencies = [
"libc",
- "libloading 0.8.5",
+ "libloading 0.8.8",
"pkg-config",
]
@@ -4161,14 +4073,13 @@ checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
[[package]]
name = "kuchikiki"
-version = "0.8.2"
+version = "0.8.8-speedreader"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f29e4755b7b995046f510a7520c42b2fed58b77bd94d5a87a8eb43d2fd126da8"
+checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2"
dependencies = [
"cssparser",
"html5ever",
- "indexmap 1.9.3",
- "matches",
+ "indexmap 2.10.0",
"selectors",
]
@@ -4257,13 +4168,12 @@ dependencies = [
[[package]]
name = "libfuzzer-sys"
-version = "0.4.7"
+version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a96cfd5557eb82f2b83fed4955246c988d331975a002961b07c81584d107e7f7"
+checksum = "5037190e1f70cbeef565bd267599242926f724d3b8a9f510fd7e0b540cfa4404"
dependencies = [
"arbitrary",
"cc",
- "once_cell",
]
[[package]]
@@ -4272,18 +4182,18 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"winapi",
]
[[package]]
name = "libloading"
-version = "0.8.5"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
+checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
dependencies = [
- "cfg-if 1.0.0",
- "windows-targets 0.52.6",
+ "cfg-if",
+ "windows-targets 0.53.3",
]
[[package]]
@@ -4294,11 +4204,11 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de"
[[package]]
name = "libredox"
-version = "0.1.3"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
+checksum = "391290121bad3d37fbddad76d8f5d1c1c314cfc646d143d7e07a3086ddff0ce3"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"libc",
"redox_syscall",
]
@@ -4309,14 +4219,14 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65f3a4b81b2a2d8c7f300643676202debd1b7c929dbf5c9bb89402ea11d19810"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"cc",
"convert_case 0.6.0",
"cookie-factory",
"libc",
"libspa-sys",
"nix 0.27.1",
- "nom 7.1.3",
+ "nom",
"system-deps",
]
@@ -4326,16 +4236,16 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf0d9716420364790e85cbb9d3ac2c950bde16a7dd36f3209b7dfdfc4a24d01f"
dependencies = [
- "bindgen 0.69.4",
+ "bindgen 0.69.5",
"cc",
"system-deps",
]
[[package]]
name = "linux-raw-sys"
-version = "0.4.14"
+version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
[[package]]
name = "linux-raw-sys"
@@ -4343,17 +4253,23 @@ version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
+[[package]]
+name = "litemap"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956"
+
[[package]]
name = "litrs"
-version = "0.4.1"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4ce301924b7887e9d637144fdade93f9dfff9b60981d4ac161db09720d39aa5"
+checksum = "f5e54036fe321fd421e10d732f155734c4e4afd610dd556d9a82833ab3ee0bed"
[[package]]
name = "lock_api"
-version = "0.4.12"
+version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
+checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765"
dependencies = [
"autocfg",
"scopeguard",
@@ -4361,9 +4277,9 @@ dependencies = [
[[package]]
name = "log"
-version = "0.4.22"
+version = "0.4.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
+checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
[[package]]
name = "loop9"
@@ -4380,6 +4296,12 @@ version = "0.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38"
+[[package]]
+name = "lru-slab"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
+
[[package]]
name = "mac"
version = "0.1.1"
@@ -4388,21 +4310,21 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
[[package]]
name = "mac-notification-sys"
-version = "0.6.4"
+version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b95dfb34071d1592b45622bf93e315e3a72d414b6782aca9a015c12bec367ef"
+checksum = "119c8490084af61b44c9eda9d626475847a186737c0378c85e32d77c33a01cd4"
dependencies = [
"cc",
- "objc2 0.6.0",
- "objc2-foundation 0.3.0",
+ "objc2 0.6.1",
+ "objc2-foundation 0.3.1",
"time",
]
[[package]]
name = "mach2"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709"
+checksum = "d640282b302c0bb0a2a8e0233ead9035e3bed871f0b7e81fe4a1ec829765db44"
dependencies = [
"libc",
]
@@ -4414,7 +4336,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edf7710fbff50c24124331760978fb9086d6de6288dcdb38b25a97f8b1bdebbb"
dependencies = [
"core-foundation 0.9.4",
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
]
[[package]]
@@ -4428,18 +4350,29 @@ dependencies = [
[[package]]
name = "markup5ever"
-version = "0.11.0"
+version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016"
+checksum = "c7a7213d12e1864c0f002f52c2923d4556935a43dec5e71355c2760e0f6e7a18"
dependencies = [
"log",
- "phf 0.10.1",
- "phf_codegen 0.10.0",
+ "phf 0.11.3",
+ "phf_codegen 0.11.3",
"string_cache",
"string_cache_codegen",
"tendril",
]
+[[package]]
+name = "match_token"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.104",
+]
+
[[package]]
name = "matchers"
version = "0.1.0"
@@ -4467,7 +4400,7 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"rayon",
]
@@ -4479,15 +4412,15 @@ checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771"
[[package]]
name = "memchr"
-version = "2.7.4"
+version = "2.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
+checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
[[package]]
name = "memmap2"
-version = "0.9.5"
+version = "0.9.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f"
+checksum = "483758ad303d734cec05e5c12b41d7e93e6a6390c5e9dae6bdeb7c1259012d28"
dependencies = [
"libc",
]
@@ -4501,28 +4434,13 @@ dependencies = [
"autocfg",
]
-[[package]]
-name = "metal"
-version = "0.18.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e198a0ee42bdbe9ef2c09d0b9426f3b2b47d90d93a4a9b0395c4cea605e92dc0"
-dependencies = [
- "bitflags 1.3.2",
- "block",
- "cocoa 0.20.2",
- "core-graphics 0.19.2",
- "foreign-types 0.3.2",
- "log",
- "objc",
-]
-
[[package]]
name = "metal"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c43f73953f8cbe511f021b58f18c3ce1c3d1ae13fe953293e13345bf83217f25"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block",
"core-graphics-types 0.1.3",
"foreign-types 0.5.0",
@@ -4533,13 +4451,13 @@ dependencies = [
[[package]]
name = "metal"
-version = "0.31.0"
+version = "0.32.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f569fb946490b5743ad69813cb19629130ce9374034abe31614a36402d18f99e"
+checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block",
- "core-graphics-types 0.1.3",
+ "core-graphics-types 0.2.0",
"foreign-types 0.5.0",
"log",
"objc",
@@ -4570,27 +4488,18 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "minisign-verify"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a05b5d0594e0cb1ad8cee3373018d2b84e25905dc75b2468114cc9a8e86cfc20"
-
-[[package]]
-name = "miniz_oxide"
-version = "0.7.4"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08"
-dependencies = [
- "adler",
- "simd-adler32",
-]
+checksum = "e856fdd13623a2f5f2f54676a4ee49502a96a80ef4a62bcedd23d52427c44d43"
[[package]]
name = "miniz_oxide"
-version = "0.8.0"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
dependencies = [
"adler2",
+ "simd-adler32",
]
[[package]]
@@ -4601,45 +4510,19 @@ checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c"
dependencies = [
"libc",
"log",
- "wasi 0.11.0+wasi-snapshot-preview1",
+ "wasi 0.11.1+wasi-snapshot-preview1",
"windows-sys 0.48.0",
]
[[package]]
name = "mio"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
-dependencies = [
- "hermit-abi 0.3.9",
- "libc",
- "wasi 0.11.0+wasi-snapshot-preview1",
- "windows-sys 0.52.0",
-]
-
-[[package]]
-name = "mozjpeg"
-version = "0.10.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c1e1f1b1de2ee6ef673e8c76666b93794120fa6ec1cb4f535c129ea6f32731d"
-dependencies = [
- "arrayvec",
- "bytemuck",
- "libc",
- "mozjpeg-sys",
- "rgb",
-]
-
-[[package]]
-name = "mozjpeg-sys"
-version = "2.2.1"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27e31c0171e0b1158c0dfb7386dbdf999f4a9afaa83fd68de39c7929f4d5c16f"
+checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
dependencies = [
- "cc",
- "dunce",
"libc",
- "nasm-rs",
+ "wasi 0.11.1+wasi-snapshot-preview1",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -4658,34 +4541,34 @@ dependencies = [
[[package]]
name = "muda"
-version = "0.16.0"
+version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89fed9ce3e5c01700e3a129d3d74619bbf468645b58274b420885107e496ecff"
+checksum = "01c1738382f66ed56b3b9c8119e794a2e23148ac8ea214eda86622d4cb9d415a"
dependencies = [
"crossbeam-channel",
"dpi",
"gtk",
"keyboard-types",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
+ "objc2 0.6.1",
+ "objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.0",
+ "objc2-foundation 0.3.1",
"once_cell",
"png",
"serde",
"thiserror 2.0.12",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
name = "naga"
-version = "25.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b977c445f26e49757f9aca3631c3b8b836942cb278d69a92e7b80d3b24da632"
+version = "25.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
"arrayvec",
"bit-set",
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
+ "cfg-if",
"cfg_aliases",
"codespan-reporting",
"half",
@@ -4708,23 +4591,14 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3"
dependencies = [
- "getrandom 0.2.15",
-]
-
-[[package]]
-name = "nasm-rs"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12fcfa1bd49e0342ec1d07ed2be83b59963e7acbeb9310e1bb2c07b69dadd959"
-dependencies = [
- "jobserver",
+ "getrandom 0.2.16",
]
[[package]]
name = "native-tls"
-version = "0.2.12"
+version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466"
+checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e"
dependencies = [
"libc",
"log",
@@ -4743,7 +4617,7 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2076a31b7010b17a38c01907c45b945e8f11495ee4dd588309718901b1f7a5b7"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"jni-sys",
"log",
"ndk-sys 0.5.0+25.2.9519653",
@@ -4757,7 +4631,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"jni-sys",
"log",
"ndk-sys 0.6.0+11769913",
@@ -4811,8 +4685,8 @@ version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
dependencies = [
- "bitflags 2.9.0",
- "cfg-if 1.0.0",
+ "bitflags 2.9.1",
+ "cfg-if",
"libc",
]
@@ -4822,91 +4696,30 @@ version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
dependencies = [
- "bitflags 2.9.0",
- "cfg-if 1.0.0",
+ "bitflags 2.9.1",
+ "cfg-if",
"cfg_aliases",
"libc",
- "memoffset",
]
[[package]]
-name = "nodrop"
-version = "0.1.14"
+name = "nix"
+version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"
-
-[[package]]
-name = "nokhwa"
-version = "0.10.3"
-source = "git+https://github.com/CapSoftware/nokhwa?rev=b9c8079e82e2#b9c8079e82e27f0d0f8870d0b40f19dad7cae64c"
-dependencies = [
- "flume 0.10.14",
- "image 0.24.9",
- "nokhwa-bindings-linux",
- "nokhwa-bindings-macos",
- "nokhwa-bindings-windows",
- "nokhwa-core",
- "paste",
- "serde",
- "thiserror 1.0.69",
-]
-
-[[package]]
-name = "nokhwa-bindings-linux"
-version = "0.1.0"
-source = "git+https://github.com/CapSoftware/nokhwa?rev=b9c8079e82e2#b9c8079e82e27f0d0f8870d0b40f19dad7cae64c"
-dependencies = [
- "nokhwa-core",
- "v4l",
- "v4l2-sys-mit",
-]
-
-[[package]]
-name = "nokhwa-bindings-macos"
-version = "0.2.0"
-source = "git+https://github.com/CapSoftware/nokhwa?rev=b9c8079e82e2#b9c8079e82e27f0d0f8870d0b40f19dad7cae64c"
-dependencies = [
- "block",
- "cocoa-foundation 0.1.2",
- "core-media-sys",
- "core-video-sys",
- "flume 0.10.14",
- "nokhwa-core",
- "objc",
- "once_cell",
-]
-
-[[package]]
-name = "nokhwa-bindings-windows"
-version = "0.4.0"
-source = "git+https://github.com/CapSoftware/nokhwa?rev=b9c8079e82e2#b9c8079e82e27f0d0f8870d0b40f19dad7cae64c"
-dependencies = [
- "nokhwa-core",
- "once_cell",
- "windows 0.43.0",
-]
-
-[[package]]
-name = "nokhwa-core"
-version = "0.1.0"
-source = "git+https://github.com/CapSoftware/nokhwa?rev=b9c8079e82e2#b9c8079e82e27f0d0f8870d0b40f19dad7cae64c"
+checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6"
dependencies = [
- "bytes",
- "image 0.24.9",
- "mozjpeg",
- "serde",
- "thiserror 1.0.69",
+ "bitflags 2.9.1",
+ "cfg-if",
+ "cfg_aliases",
+ "libc",
+ "memoffset",
]
[[package]]
-name = "nom"
-version = "5.1.3"
+name = "nodrop"
+version = "0.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08959a387a676302eebf4ddbcbc611da04285579f76f88ee0506c63b1a61dd4b"
-dependencies = [
- "memchr",
- "version_check",
-]
+checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"
[[package]]
name = "nom"
@@ -4926,15 +4739,16 @@ checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"
[[package]]
name = "notify-rust"
-version = "4.11.3"
+version = "4.11.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5134a72dc570b178bff81b01e81ab14a6fcc015391ed4b3b14853090658cd3a3"
+checksum = "6442248665a5aa2514e794af3b39661a8e73033b1cc5e59899e1276117ee4400"
dependencies = [
+ "futures-lite",
"log",
"mac-notification-sys",
"serde",
"tauri-winrt-notification",
- "zbus 4.4.0",
+ "zbus",
]
[[package]]
@@ -4980,7 +4794,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -5016,33 +4830,34 @@ dependencies = [
[[package]]
name = "num_cpus"
-version = "1.16.0"
+version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
+checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b"
dependencies = [
- "hermit-abi 0.3.9",
+ "hermit-abi",
"libc",
]
[[package]]
name = "num_enum"
-version = "0.7.3"
+version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179"
+checksum = "a973b4e44ce6cad84ce69d797acf9a044532e4184c4f267913d1b546a0727b7a"
dependencies = [
"num_enum_derive",
+ "rustversion",
]
[[package]]
name = "num_enum_derive"
-version = "0.7.3"
+version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56"
+checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d"
dependencies = [
- "proc-macro-crate 3.2.0",
+ "proc-macro-crate 3.3.0",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -5084,9 +4899,9 @@ dependencies = [
[[package]]
name = "objc2"
-version = "0.6.0"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3531f65190d9cff863b77a99857e74c314dd16bf56c538c4b57c7cbc3f3a6e59"
+checksum = "88c6597e14493ab2e44ce58f2fdecf095a51f12ca57bec060a11c57332520551"
dependencies = [
"objc2-encode",
"objc2-exception-helper",
@@ -5094,115 +4909,77 @@ dependencies = [
[[package]]
name = "objc2-app-kit"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
-dependencies = [
- "bitflags 2.9.0",
- "block2 0.5.1",
- "libc",
- "objc2 0.5.2",
- "objc2-core-data 0.2.2",
- "objc2-core-image 0.2.2",
- "objc2-foundation 0.2.2",
- "objc2-quartz-core 0.2.2",
-]
-
-[[package]]
-name = "objc2-app-kit"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5906f93257178e2f7ae069efb89fbd6ee94f0592740b5f8a1512ca498814d0fb"
+checksum = "e6f29f568bec459b0ddff777cec4fe3fd8666d82d5a40ebd0ff7e66134f89bcc"
dependencies = [
- "bitflags 2.9.0",
- "block2 0.6.0",
+ "bitflags 2.9.1",
+ "block2 0.6.1",
"libc",
- "objc2 0.6.0",
+ "objc2 0.6.1",
"objc2-cloud-kit",
- "objc2-core-data 0.3.0",
+ "objc2-core-data",
"objc2-core-foundation",
"objc2-core-graphics",
- "objc2-core-image 0.3.0",
- "objc2-foundation 0.3.0",
- "objc2-quartz-core 0.3.0",
+ "objc2-core-image",
+ "objc2-foundation 0.3.1",
+ "objc2-quartz-core 0.3.1",
]
[[package]]
name = "objc2-cloud-kit"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c1948a9be5f469deadbd6bcb86ad7ff9e47b4f632380139722f7d9840c0d42c"
-dependencies = [
- "bitflags 2.9.0",
- "objc2 0.6.0",
- "objc2-foundation 0.3.0",
-]
-
-[[package]]
-name = "objc2-core-data"
-version = "0.2.2"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
+checksum = "17614fdcd9b411e6ff1117dfb1d0150f908ba83a7df81b1f118005fe0a8ea15d"
dependencies = [
- "bitflags 2.9.0",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "bitflags 2.9.1",
+ "objc2 0.6.1",
+ "objc2-foundation 0.3.1",
]
[[package]]
name = "objc2-core-data"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f860f8e841f6d32f754836f51e6bc7777cd7e7053cf18528233f6811d3eceb4"
+checksum = "291fbbf7d29287518e8686417cf7239c74700fd4b607623140a7d4a3c834329d"
dependencies = [
- "bitflags 2.9.0",
- "objc2 0.6.0",
- "objc2-foundation 0.3.0",
+ "bitflags 2.9.1",
+ "objc2 0.6.1",
+ "objc2-foundation 0.3.1",
]
[[package]]
name = "objc2-core-foundation"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "daeaf60f25471d26948a1c2f840e3f7d86f4109e3af4e8e4b5cd70c39690d925"
+checksum = "1c10c2894a6fed806ade6027bcd50662746363a9589d3ec9d9bef30a4e4bc166"
dependencies = [
- "bitflags 2.9.0",
- "objc2 0.6.0",
+ "bitflags 2.9.1",
+ "dispatch2",
+ "objc2 0.6.1",
]
[[package]]
name = "objc2-core-graphics"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8dca602628b65356b6513290a21a6405b4d4027b8b250f0b98dddbb28b7de02"
+checksum = "989c6c68c13021b5c2d6b71456ebb0f9dc78d752e86a98da7c716f4f9470f5a4"
dependencies = [
- "bitflags 2.9.0",
- "objc2 0.6.0",
+ "bitflags 2.9.1",
+ "dispatch2",
+ "objc2 0.6.1",
"objc2-core-foundation",
"objc2-io-surface",
]
[[package]]
name = "objc2-core-image"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
-dependencies = [
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
- "objc2-metal",
-]
-
-[[package]]
-name = "objc2-core-image"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ffa6bea72bf42c78b0b34e89c0bafac877d5f80bf91e159a5d96ea7f693ca56"
+checksum = "79b3dc0cc4386b6ccf21c157591b34a7f44c8e75b064f85502901ab2188c007e"
dependencies = [
- "objc2 0.6.0",
- "objc2-foundation 0.3.0",
+ "objc2 0.6.1",
+ "objc2-foundation 0.3.1",
]
[[package]]
@@ -5226,34 +5003,33 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block2 0.5.1",
- "dispatch",
"libc",
"objc2 0.5.2",
]
[[package]]
name = "objc2-foundation"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a21c6c9014b82c39515db5b396f91645182611c97d24637cf56ac01e5f8d998"
+checksum = "900831247d2fe1a09a683278e5384cfb8c80c79fe6b166f9d14bfdde0ea1b03c"
dependencies = [
- "bitflags 2.9.0",
- "block2 0.6.0",
+ "bitflags 2.9.1",
+ "block2 0.6.1",
"libc",
- "objc2 0.6.0",
+ "objc2 0.6.1",
"objc2-core-foundation",
]
[[package]]
name = "objc2-io-surface"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "161a8b87e32610086e1a7a9e9ec39f84459db7b3a0881c1f16ca5a2605581c19"
+checksum = "7282e9ac92529fa3457ce90ebb15f4ecbc383e8338060960760fa2cf75420c3c"
dependencies = [
- "bitflags 2.9.0",
- "objc2 0.6.0",
+ "bitflags 2.9.1",
+ "objc2 0.6.1",
"objc2-core-foundation",
]
@@ -5263,7 +5039,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -5271,14 +5047,14 @@ dependencies = [
[[package]]
name = "objc2-osa-kit"
-version = "0.2.2"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6788b04a18ea31e3dc3ab256b8546639e5bbae07c1a0dc4ea8615252bc6aee9a"
+checksum = "26bb88504b5a050dbba515d2414607bf5e57dd56b107bc5f0351197a3e7bdc5d"
dependencies = [
- "bitflags 2.9.0",
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "bitflags 2.9.1",
+ "objc2 0.6.1",
+ "objc2-app-kit",
+ "objc2-foundation 0.3.1",
]
[[package]]
@@ -5287,7 +5063,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -5296,39 +5072,39 @@ dependencies = [
[[package]]
name = "objc2-quartz-core"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6fb3794501bb1bee12f08dcad8c61f2a5875791ad1c6f47faa71a0f033f20071"
+checksum = "90ffb6a0cd5f182dc964334388560b12a57f7b74b3e2dec5e2722aa2dfb2ccd5"
dependencies = [
- "bitflags 2.9.0",
- "objc2 0.6.0",
- "objc2-foundation 0.3.0",
+ "bitflags 2.9.1",
+ "objc2 0.6.1",
+ "objc2-foundation 0.3.1",
]
[[package]]
name = "objc2-ui-kit"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "777a571be14a42a3990d4ebedaeb8b54cd17377ec21b92e8200ac03797b3bee1"
+checksum = "25b1312ad7bc8a0e92adae17aa10f90aae1fb618832f9b993b022b591027daed"
dependencies = [
- "bitflags 2.9.0",
- "objc2 0.6.0",
+ "bitflags 2.9.1",
+ "objc2 0.6.1",
"objc2-core-foundation",
- "objc2-foundation 0.3.0",
+ "objc2-foundation 0.3.1",
]
[[package]]
name = "objc2-web-kit"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b717127e4014b0f9f3e8bba3d3f2acec81f1bde01f656823036e823ed2c94dce"
+checksum = "91672909de8b1ce1c2252e95bbee8c1649c9ad9d14b9248b3d7b4c47903c47ad"
dependencies = [
- "bitflags 2.9.0",
- "block2 0.6.0",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
+ "bitflags 2.9.1",
+ "block2 0.6.1",
+ "objc2 0.6.1",
+ "objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.0",
+ "objc2-foundation 0.3.1",
]
[[package]]
@@ -5351,9 +5127,9 @@ dependencies = [
[[package]]
name = "object"
-version = "0.36.3"
+version = "0.36.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27b64972346851a39438c60b341ebc01bba47464ae329e55cf343eb93964efd9"
+checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
dependencies = [
"memchr",
]
@@ -5396,12 +5172,19 @@ version = "1.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad"
+
[[package]]
name = "open"
-version = "5.3.0"
+version = "5.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61a877bf6abd716642a53ef1b89fb498923a4afca5c754f9050b4d081c05c4b3"
+checksum = "e2483562e62ea94312f3576a7aca397306df7990b8d89033e18766744377ef95"
dependencies = [
+ "dunce",
"is-wsl",
"libc",
"pathdiff",
@@ -5409,12 +5192,12 @@ dependencies = [
[[package]]
name = "openssl"
-version = "0.10.66"
+version = "0.10.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1"
+checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8"
dependencies = [
- "bitflags 2.9.0",
- "cfg-if 1.0.0",
+ "bitflags 2.9.1",
+ "cfg-if",
"foreign-types 0.3.2",
"libc",
"once_cell",
@@ -5430,20 +5213,20 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "openssl-probe"
-version = "0.1.5"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
+checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
[[package]]
name = "openssl-sys"
-version = "0.9.103"
+version = "0.9.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6"
+checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571"
dependencies = [
"cc",
"libc",
@@ -5465,9 +5248,9 @@ checksum = "8c04f5d74368e4d0dfe06c45c8627c81bd7c317d52762d118fb9b3076f6420fd"
[[package]]
name = "ordered-float"
-version = "4.6.0"
+version = "5.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951"
+checksum = "e2c1f9f56e534ac6a9b8a4600bdf0f530fb393b5f393e7b4d03489c3cf0c3f01"
dependencies = [
"num-traits",
]
@@ -5494,20 +5277,21 @@ dependencies = [
[[package]]
name = "os_info"
-version = "3.8.2"
+version = "3.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae99c7fa6dd38c7cafe1ec085e804f8f555a2f8659b0dbe03f1f9963a9b51092"
+checksum = "d0e1ac5fde8d43c34139135df8ea9ee9465394b2d8d20f032d38998f64afffc3"
dependencies = [
"log",
+ "plist",
"serde",
"windows-sys 0.52.0",
]
[[package]]
name = "os_pipe"
-version = "1.2.1"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ffd2b0a5634335b135d5728d84c5e0fd726954b87111f7506a61c502280d982"
+checksum = "db335f4760b14ead6290116f2427bf33a14d4f0617d49f78a246de10c1831224"
dependencies = [
"libc",
"windows-sys 0.59.0",
@@ -5515,16 +5299,16 @@ dependencies = [
[[package]]
name = "osakit"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35366a452fce3f8947eb2f33226a133aaf0cacedef2af67ade348d58be7f85d0"
+checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"
dependencies = [
- "icrate",
- "objc2-foundation 0.2.2",
+ "objc2 0.6.1",
+ "objc2-foundation 0.3.1",
"objc2-osa-kit",
"serde",
"serde_json",
- "thiserror 1.0.69",
+ "thiserror 2.0.12",
]
[[package]]
@@ -5560,15 +5344,15 @@ dependencies = [
[[package]]
name = "parking"
-version = "2.2.0"
+version = "2.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
[[package]]
name = "parking_lot"
-version = "0.12.3"
+version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
+checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13"
dependencies = [
"lock_api",
"parking_lot_core",
@@ -5576,11 +5360,11 @@ dependencies = [
[[package]]
name = "parking_lot_core"
-version = "0.9.10"
+version = "0.9.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
+checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"libc",
"redox_syscall",
"smallvec",
@@ -5595,15 +5379,9 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
[[package]]
name = "pathdiff"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd"
-
-[[package]]
-name = "peeking_take_while"
-version = "0.1.2"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
+checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
[[package]]
name = "percent-encoding"
@@ -5611,15 +5389,23 @@ version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
+[[package]]
+name = "petgraph"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db"
+dependencies = [
+ "fixedbitset",
+ "indexmap 2.10.0",
+]
+
[[package]]
name = "phf"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12"
dependencies = [
- "phf_macros 0.8.0",
"phf_shared 0.8.0",
- "proc-macro-hack",
]
[[package]]
@@ -5628,17 +5414,19 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"
dependencies = [
+ "phf_macros 0.10.0",
"phf_shared 0.10.0",
+ "proc-macro-hack",
]
[[package]]
name = "phf"
-version = "0.11.2"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
+checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"
dependencies = [
- "phf_macros 0.11.2",
- "phf_shared 0.11.2",
+ "phf_macros 0.11.3",
+ "phf_shared 0.11.3",
]
[[package]]
@@ -5653,12 +5441,12 @@ dependencies = [
[[package]]
name = "phf_codegen"
-version = "0.10.0"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd"
+checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"
dependencies = [
- "phf_generator 0.10.0",
- "phf_shared 0.10.0",
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
]
[[package]]
@@ -5683,22 +5471,22 @@ dependencies = [
[[package]]
name = "phf_generator"
-version = "0.11.2"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
+checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"
dependencies = [
- "phf_shared 0.11.2",
+ "phf_shared 0.11.3",
"rand 0.8.5",
]
[[package]]
name = "phf_macros"
-version = "0.8.0"
+version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c"
+checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0"
dependencies = [
- "phf_generator 0.8.0",
- "phf_shared 0.8.0",
+ "phf_generator 0.10.0",
+ "phf_shared 0.10.0",
"proc-macro-hack",
"proc-macro2",
"quote",
@@ -5707,15 +5495,15 @@ dependencies = [
[[package]]
name = "phf_macros"
-version = "0.11.2"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b"
+checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"
dependencies = [
- "phf_generator 0.11.2",
- "phf_shared 0.11.2",
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -5724,7 +5512,7 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"
dependencies = [
- "siphasher",
+ "siphasher 0.3.11",
]
[[package]]
@@ -5733,36 +5521,16 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096"
dependencies = [
- "siphasher",
+ "siphasher 0.3.11",
]
[[package]]
name = "phf_shared"
-version = "0.11.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
-dependencies = [
- "siphasher",
-]
-
-[[package]]
-name = "pin-project"
-version = "1.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3"
-dependencies = [
- "pin-project-internal",
-]
-
-[[package]]
-name = "pin-project-internal"
-version = "1.1.5"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965"
+checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"
dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.90",
+ "siphasher 1.0.1",
]
[[package]]
@@ -5795,7 +5563,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08e645ba5c45109106d56610b3ee60eb13a6f2beb8b74f8dc8186cf261788dda"
dependencies = [
"anyhow",
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"libc",
"libspa",
"libspa-sys",
@@ -5811,63 +5579,80 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "849e188f90b1dda88fe2bfe1ad31fe5f158af2c98f80fb5d13726c44f3f01112"
dependencies = [
- "bindgen 0.69.4",
+ "bindgen 0.69.5",
"libspa-sys",
"system-deps",
]
[[package]]
name = "pkg-config"
-version = "0.3.30"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
+checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
[[package]]
name = "plist"
-version = "1.7.0"
+version = "1.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016"
+checksum = "3af6b589e163c5a788fab00ce0c0366f6efbb9959c2f9874b224936af7fce7e1"
dependencies = [
"base64 0.22.1",
"indexmap 2.10.0",
- "quick-xml 0.32.0",
+ "quick-xml 0.38.0",
"serde",
"time",
]
[[package]]
name = "png"
-version = "0.17.13"
+version = "0.17.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06e4b0d3d1312775e782c86c91a111aa1f910cbb65e1337f9975b5f9a554b5e1"
+checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
dependencies = [
"bitflags 1.3.2",
"crc32fast",
"fdeflate",
"flate2",
- "miniz_oxide 0.7.4",
+ "miniz_oxide",
]
[[package]]
name = "polling"
-version = "3.7.3"
+version = "3.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc2790cd301dec6cd3b7a025e4815cf825724a51c98dccfe6a3e55f05ffb6511"
+checksum = "8ee9b2fa7a4517d2c91ff5bc6c297a427a96749d15f98fcdbb22c05571a4d4b7"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"concurrent-queue",
- "hermit-abi 0.4.0",
+ "hermit-abi",
"pin-project-lite",
- "rustix 0.38.39",
- "tracing",
- "windows-sys 0.59.0",
+ "rustix 1.0.8",
+ "windows-sys 0.60.2",
]
[[package]]
name = "portable-atomic"
-version = "1.9.0"
+version = "1.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
+
+[[package]]
+name = "portable-atomic-util"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507"
+dependencies = [
+ "portable-atomic",
+]
+
+[[package]]
+name = "potential_utf"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
+checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585"
+dependencies = [
+ "zerovec",
+]
[[package]]
name = "powerfmt"
@@ -5877,9 +5662,9 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "ppv-lite86"
-version = "0.2.20"
+version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
dependencies = [
"zerocopy",
]
@@ -5908,12 +5693,12 @@ dependencies = [
[[package]]
name = "prettyplease"
-version = "0.2.25"
+version = "0.2.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033"
+checksum = "ff24dfcda44452b9816fff4cd4227e1bb73ff5a2f1bc1105aa92fb8565ce44d2"
dependencies = [
"proc-macro2",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -5932,16 +5717,16 @@ version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8"
dependencies = [
- "toml_edit 0.20.2",
+ "toml_edit 0.20.7",
]
[[package]]
name = "proc-macro-crate"
-version = "3.2.0"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b"
+checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35"
dependencies = [
- "toml_edit 0.22.23",
+ "toml_edit 0.22.27",
]
[[package]]
@@ -5976,30 +5761,30 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
[[package]]
name = "proc-macro2"
-version = "1.0.92"
+version = "1.0.95"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
+checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
dependencies = [
"unicode-ident",
]
[[package]]
name = "profiling"
-version = "1.0.15"
+version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "43d84d1d7a6ac92673717f9f6d1518374ef257669c24ebc5ac25d5033828be58"
+checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773"
dependencies = [
"profiling-procmacros",
]
[[package]]
name = "profiling-procmacros"
-version = "1.0.15"
+version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8021cf59c8ec9c432cfc2526ac6b8aa508ecaf29cd415f271b8406c1b851c3fd"
+checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b"
dependencies = [
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -6010,11 +5795,11 @@ checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac"
[[package]]
name = "publicsuffix"
-version = "2.2.3"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96a8c1bda5ae1af7f99a2962e49df150414a43d62404644d98dd5c3a93d07457"
+checksum = "6f42ea446cab60335f76979ec15e12619a2165b5ae2c12166bef27d283a9fadf"
dependencies = [
- "idna 0.3.0",
+ "idna",
"psl-types",
]
@@ -6035,84 +5820,82 @@ checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
[[package]]
name = "quick-xml"
-version = "0.31.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33"
-dependencies = [
- "memchr",
-]
-
-[[package]]
-name = "quick-xml"
-version = "0.32.0"
+version = "0.37.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d3a6e5838b60e0e8fa7a43f22ade549a37d61f8bdbe636d0d7816191de969c2"
+checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb"
dependencies = [
"memchr",
]
[[package]]
name = "quick-xml"
-version = "0.36.2"
+version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7649a7b4df05aed9ea7ec6f628c67c9953a43869b8bc50929569b2999d443fe"
+checksum = "8927b0664f5c5a98265138b7e3f90aa19a6b21353182469ace36d4ac527b7b1b"
dependencies = [
"memchr",
]
[[package]]
name = "quinn"
-version = "0.11.5"
+version = "0.11.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c7c5fdde3cdae7203427dc4f0a68fe0ed09833edc525a03456b153b79828684"
+checksum = "626214629cda6781b6dc1d316ba307189c85ba657213ce642d9c77670f8202c8"
dependencies = [
"bytes",
+ "cfg_aliases",
"pin-project-lite",
"quinn-proto",
"quinn-udp",
"rustc-hash 2.1.1",
"rustls",
- "socket2",
- "thiserror 1.0.69",
+ "socket2 0.5.10",
+ "thiserror 2.0.12",
"tokio",
"tracing",
+ "web-time",
]
[[package]]
name = "quinn-proto"
-version = "0.11.8"
+version = "0.11.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fadfaed2cd7f389d0161bb73eeb07b7b78f8691047a6f3e73caaeae55310a4a6"
+checksum = "49df843a9161c85bb8aae55f101bc0bac8bcafd637a620d9122fd7e0b2f7422e"
dependencies = [
"bytes",
- "rand 0.8.5",
+ "getrandom 0.3.3",
+ "lru-slab",
+ "rand 0.9.2",
"ring",
"rustc-hash 2.1.1",
"rustls",
+ "rustls-pki-types",
"slab",
- "thiserror 1.0.69",
+ "thiserror 2.0.12",
"tinyvec",
"tracing",
+ "web-time",
]
[[package]]
name = "quinn-udp"
-version = "0.5.5"
+version = "0.5.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fe68c2e9e1a1234e218683dbdf9f9dfcb094113c5ac2b938dfcb9bab4c4140b"
+checksum = "fcebb1209ee276352ef14ff8732e24cc2b02bbac986cd74a4c81bcb2f9881970"
dependencies = [
+ "cfg_aliases",
"libc",
"once_cell",
- "socket2",
+ "socket2 0.5.10",
"tracing",
"windows-sys 0.59.0",
]
[[package]]
name = "quote"
-version = "1.0.37"
+version = "1.0.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
+checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
dependencies = [
"proc-macro2",
]
@@ -6148,6 +5931,16 @@ dependencies = [
"rand_core 0.6.4",
]
+[[package]]
+name = "rand"
+version = "0.9.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
+dependencies = [
+ "rand_chacha 0.9.0",
+ "rand_core 0.9.3",
+]
+
[[package]]
name = "rand_chacha"
version = "0.2.2"
@@ -6168,6 +5961,16 @@ dependencies = [
"rand_core 0.6.4",
]
+[[package]]
+name = "rand_chacha"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.9.3",
+]
+
[[package]]
name = "rand_core"
version = "0.5.1"
@@ -6183,7 +5986,16 @@ version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
- "getrandom 0.2.15",
+ "getrandom 0.2.16",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38"
+dependencies = [
+ "getrandom 0.3.3",
]
[[package]]
@@ -6206,15 +6018,15 @@ dependencies = [
[[package]]
name = "range-alloc"
-version = "0.1.3"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c8a99fddc9f0ba0a85884b8d14e3592853e787d581ca1816c91349b10e4eeab"
+checksum = "c3d6831663a5098ea164f89cff59c6284e95f4e3c76ce9848d4529f5ccca9bde"
[[package]]
name = "rangemap"
-version = "1.5.1"
+version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f60fcc7d6849342eff22c4350c8b9a989ee8ceabc4b481253e8946b9fe83d684"
+checksum = "f93e7e49bb0bf967717f7bd674458b3d6b0c5f48ec7e3038166026a69fc22223"
[[package]]
name = "rav1e"
@@ -6228,9 +6040,9 @@ dependencies = [
"av1-grain",
"bitstream-io",
"built",
- "cfg-if 1.0.0",
+ "cfg-if",
"interpolate_name",
- "itertools",
+ "itertools 0.12.1",
"libc",
"libfuzzer-sys",
"log",
@@ -6253,9 +6065,9 @@ dependencies = [
[[package]]
name = "ravif"
-version = "0.11.11"
+version = "0.11.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2413fd96bd0ea5cdeeb37eaf446a22e6ed7b981d792828721e74ded1980a45c6"
+checksum = "5825c26fddd16ab9f515930d49028a630efec172e903483c94796cfe31893e6b"
dependencies = [
"avif-serialize",
"imgref",
@@ -6294,9 +6106,9 @@ dependencies = [
[[package]]
name = "reactive_graph"
-version = "0.1.5"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "059aede5acae8f5c25b1d34b6df34700006418b3c493db3698b7ebcd4a8a6287"
+checksum = "76a0ccddbc11a648bd09761801dac9e3f246ef7641130987d6120fced22515e6"
dependencies = [
"any_spawner",
"async-lock",
@@ -6335,34 +6147,54 @@ checksum = "be105c72a1e6a5a1198acee3d5b506a15676b74a02ecd78060042a447f408d94"
[[package]]
name = "redox_syscall"
-version = "0.5.3"
+version = "0.5.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
+checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
]
[[package]]
name = "redox_users"
-version = "0.5.0"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd6f9d3d47bdd2ad6945c5015a226ec6155d0bcdfd8f7cd29f86b71f8de99d2b"
+checksum = "78eaea1f52c56d57821be178b2d47e09ff26481a6042e8e042fcb0ced068b470"
dependencies = [
- "getrandom 0.2.15",
+ "getrandom 0.2.16",
"libredox",
"thiserror 2.0.12",
]
+[[package]]
+name = "ref-cast"
+version = "1.0.24"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf"
+dependencies = [
+ "ref-cast-impl",
+]
+
+[[package]]
+name = "ref-cast-impl"
+version = "1.0.24"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.104",
+]
+
[[package]]
name = "regex"
-version = "1.10.6"
+version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
+checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
dependencies = [
"aho-corasick",
"memchr",
- "regex-automata 0.4.7",
- "regex-syntax 0.8.4",
+ "regex-automata 0.4.9",
+ "regex-syntax 0.8.5",
]
[[package]]
@@ -6376,13 +6208,13 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.7"
+version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
+checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
dependencies = [
"aho-corasick",
"memchr",
- "regex-syntax 0.8.4",
+ "regex-syntax 0.8.5",
]
[[package]]
@@ -6393,9 +6225,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
[[package]]
name = "regex-syntax"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
+checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "relative-path"
@@ -6414,9 +6246,9 @@ checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
[[package]]
name = "reqwest"
-version = "0.12.7"
+version = "0.12.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8f4955649ef5c38cc7f9e8aa41761d48fb9677197daea9984dc54f56aad5e63"
+checksum = "cbc931937e6ca3a06e3b6c0aa7841849b160a90351d6ab467a8b9b9959767531"
dependencies = [
"base64 0.22.1",
"bytes",
@@ -6434,28 +6266,26 @@ dependencies = [
"hyper-rustls",
"hyper-tls",
"hyper-util",
- "ipnet",
"js-sys",
"log",
"mime",
"mime_guess",
"native-tls",
- "once_cell",
"percent-encoding",
"pin-project-lite",
"quinn",
"rustls",
- "rustls-pemfile",
"rustls-pki-types",
"serde",
"serde_json",
"serde_urlencoded",
- "sync_wrapper 1.0.1",
- "system-configuration",
+ "sync_wrapper",
"tokio",
"tokio-native-tls",
"tokio-rustls",
"tokio-util",
+ "tower",
+ "tower-http",
"tower-service",
"url",
"wasm-bindgen",
@@ -6463,64 +6293,62 @@ dependencies = [
"wasm-streams",
"web-sys",
"webpki-roots",
- "windows-registry 0.2.0",
]
[[package]]
name = "rfd"
-version = "0.15.0"
+version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8af382a047821a08aa6bfc09ab0d80ff48d45d8726f7cd8e44891f7cb4a4278e"
+checksum = "ef2bee61e6cffa4635c72d7d81a84294e28f0930db0ddcb0f66d10244674ebed"
dependencies = [
"ashpd",
- "block2 0.5.1",
+ "block2 0.6.1",
+ "dispatch2",
"glib-sys",
"gobject-sys",
"gtk-sys",
"js-sys",
"log",
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "objc2 0.6.1",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.1",
"raw-window-handle",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
- "windows-sys 0.48.0",
+ "windows-sys 0.59.0",
]
[[package]]
name = "rgb"
-version = "0.8.50"
+version = "0.8.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57397d16646700483b67d2dd6511d79318f9d057fdbd21a4066aeac8b41d310a"
-dependencies = [
- "bytemuck",
-]
+checksum = "0c6a884d2998352bb4daf0183589aec883f16a6da1f4dde84d8e2e9a5409a1ce"
[[package]]
name = "ring"
-version = "0.17.8"
+version = "0.17.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d"
+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
dependencies = [
"cc",
- "cfg-if 1.0.0",
- "getrandom 0.2.15",
+ "cfg-if",
+ "getrandom 0.2.16",
"libc",
- "spin",
"untrusted",
"windows-sys 0.52.0",
]
[[package]]
name = "ringbuf"
-version = "0.4.7"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "726bb493fe9cac765e8f96a144c3a8396bdf766dedad22e504b70b908dcbceb4"
+checksum = "fe47b720588c8702e34b5979cb3271a8b1842c7cb6f57408efa70c779363488c"
dependencies = [
"crossbeam-utils",
"portable-atomic",
+ "portable-atomic-util",
]
[[package]]
@@ -6545,20 +6373,19 @@ checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97"
[[package]]
name = "rust-ini"
-version = "0.21.1"
+version = "0.21.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e310ef0e1b6eeb79169a1171daf9abcb87a2e17c03bee2c4bb100b55c75409f"
+checksum = "e7295b7ce3bf4806b419dc3420745998b447178b7005e2011947b38fc5aa6791"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"ordered-multimap",
- "trim-in-place",
]
[[package]]
name = "rustc-demangle"
-version = "0.1.24"
+version = "0.1.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
+checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
[[package]]
name = "rustc-hash"
@@ -6574,44 +6401,44 @@ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
[[package]]
name = "rustc_version"
-version = "0.4.0"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
dependencies = [
"semver",
]
[[package]]
name = "rustix"
-version = "0.38.39"
+version = "0.38.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "375116bee2be9ed569afe2154ea6a99dfdffd257f533f187498c2a8f5feaf4ee"
+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"errno",
"libc",
- "linux-raw-sys 0.4.14",
- "windows-sys 0.52.0",
+ "linux-raw-sys 0.4.15",
+ "windows-sys 0.59.0",
]
[[package]]
name = "rustix"
-version = "1.0.7"
+version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266"
+checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"errno",
"libc",
"linux-raw-sys 0.9.4",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
name = "rustls"
-version = "0.23.13"
+version = "0.23.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8"
+checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc"
dependencies = [
"once_cell",
"ring",
@@ -6622,26 +6449,20 @@ dependencies = [
]
[[package]]
-name = "rustls-pemfile"
-version = "2.1.3"
+name = "rustls-pki-types"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "196fe16b00e106300d3e45ecfcb764fa292a535d7326a29a5875c579c7417425"
+checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79"
dependencies = [
- "base64 0.22.1",
- "rustls-pki-types",
+ "web-time",
+ "zeroize",
]
-[[package]]
-name = "rustls-pki-types"
-version = "1.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0"
-
[[package]]
name = "rustls-webpki"
-version = "0.102.8"
+version = "0.103.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
+checksum = "0a17884ae0c1b773f1ccd2bd4a8c72f16da897310a98b0e84bf349ad5ead92fc"
dependencies = [
"ring",
"rustls-pki-types",
@@ -6650,9 +6471,9 @@ dependencies = [
[[package]]
name = "rustversion"
-version = "1.0.17"
+version = "1.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6"
+checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
[[package]]
name = "rustybuzz"
@@ -6660,7 +6481,7 @@ version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfb9cf8877777222e4a3bc7eb247e398b56baba500c38c1c46842431adc8b55c"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"bytemuck",
"libm",
"smallvec",
@@ -6673,9 +6494,9 @@ dependencies = [
[[package]]
name = "ryu"
-version = "1.0.18"
+version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
+checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
[[package]]
name = "same-file"
@@ -6689,7 +6510,7 @@ dependencies = [
[[package]]
name = "scap"
version = "0.0.8"
-source = "git+https://github.com/CapSoftware/scap?rev=4d340576772c#4d340576772c4ee53352962b40102cc1de3444d6"
+source = "git+https://github.com/CapSoftware/scap?rev=6ec1fad428c0#6ec1fad428c0353c9360218450c6354624239dae"
dependencies = [
"cidre",
"cocoa 0.25.0",
@@ -6708,18 +6529,18 @@ dependencies = [
[[package]]
name = "schannel"
-version = "0.1.24"
+version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b"
+checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d"
dependencies = [
"windows-sys 0.59.0",
]
[[package]]
name = "schemars"
-version = "0.8.21"
+version = "0.8.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09c024468a378b7e36765cd36702b7a90cc3cba11654f6685c8f233408e89e92"
+checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"
dependencies = [
"dyn-clone",
"indexmap 1.9.3",
@@ -6730,16 +6551,40 @@ dependencies = [
"uuid",
]
+[[package]]
+name = "schemars"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
[[package]]
name = "schemars_derive"
-version = "0.8.21"
+version = "0.8.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1eee588578aff73f856ab961cd2f79e36bc45d7ded33a7562adba4667aecc0e"
+checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"
dependencies = [
"proc-macro2",
"quote",
"serde_derive_internals",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -6759,8 +6604,8 @@ name = "screencapturekit"
version = "0.3.5"
source = "git+https://github.com/CapSoftware/screencapturekit-rs?rev=7ff1e103742e56c8f6c2e940b5e52684ed0bed69#7ff1e103742e56c8f6c2e940b5e52684ed0bed69"
dependencies = [
- "block2 0.6.0",
- "core-foundation 0.10.0",
+ "block2 0.6.1",
+ "core-foundation 0.10.1",
"core-graphics 0.24.0",
"core-media-rs",
"core-utils-rs",
@@ -6775,41 +6620,39 @@ version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"core-foundation 0.9.4",
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"libc",
"security-framework-sys",
]
[[package]]
name = "security-framework-sys"
-version = "2.11.1"
+version = "2.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75da29fe9b9b08fe9d6b22b5b4bcbc75d8db3aa31e639aa56bb62e9d46bfceaf"
+checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32"
dependencies = [
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"libc",
]
[[package]]
name = "selectors"
-version = "0.22.0"
+version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe"
+checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416"
dependencies = [
"bitflags 1.3.2",
"cssparser",
"derive_more",
"fxhash",
"log",
- "matches",
"phf 0.8.0",
"phf_codegen 0.8.0",
"precomputed-hash",
"servo_arc",
"smallvec",
- "thin-slice",
]
[[package]]
@@ -6820,9 +6663,9 @@ checksum = "0f7d95a54511e0c7be3f51e8867aa8cf35148d7b9445d44de2f943e2b206e749"
[[package]]
name = "semver"
-version = "1.0.23"
+version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
+checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
dependencies = [
"serde",
]
@@ -6967,9 +6810,9 @@ dependencies = [
[[package]]
name = "serde-untagged"
-version = "0.1.6"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2676ba99bd82f75cae5cbd2c8eda6fa0b8760f18978ea840e980dd5567b5c5b6"
+checksum = "299d9c19d7d466db4ab10addd5703e4c615dec2a5a16dbbafe191045e87ee66e"
dependencies = [
"erased-serde",
"serde",
@@ -6984,7 +6827,7 @@ checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -6995,16 +6838,16 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "serde_json"
-version = "1.0.140"
+version = "1.0.141"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
+checksum = "30b9eff21ebe718216c6ec64e1d9ac57087aad11efc64e32002bce4a0d4c03d3"
dependencies = [
- "itoa 1.0.11",
+ "itoa",
"memchr",
"ryu",
"serde",
@@ -7012,30 +6855,39 @@ dependencies = [
[[package]]
name = "serde_path_to_error"
-version = "0.1.16"
+version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6"
+checksum = "59fab13f937fa393d08645bf3a84bdfe86e296747b506ada67bb15f10f218b2a"
dependencies = [
- "itoa 1.0.11",
+ "itoa",
"serde",
]
[[package]]
name = "serde_repr"
-version = "0.1.19"
+version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9"
+checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "serde_spanned"
-version = "0.6.8"
+version = "0.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1"
+checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40734c41988f7306bb04f0ecf60ec0f3f1caa34290e4e8ea471dcd3346483b83"
dependencies = [
"serde",
]
@@ -7047,22 +6899,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
dependencies = [
"form_urlencoded",
- "itoa 1.0.11",
+ "itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_with"
-version = "3.9.0"
+version = "3.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69cecfa94848272156ea67b2b1a53f20fc7bc638c4a46d2f8abde08f05f4b857"
+checksum = "f2c45cd61fefa9db6f254525d46e392b852e0e61d9a1fd36e5bd183450a556d5"
dependencies = [
"base64 0.22.1",
"chrono",
"hex",
"indexmap 1.9.3",
"indexmap 2.10.0",
+ "schemars 0.9.0",
+ "schemars 1.0.4",
"serde",
"serde_derive",
"serde_json",
@@ -7072,14 +6926,14 @@ dependencies = [
[[package]]
name = "serde_with_macros"
-version = "3.9.0"
+version = "3.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8fee4991ef4f274617a51ad4af30519438dacb2f56ac773b08a1922ff743350"
+checksum = "de90945e6565ce0d9a25098082ed4ee4002e047cb59892c318d66821e14bb30f"
dependencies = [
"darling",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -7106,9 +6960,9 @@ dependencies = [
[[package]]
name = "servo_arc"
-version = "0.1.1"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432"
+checksum = "d52aa42f8fdf0fed91e5ce7f23d8138441002fa31dca008acf47e6fd4721f741"
dependencies = [
"nodrop",
"stable_deref_trait",
@@ -7120,18 +6974,18 @@ version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"cpufeatures",
"digest",
]
[[package]]
name = "sha2"
-version = "0.10.8"
+version = "0.10.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"cpufeatures",
"digest",
]
@@ -7147,31 +7001,37 @@ dependencies = [
[[package]]
name = "shared_child"
-version = "1.0.1"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09fa9338aed9a1df411814a5b2252f7cd206c55ae9bf2fa763f8de84603aa60c"
+checksum = "1e362d9935bc50f019969e2f9ecd66786612daae13e8f277be7bfb66e8bed3f7"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "sigchld",
+ "windows-sys 0.60.2",
]
[[package]]
name = "shlex"
-version = "0.1.1"
+version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
-name = "shlex"
-version = "1.3.0"
+name = "sigchld"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+checksum = "47106eded3c154e70176fc83df9737335c94ce22f821c32d17ed1db1f83badb1"
+dependencies = [
+ "libc",
+ "os_pipe",
+ "signal-hook",
+]
[[package]]
name = "signal-hook"
-version = "0.3.17"
+version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
+checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
dependencies = [
"libc",
"signal-hook-registry",
@@ -7190,9 +7050,9 @@ dependencies = [
[[package]]
name = "signal-hook-registry"
-version = "1.4.2"
+version = "1.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1"
+checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410"
dependencies = [
"libc",
]
@@ -7218,6 +7078,12 @@ version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
+[[package]]
+name = "siphasher"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
+
[[package]]
name = "skia-bindings"
version = "0.86.1"
@@ -7232,7 +7098,7 @@ dependencies = [
"regex",
"serde_json",
"tar",
- "toml",
+ "toml 0.8.23",
]
[[package]]
@@ -7241,7 +7107,7 @@ version = "0.86.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e372258f52414e04de007326fa497581617c9fa872a3225dca5e42212723c426"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"lazy_static",
"skia-bindings",
]
@@ -7258,12 +7124,9 @@ dependencies = [
[[package]]
name = "slab"
-version = "0.4.9"
+version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
-dependencies = [
- "autocfg",
-]
+checksum = "04dc19736151f35336d325007ac991178d504a119863a2fcb3758cdb5e52c50d"
[[package]]
name = "slotmap"
@@ -7276,9 +7139,9 @@ dependencies = [
[[package]]
name = "smallvec"
-version = "1.13.2"
+version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
[[package]]
name = "smol_str"
@@ -7288,35 +7151,44 @@ checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
[[package]]
name = "socket2"
-version = "0.5.7"
+version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c"
+checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
-name = "softbuffer"
-version = "0.4.5"
+name = "socket2"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d623bff5d06f60d738990980d782c8c866997d9194cfe79ecad00aa2f76826dd"
+checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
dependencies = [
- "bytemuck",
- "cfg_aliases",
- "core-graphics 0.23.2",
- "foreign-types 0.5.0",
+ "libc",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "softbuffer"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18051cdd562e792cad055119e0cdb2cfc137e44e3987532e0f9659a77931bb08"
+dependencies = [
+ "bytemuck",
+ "cfg_aliases",
+ "core-graphics 0.24.0",
+ "foreign-types 0.5.0",
"js-sys",
"log",
"objc2 0.5.2",
- "objc2-app-kit 0.2.2",
"objc2-foundation 0.2.2",
"objc2-quartz-core 0.2.2",
"raw-window-handle",
"redox_syscall",
"wasm-bindgen",
"web-sys",
- "windows-sys 0.52.0",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -7367,7 +7239,7 @@ dependencies = [
"Inflector",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -7406,7 +7278,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.0",
+ "bitflags 2.9.1",
]
[[package]]
@@ -7423,36 +7295,29 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "string_cache"
-version = "0.8.7"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b"
+checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f"
dependencies = [
"new_debug_unreachable",
- "once_cell",
"parking_lot",
- "phf_shared 0.10.0",
+ "phf_shared 0.11.3",
"precomputed-hash",
"serde",
]
[[package]]
name = "string_cache_codegen"
-version = "0.5.2"
+version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988"
+checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"
dependencies = [
- "phf_generator 0.10.0",
- "phf_shared 0.10.0",
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
"proc-macro2",
"quote",
]
-[[package]]
-name = "strsim"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
-
[[package]]
name = "strsim"
version = "0.11.1"
@@ -7461,24 +7326,23 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "strum"
-version = "0.26.3"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
+checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf"
dependencies = [
"strum_macros",
]
[[package]]
name = "strum_macros"
-version = "0.26.4"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
+checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7"
dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "rustversion",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -7577,9 +7441,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.90"
+version = "2.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31"
+checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
dependencies = [
"proc-macro2",
"quote",
@@ -7588,24 +7452,29 @@ dependencies = [
[[package]]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
+dependencies = [
+ "futures-core",
+]
[[package]]
-name = "sync_wrapper"
-version = "1.0.1"
+name = "synstructure"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394"
+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
dependencies = [
- "futures-core",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.104",
]
[[package]]
name = "sys-locale"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e801cf239ecd6ccd71f03d270d67dd53d13e90aab208bf4b8fe4ad957ea949b0"
+checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4"
dependencies = [
"libc",
]
@@ -7616,8 +7485,8 @@ version = "0.30.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a5b4ddaee55fb2bea2bf0e5000747e5f5c0de765e5a5ff87f4cd106439f4bb3"
dependencies = [
- "cfg-if 1.0.0",
- "core-foundation-sys 0.8.7",
+ "cfg-if",
+ "core-foundation-sys",
"libc",
"ntapi",
"once_cell",
@@ -7631,7 +7500,7 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"core-foundation 0.9.4",
"system-configuration-sys",
]
@@ -7642,7 +7511,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
dependencies = [
- "core-foundation-sys 0.8.7",
+ "core-foundation-sys",
"libc",
]
@@ -7655,18 +7524,18 @@ dependencies = [
"cfg-expr",
"heck 0.5.0",
"pkg-config",
- "toml",
+ "toml 0.8.23",
"version-compare",
]
[[package]]
name = "tao"
-version = "0.33.0"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e59c1f38e657351a2e822eadf40d6a2ad4627b9c25557bc1180ec1b3295ef82"
+checksum = "49c380ca75a231b87b6c9dd86948f035012e7171d1a7c40a9c2890489a7ffd8a"
dependencies = [
- "bitflags 2.9.0",
- "core-foundation 0.10.0",
+ "bitflags 2.9.1",
+ "core-foundation 0.10.1",
"core-graphics 0.24.0",
"crossbeam-channel",
"dispatch",
@@ -7682,9 +7551,9 @@ dependencies = [
"ndk 0.9.0",
"ndk-context",
"ndk-sys 0.6.0+11769913",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
- "objc2-foundation 0.3.0",
+ "objc2 0.6.1",
+ "objc2-app-kit",
+ "objc2-foundation 0.3.1",
"once_cell",
"parking_lot",
"raw-window-handle",
@@ -7692,8 +7561,8 @@ dependencies = [
"tao-macros",
"unicode-segmentation",
"url",
- "windows 0.61.1",
- "windows-core 0.61.0",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
"windows-version",
"x11-dl",
]
@@ -7706,14 +7575,14 @@ checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "tar"
-version = "0.4.41"
+version = "0.4.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909"
+checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a"
dependencies = [
"filetime",
"libc",
@@ -7728,31 +7597,30 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
[[package]]
name = "tauri"
-version = "2.5.1"
+version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7b0bc1aec81bda6bc455ea98fcaed26b3c98c1648c627ad6ff1c704e8bf8cbc"
+checksum = "352a4bc7bf6c25f5624227e3641adf475a6535707451b09bb83271df8b7a6ac7"
dependencies = [
"anyhow",
"bytes",
"dirs",
"dunce",
"embed_plist",
- "futures-util",
- "getrandom 0.2.15",
+ "getrandom 0.3.3",
"glob",
"gtk",
"heck 0.5.0",
"http",
"http-range",
- "image 0.25.5",
+ "image",
"jni",
"libc",
"log",
"mime",
"muda",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
- "objc2-foundation 0.3.0",
+ "objc2 0.6.1",
+ "objc2-app-kit",
+ "objc2-foundation 0.3.1",
"objc2-ui-kit",
"percent-encoding",
"plist",
@@ -7777,14 +7645,14 @@ dependencies = [
"webkit2gtk",
"webview2-com",
"window-vibrancy",
- "windows 0.61.1",
+ "windows 0.61.3",
]
[[package]]
name = "tauri-build"
-version = "2.2.0"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7a0350f0df1db385ca5c02888a83e0e66655c245b7443db8b78a70da7d7f8fc"
+checksum = "182d688496c06bf08ea896459bf483eb29cdff35c1c4c115fb14053514303064"
dependencies = [
"anyhow",
"cargo_toml",
@@ -7792,21 +7660,21 @@ dependencies = [
"glob",
"heck 0.5.0",
"json-patch",
- "schemars",
+ "schemars 0.8.22",
"semver",
"serde",
"serde_json",
"tauri-utils",
"tauri-winres",
- "toml",
+ "toml 0.8.23",
"walkdir",
]
[[package]]
name = "tauri-codegen"
-version = "2.2.0"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f93f035551bf7b11b3f51ad9bc231ebbe5e085565527991c16cf326aa38cdf47"
+checksum = "b54a99a6cd8e01abcfa61508177e6096a4fe2681efecee9214e962f2f073ae4a"
dependencies = [
"base64 0.22.1",
"brotli",
@@ -7820,7 +7688,7 @@ dependencies = [
"serde",
"serde_json",
"sha2",
- "syn 2.0.90",
+ "syn 2.0.104",
"tauri-utils",
"thiserror 2.0.12",
"time",
@@ -7831,14 +7699,14 @@ dependencies = [
[[package]]
name = "tauri-macros"
-version = "2.2.0"
+version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8db4df25e2d9d45de0c4c910da61cd5500190da14ae4830749fee3466dddd112"
+checksum = "7945b14dc45e23532f2ded6e120170bbdd4af5ceaa45784a6b33d250fbce3f9e"
dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
"tauri-codegen",
"tauri-utils",
]
@@ -7846,13 +7714,13 @@ dependencies = [
[[package]]
name = "tauri-nspanel"
version = "2.0.1"
-source = "git+https://github.com/ahkohd/tauri-nspanel?branch=v2#356843c8433f89feea4f0f666be8b8d73715a57a"
+source = "git+https://github.com/ahkohd/tauri-nspanel?branch=v2#18ffb9a201fbf6fedfaa382fd4b92315ea30ab1a"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block",
- "cocoa 0.26.0",
- "core-foundation 0.10.0",
- "core-graphics 0.24.0",
+ "cocoa 0.26.1",
+ "core-foundation 0.10.1",
+ "core-graphics 0.25.0",
"objc",
"objc-foundation",
"objc_id",
@@ -7861,26 +7729,26 @@ dependencies = [
[[package]]
name = "tauri-plugin"
-version = "2.1.0"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9972871fcbddf16618f70412d965d4d845cd4b76d03fff168709961ef71e5cdf"
+checksum = "5bd5c1e56990c70a906ef67a9851bbdba9136d26075ee9a2b19c8b46986b3e02"
dependencies = [
"anyhow",
"glob",
"plist",
- "schemars",
+ "schemars 0.8.22",
"serde",
"serde_json",
"tauri-utils",
- "toml",
+ "toml 0.8.23",
"walkdir",
]
[[package]]
name = "tauri-plugin-clipboard-manager"
-version = "2.2.1"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "54de1e3a2ea008687954d5d72952800e87b09f6fbea6d0960d99e58050537642"
+checksum = "adddd9e9275b20e77af3061d100a25a884cced3c4c9ef680bd94dd0f7e26c1ca"
dependencies = [
"arboard",
"log",
@@ -7893,9 +7761,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-deep-link"
-version = "2.2.0"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35d51ffd286073414d26353bcfc9e83e3cd63f96fa7f7a912f92f2118e5de5a6"
+checksum = "1fec67f32d7a06d80bd3dc009fdb678c35a66116d9cb8cd2bb32e406c2b5bbd2"
dependencies = [
"dunce",
"rust-ini",
@@ -7907,15 +7775,15 @@ dependencies = [
"thiserror 2.0.12",
"tracing",
"url",
- "windows-registry 0.3.0",
- "windows-result 0.2.0",
+ "windows-registry",
+ "windows-result 0.3.4",
]
[[package]]
name = "tauri-plugin-dialog"
-version = "2.2.0"
+version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b59fd750551b1066744ab956a1cd6b1ea3e1b3763b0b9153ac27a044d596426"
+checksum = "37e5858cc7b455a73ab4ea2ebc08b5be33682c00ff1bf4cad5537d4fb62499d9"
dependencies = [
"log",
"raw-window-handle",
@@ -7931,15 +7799,15 @@ dependencies = [
[[package]]
name = "tauri-plugin-fs"
-version = "2.2.0"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1a1edf18000f02903a7c2e5997fb89aca455ecbc0acc15c6535afbb883be223"
+checksum = "8c6ef84ee2f2094ce093e55106d90d763ba343fad57566992962e8f76d113f99"
dependencies = [
"anyhow",
"dunce",
"glob",
"percent-encoding",
- "schemars",
+ "schemars 0.8.22",
"serde",
"serde_json",
"serde_repr",
@@ -7947,16 +7815,15 @@ dependencies = [
"tauri-plugin",
"tauri-utils",
"thiserror 2.0.12",
- "toml",
+ "toml 0.8.23",
"url",
- "uuid",
]
[[package]]
name = "tauri-plugin-global-shortcut"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "00f646a09511e8d283267dcdaa08c2ef27c4116bf271d9114849d9ca215606c3"
+checksum = "6df9f0f7bf2fe768b85fee4951c2505a35b72c44df1f6403e74e110bc13c5f58"
dependencies = [
"global-hotkey",
"log",
@@ -7969,15 +7836,17 @@ dependencies = [
[[package]]
name = "tauri-plugin-http"
-version = "2.4.2"
+version = "2.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "696ef548befeee6c6c17b80ef73e7c41205b6c2204e87ef78ccc231212389a5c"
+checksum = "fcde333d97e565a7765aad82f32d8672458f7bd77b6ee653830d5dded9d7b5c2"
dependencies = [
+ "bytes",
+ "cookie_store",
"data-url",
"http",
"regex",
"reqwest",
- "schemars",
+ "schemars 0.8.22",
"serde",
"serde_json",
"tauri",
@@ -7991,9 +7860,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-notification"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46ab803095f14ac6521fdb6477210a49e86fed6623c3c97d8e4b2b35e045e922"
+checksum = "cfe06ed89cff6d0ec06ff4f544fb961e4718348a33309f56ccb2086e77bc9116"
dependencies = [
"log",
"notify-rust",
@@ -8010,8 +7879,8 @@ dependencies = [
[[package]]
name = "tauri-plugin-oauth"
-version = "0.0.0-alpha.0"
-source = "git+https://github.com/FabianLars/tauri-plugin-oauth?branch=v2#3537dd0a2a8f8a868d8e89a0002c8a5c588a27f7"
+version = "2.0.0"
+source = "git+https://github.com/FabianLars/tauri-plugin-oauth?branch=v2#f941c99c3ed528a55db7fe05c931480a8255041d"
dependencies = [
"httparse",
"log",
@@ -8024,33 +7893,33 @@ dependencies = [
[[package]]
name = "tauri-plugin-opener"
-version = "2.2.6"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2fdc6cb608e04b7d2b6d1f21e9444ad49245f6d03465ba53323d692d1ceb1a30"
+checksum = "ecee219f11cdac713ab32959db5d0cceec4810ba4f4458da992292ecf9660321"
dependencies = [
"dunce",
"glob",
- "objc2-app-kit 0.3.0",
- "objc2-foundation 0.3.0",
+ "objc2-app-kit",
+ "objc2-foundation 0.3.1",
"open",
- "schemars",
+ "schemars 0.8.22",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
"thiserror 2.0.12",
"url",
- "windows 0.60.0",
- "zbus 5.3.0",
+ "windows 0.61.3",
+ "zbus",
]
[[package]]
name = "tauri-plugin-os"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dda2d571a9baf0664c1f2088db227e3072f9028602fafa885deade7547c3b738"
+checksum = "05bccb4c6de4299beec5a9b070878a01bce9e2c945aa7a75bcea38bcba4c675d"
dependencies = [
- "gethostname 0.5.0",
+ "gethostname 1.0.2",
"log",
"os_info",
"serde",
@@ -8064,9 +7933,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-positioner"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c95b371d489bee3d1be5e5bd1538080ad408317fcc2d8546d24b290249f7bb5"
+checksum = "3a01e373ea3f3f5f46d40f434ba13bd12fa4833aabab50dfc09f6362bad27c95"
dependencies = [
"log",
"serde",
@@ -8079,9 +7948,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-process"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40cc553ab29581c8c43dfa5fb0c9d5aee8ba962ad3b42908eea26c79610441b7"
+checksum = "7461c622a5ea00eb9cd9f7a08dbd3bf79484499fd5c21aa2964677f64ca651ab"
dependencies = [
"tauri",
"tauri-plugin",
@@ -8089,16 +7958,16 @@ dependencies = [
[[package]]
name = "tauri-plugin-shell"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb2c50a63e60fb8925956cc5b7569f4b750ac197a4d39f13b8dd46ea8e2bad79"
+checksum = "2b9ffadec5c3523f11e8273465cacb3d86ea7652a28e6e2a2e9b5c182f791d25"
dependencies = [
"encoding_rs",
"log",
"open",
"os_pipe",
"regex",
- "schemars",
+ "schemars 0.8.22",
"serde",
"serde_json",
"shared_child",
@@ -8110,9 +7979,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-single-instance"
-version = "2.2.2"
+version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25bbc73eed15bba8ad290a52614f2711280df4bf575b36ce78f64367074b90b7"
+checksum = "50a0e5a4ce43cb3a733c3aef85e8478bc769dac743c615e26639cbf5d953faf7"
dependencies = [
"serde",
"serde_json",
@@ -8120,15 +7989,15 @@ dependencies = [
"tauri-plugin-deep-link",
"thiserror 2.0.12",
"tracing",
- "windows-sys 0.59.0",
- "zbus 5.3.0",
+ "windows-sys 0.60.2",
+ "zbus",
]
[[package]]
name = "tauri-plugin-store"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c0c08fae6995909f5e9a0da6038273b750221319f2c0f3b526d6de1cde21505"
+checksum = "5916c609664a56c82aeaefffca9851fd072d4d41f73d63f22ee3ee451508194f"
dependencies = [
"dunce",
"serde",
@@ -8142,16 +8011,17 @@ dependencies = [
[[package]]
name = "tauri-plugin-updater"
-version = "2.5.0"
+version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebf3da08c36fb03c98c76e5563d4e74d9a590df0f40978cbe07f39cb52833f7c"
+checksum = "27cbc31740f4d507712550694749572ec0e43bdd66992db7599b89fbfd6b167b"
dependencies = [
"base64 0.22.1",
"dirs",
"flate2",
"futures-util",
"http",
- "infer 0.16.0",
+ "infer",
+ "log",
"minisign-verify",
"osakit",
"percent-encoding",
@@ -8167,17 +8037,17 @@ dependencies = [
"time",
"tokio",
"url",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
"zip",
]
[[package]]
name = "tauri-plugin-window-state"
-version = "2.2.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "234dd891cc7960fa28f93ea911f3e0d9ce8375ebf9ff303831bdd7a3443d5714"
+checksum = "2d5f6fe3291bfa609c7e0b0ee3bedac294d94c7018934086ce782c1d0f2a468e"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"log",
"serde",
"serde_json",
@@ -8188,16 +8058,16 @@ dependencies = [
[[package]]
name = "tauri-runtime"
-version = "2.6.0"
+version = "2.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "00f004905d549854069e6774533d742b03cacfd6f03deb08940a8677586cbe39"
+checksum = "2b1cc885be806ea15ff7b0eb47098a7b16323d9228876afda329e34e2d6c4676"
dependencies = [
"cookie",
"dpi",
"gtk",
"http",
"jni",
- "objc2 0.6.0",
+ "objc2 0.6.1",
"objc2-ui-kit",
"raw-window-handle",
"serde",
@@ -8205,22 +8075,22 @@ dependencies = [
"tauri-utils",
"thiserror 2.0.12",
"url",
- "windows 0.61.1",
+ "windows 0.61.3",
]
[[package]]
name = "tauri-runtime-wry"
-version = "2.6.0"
+version = "2.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f85d056f4d4b014fe874814034f3416d57114b617a493a4fe552580851a3f3a2"
+checksum = "fe653a2fbbef19fe898efc774bc52c8742576342a33d3d028c189b57eb1d2439"
dependencies = [
"gtk",
"http",
"jni",
"log",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
- "objc2-foundation 0.3.0",
+ "objc2 0.6.1",
+ "objc2-app-kit",
+ "objc2-foundation 0.3.1",
"once_cell",
"percent-encoding",
"raw-window-handle",
@@ -8231,7 +8101,7 @@ dependencies = [
"url",
"webkit2gtk",
"webview2-com",
- "windows 0.61.1",
+ "windows 0.61.3",
"wry",
]
@@ -8260,14 +8130,14 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "tauri-utils"
-version = "2.4.0"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b2900399c239a471bcff7f15c4399eb1a8c4fe511ba2853e07c996d771a5e0a4"
+checksum = "9330c15cabfe1d9f213478c9e8ec2b0c76dab26bb6f314b8ad1c8a568c1d186e"
dependencies = [
"anyhow",
"brotli",
@@ -8277,16 +8147,16 @@ dependencies = [
"glob",
"html5ever",
"http",
- "infer 0.19.0",
+ "infer",
"json-patch",
"kuchikiki",
"log",
"memchr",
- "phf 0.11.2",
+ "phf 0.11.3",
"proc-macro2",
"quote",
"regex",
- "schemars",
+ "schemars 0.8.22",
"semver",
"serde",
"serde-untagged",
@@ -8294,7 +8164,7 @@ dependencies = [
"serde_with",
"swift-rs",
"thiserror 2.0.12",
- "toml",
+ "toml 0.8.23",
"url",
"urlpattern",
"uuid",
@@ -8303,22 +8173,24 @@ dependencies = [
[[package]]
name = "tauri-winres"
-version = "0.3.0"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56eaa45f707bedf34d19312c26d350bc0f3c59a47e58e8adbeecdc850d2c13a0"
+checksum = "7c6d9028d41d4de835e3c482c677a8cb88137ac435d6ff9a71f392d4421576c9"
dependencies = [
"embed-resource",
- "toml",
+ "indexmap 2.10.0",
+ "toml 0.9.4",
]
[[package]]
name = "tauri-winrt-notification"
-version = "0.2.1"
+version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f89f5fb70d6f62381f5d9b2ba9008196150b40b75f3068eb24faeddf1c686871"
+checksum = "0b1e66e07de489fe43a46678dd0b8df65e0c973909df1b60ba33874e297ba9b9"
dependencies = [
- "quick-xml 0.31.0",
- "windows 0.56.0",
+ "quick-xml 0.37.5",
+ "thiserror 2.0.12",
+ "windows 0.61.3",
"windows-version",
]
@@ -8331,7 +8203,7 @@ dependencies = [
"fastrand",
"getrandom 0.3.3",
"once_cell",
- "rustix 1.0.7",
+ "rustix 1.0.8",
"windows-sys 0.59.0",
]
@@ -8355,21 +8227,6 @@ dependencies = [
"winapi-util",
]
-[[package]]
-name = "textwrap"
-version = "0.11.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
-dependencies = [
- "unicode-width",
-]
-
-[[package]]
-name = "thin-slice"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"
-
[[package]]
name = "thiserror"
version = "1.0.69"
@@ -8396,7 +8253,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -8407,17 +8264,16 @@ checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "thread_local"
-version = "1.1.8"
+version = "1.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c"
+checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
dependencies = [
- "cfg-if 1.0.0",
- "once_cell",
+ "cfg-if",
]
[[package]]
@@ -8433,12 +8289,12 @@ dependencies = [
[[package]]
name = "time"
-version = "0.3.36"
+version = "0.3.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
+checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40"
dependencies = [
"deranged",
- "itoa 1.0.11",
+ "itoa",
"num-conv",
"powerfmt",
"serde",
@@ -8448,15 +8304,15 @@ dependencies = [
[[package]]
name = "time-core"
-version = "0.1.2"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
+checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c"
[[package]]
name = "time-macros"
-version = "0.2.18"
+version = "0.2.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
+checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49"
dependencies = [
"num-conv",
"time-core",
@@ -8471,11 +8327,21 @@ dependencies = [
"crunchy",
]
+[[package]]
+name = "tinystr"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b"
+dependencies = [
+ "displaydoc",
+ "zerovec",
+]
+
[[package]]
name = "tinyvec"
-version = "1.8.0"
+version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
+checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71"
dependencies = [
"tinyvec_macros",
]
@@ -8488,22 +8354,22 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
-version = "1.46.1"
+version = "1.47.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0cc3a2344dafbe23a245241fe8b09735b521110d30fcefbbd5feb1797ca35d17"
+checksum = "43864ed400b6043a4757a25c7a64a8efde741aed79a056a2fb348a406701bb35"
dependencies = [
"backtrace",
"bytes",
"io-uring",
"libc",
- "mio 1.0.2",
+ "mio 1.0.4",
"pin-project-lite",
"signal-hook-registry",
"slab",
- "socket2",
+ "socket2 0.6.0",
"tokio-macros",
"tracing",
- "windows-sys 0.52.0",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -8514,7 +8380,7 @@ checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -8529,12 +8395,11 @@ dependencies = [
[[package]]
name = "tokio-rustls"
-version = "0.26.0"
+version = "0.26.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4"
+checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b"
dependencies = [
"rustls",
- "rustls-pki-types",
"tokio",
]
@@ -8577,21 +8442,45 @@ dependencies = [
[[package]]
name = "toml"
-version = "0.8.20"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
+dependencies = [
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.11",
+ "toml_edit 0.22.27",
+]
+
+[[package]]
+name = "toml"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41ae868b5a0f67631c14589f7e250c1ea2c574ee5ba21c6c8dd4b1485705a5a1"
+dependencies = [
+ "indexmap 2.10.0",
+ "serde",
+ "serde_spanned 1.0.0",
+ "toml_datetime 0.7.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 0.7.12",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "0.6.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148"
+checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
dependencies = [
"serde",
- "serde_spanned",
- "toml_datetime",
- "toml_edit 0.22.23",
]
[[package]]
name = "toml_datetime"
-version = "0.6.8"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"
+checksum = "bade1c3e902f58d73d3f294cd7f20391c1cb2fbcb643b73566bc773971df91e3"
dependencies = [
"serde",
]
@@ -8603,63 +8492,88 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap 2.10.0",
- "toml_datetime",
+ "toml_datetime 0.6.11",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
-version = "0.20.2"
+version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
+checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81"
dependencies = [
"indexmap 2.10.0",
- "toml_datetime",
+ "toml_datetime 0.6.11",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
-version = "0.22.23"
+version = "0.22.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02a8b472d1a3d7c18e2d61a489aee3453fd9031c33e4f55bd533f4a7adca1bee"
+checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
dependencies = [
"indexmap 2.10.0",
"serde",
- "serde_spanned",
- "toml_datetime",
- "winnow 0.7.1",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.11",
+ "toml_write",
+ "winnow 0.7.12",
+]
+
+[[package]]
+name = "toml_parser"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97200572db069e74c512a14117b296ba0a80a30123fbbb5aa1f4a348f639ca30"
+dependencies = [
+ "winnow 0.7.12",
]
+[[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"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fcc842091f2def52017664b53082ecbbeb5c7731092bad69d2c63050401dfd64"
+
[[package]]
name = "tower"
-version = "0.4.13"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
+checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
dependencies = [
"futures-core",
"futures-util",
- "pin-project",
"pin-project-lite",
+ "sync_wrapper",
"tokio",
"tower-layer",
"tower-service",
+ "tracing",
]
[[package]]
-name = "tower"
-version = "0.5.1"
+name = "tower-http"
+version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2873938d487c3cfb9aed7546dc9f2711d867c9f90c46b889989a2cb84eba6b4f"
+checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"
dependencies = [
- "futures-core",
+ "bitflags 2.9.1",
+ "bytes",
"futures-util",
+ "http",
+ "http-body",
+ "iri-string",
"pin-project-lite",
- "sync_wrapper 0.1.2",
- "tokio",
+ "tower",
"tower-layer",
"tower-service",
- "tracing",
]
[[package]]
@@ -8700,20 +8614,20 @@ dependencies = [
[[package]]
name = "tracing-attributes"
-version = "0.1.28"
+version = "0.1.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d"
+checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "tracing-core"
-version = "0.1.33"
+version = "0.1.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c"
+checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678"
dependencies = [
"once_cell",
"valuable",
@@ -8750,19 +8664,19 @@ dependencies = [
[[package]]
name = "tray-icon"
-version = "0.20.0"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d433764348e7084bad2c5ea22c96c71b61b17afe3a11645710f533bd72b6a2b5"
+checksum = "a0d92153331e7d02ec09137538996a7786fe679c629c279e82a6be762b7e6fe2"
dependencies = [
"crossbeam-channel",
"dirs",
"libappindicator",
"muda",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
+ "objc2 0.6.1",
+ "objc2-app-kit",
"objc2-core-foundation",
"objc2-core-graphics",
- "objc2-foundation 0.3.0",
+ "objc2-foundation 0.3.1",
"once_cell",
"png",
"serde",
@@ -8771,10 +8685,17 @@ dependencies = [
]
[[package]]
-name = "trim-in-place"
-version = "0.1.7"
+name = "tree_magic_mini"
+version = "3.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "343e926fc669bc8cde4fa3129ab681c63671bae288b1f1081ceee6d9d37904fc"
+checksum = "aac5e8971f245c3389a5a76e648bfc80803ae066a1243a75db0064d7c1129d63"
+dependencies = [
+ "fnv",
+ "memchr",
+ "nom",
+ "once_cell",
+ "petgraph",
+]
[[package]]
name = "try-lock"
@@ -8814,15 +8735,15 @@ dependencies = [
[[package]]
name = "typeid"
-version = "1.0.2"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e13db2e0ccd5e14a544e8a246ba2312cd25223f616442d7f2cb0e3db614236e"
+checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
[[package]]
name = "typenum"
-version = "1.17.0"
+version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
+checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f"
[[package]]
name = "uds_windows"
@@ -8887,18 +8808,15 @@ dependencies = [
[[package]]
name = "unicase"
-version = "2.7.0"
+version = "2.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89"
-dependencies = [
- "version_check",
-]
+checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539"
[[package]]
name = "unicode-bidi"
-version = "0.3.15"
+version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
+checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5"
[[package]]
name = "unicode-bidi-mirroring"
@@ -8914,9 +8832,9 @@ checksum = "1df77b101bcc4ea3d78dafc5ad7e4f58ceffe0b2b16bf446aeb50b6cb4157656"
[[package]]
name = "unicode-ident"
-version = "1.0.12"
+version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
+checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
[[package]]
name = "unicode-linebreak"
@@ -8924,15 +8842,6 @@ version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
-[[package]]
-name = "unicode-normalization"
-version = "0.1.23"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
-dependencies = [
- "tinyvec",
-]
-
[[package]]
name = "unicode-properties"
version = "0.1.3"
@@ -8947,15 +8856,21 @@ checksum = "9fb421b350c9aff471779e262955939f565ec18b86c15364e6bdf0d662ca7c1f"
[[package]]
name = "unicode-segmentation"
-version = "1.11.0"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
+checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
[[package]]
name = "unicode-width"
-version = "0.1.13"
+version = "0.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
+
+[[package]]
+name = "unicode-width"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c"
[[package]]
name = "untrusted"
@@ -8965,9 +8880,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "ureq"
-version = "2.10.1"
+version = "2.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b74fc6b57825be3373f7054754755f03ac3a8f5d70015ccad699ba2029956f4a"
+checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d"
dependencies = [
"base64 0.22.1",
"log",
@@ -8978,12 +8893,12 @@ dependencies = [
[[package]]
name = "url"
-version = "2.5.2"
+version = "2.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"
+checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
dependencies = [
"form_urlencoded",
- "idna 0.5.0",
+ "idna",
"percent-encoding",
"serde",
]
@@ -9006,6 +8921,12 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
+[[package]]
+name = "utf8_iter"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
+
[[package]]
name = "utf8parse"
version = "0.2.2"
@@ -9014,39 +8935,21 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "uuid"
-version = "1.11.1"
+version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b913a3b5fe84142e269d63cc62b64319ccaf89b748fc31fe025177f767a756c4"
+checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d"
dependencies = [
- "getrandom 0.2.15",
+ "getrandom 0.3.3",
+ "js-sys",
"serde",
-]
-
-[[package]]
-name = "v4l"
-version = "0.13.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd9946a2fda19c7a729dc72e28b9fd9c653e9b7de954ffe3aecaf51977f88762"
-dependencies = [
- "bitflags 1.3.2",
- "libc",
- "v4l2-sys-mit",
-]
-
-[[package]]
-name = "v4l2-sys-mit"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e0c932c06df4af1dfb229f604214f2a87993784596ff33ffdadcba1b5519254e"
-dependencies = [
- "bindgen 0.56.0",
+ "wasm-bindgen",
]
[[package]]
name = "v_frame"
-version = "0.3.8"
+version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6f32aaa24bacd11e488aa9ba66369c7cd514885742c9fe08cfe85884db3e92b"
+checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2"
dependencies = [
"aligned-vec",
"num-traits",
@@ -9055,9 +8958,9 @@ dependencies = [
[[package]]
name = "valuable"
-version = "0.1.0"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
+checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
[[package]]
name = "vcpkg"
@@ -9065,12 +8968,6 @@ version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
-[[package]]
-name = "vec_map"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
-
[[package]]
name = "version-compare"
version = "0.2.0"
@@ -9095,9 +8992,9 @@ dependencies = [
[[package]]
name = "vswhom-sys"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d3b17ae1f6c8a2b28506cd96d412eebf83b4a0ff2cbefeeb952f2f9dfa44ba18"
+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"
dependencies = [
"cc",
"libc",
@@ -9130,9 +9027,9 @@ checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
[[package]]
name = "wasi"
-version = "0.11.0+wasi-snapshot-preview1"
+version = "0.11.1+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
name = "wasi"
@@ -9149,7 +9046,7 @@ version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"once_cell",
"rustversion",
"wasm-bindgen-macro",
@@ -9165,7 +9062,7 @@ dependencies = [
"log",
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
"wasm-bindgen-shared",
]
@@ -9175,7 +9072,7 @@ version = "0.4.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
dependencies = [
- "cfg-if 1.0.0",
+ "cfg-if",
"js-sys",
"once_cell",
"wasm-bindgen",
@@ -9200,7 +9097,7 @@ checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
@@ -9216,9 +9113,9 @@ dependencies = [
[[package]]
name = "wasm-streams"
-version = "0.4.0"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129"
+checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
dependencies = [
"futures-util",
"js-sys",
@@ -9229,13 +9126,13 @@ dependencies = [
[[package]]
name = "wayland-backend"
-version = "0.3.7"
+version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "056535ced7a150d45159d3a8dc30f91a2e2d588ca0b23f70e56033622b8016f6"
+checksum = "673a33c33048a5ade91a6b139580fa174e19fb0d23f396dca9fa15f2e1e49b35"
dependencies = [
"cc",
"downcast-rs",
- "rustix 0.38.39",
+ "rustix 1.0.8",
"scoped-tls",
"smallvec",
"wayland-sys",
@@ -9243,44 +9140,57 @@ dependencies = [
[[package]]
name = "wayland-client"
-version = "0.31.7"
+version = "0.31.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b66249d3fc69f76fd74c82cc319300faa554e9d865dab1f7cd66cc20db10b280"
+checksum = "c66a47e840dc20793f2264eb4b3e4ecb4b75d91c0dd4af04b456128e0bdd449d"
dependencies = [
- "bitflags 2.9.0",
- "rustix 0.38.39",
+ "bitflags 2.9.1",
+ "rustix 1.0.8",
"wayland-backend",
"wayland-scanner",
]
[[package]]
name = "wayland-protocols"
-version = "0.32.5"
+version = "0.32.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "efa790ed75fbfd71283bd2521a1cfdc022aabcc28bdcff00851f9e4ae88d9901"
+dependencies = [
+ "bitflags 2.9.1",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-wlr"
+version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7cd0ade57c4e6e9a8952741325c30bf82f4246885dca8bf561898b86d0c1f58e"
+checksum = "efd94963ed43cf9938a090ca4f7da58eb55325ec8200c3848963e98dc25b78ec"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"wayland-backend",
"wayland-client",
+ "wayland-protocols",
"wayland-scanner",
]
[[package]]
name = "wayland-scanner"
-version = "0.31.5"
+version = "0.31.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "597f2001b2e5fc1121e3d5b9791d3e78f05ba6bfa4641053846248e3a13661c3"
+checksum = "54cb1e9dc49da91950bdfd8b848c49330536d9d1fb03d4bfec8cae50caa50ae3"
dependencies = [
"proc-macro2",
- "quick-xml 0.36.2",
+ "quick-xml 0.37.5",
"quote",
]
[[package]]
name = "wayland-sys"
-version = "0.31.5"
+version = "0.31.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "efa8ac0d8e8ed3e3b5c9fc92c7881406a268e11555abe36493efabe649a29e09"
+checksum = "34949b42822155826b41db8e5d0c1be3a2bd296c747577a43a3e6daefc296142"
dependencies = [
"dlib",
"log",
@@ -9297,6 +9207,16 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
[[package]]
name = "webkit2gtk"
version = "2.0.1"
@@ -9343,23 +9263,23 @@ dependencies = [
[[package]]
name = "webpki-roots"
-version = "0.26.5"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bd24728e5af82c6c4ec1b66ac4844bdf8156257fccda846ec58b42cd0cdbe6a"
+checksum = "7e8983c3ab33d6fb807cfcdad2491c4ea8cbc8ed839181c7dfd9c67c83e261b2"
dependencies = [
"rustls-pki-types",
]
[[package]]
name = "webview2-com"
-version = "0.37.0"
+version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b542b5cfbd9618c46c2784e4d41ba218c336ac70d44c55e47b251033e7d85601"
+checksum = "d4ba622a989277ef3886dd5afb3e280e3dd6d974b766118950a08f8f678ad6a4"
dependencies = [
"webview2-com-macros",
"webview2-com-sys",
- "windows 0.61.1",
- "windows-core 0.61.0",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
"windows-implement 0.60.0",
"windows-interface 0.59.1",
]
@@ -9372,34 +9292,33 @@ checksum = "1d228f15bba3b9d56dde8bddbee66fa24545bd17b48d5128ccf4a8742b18e431"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "webview2-com-sys"
-version = "0.37.0"
+version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ae2d11c4a686e4409659d7891791254cf9286d3cfe0eef54df1523533d22295"
+checksum = "36695906a1b53a3bf5c4289621efedac12b73eeb0b89e7e1a89b517302d5d75c"
dependencies = [
"thiserror 2.0.12",
- "windows 0.61.1",
- "windows-core 0.61.0",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
]
[[package]]
name = "weezl"
-version = "0.1.8"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082"
+checksum = "a751b3277700db47d3e574514de2eced5e54dc8a5436a3bf7a0b248b2cee16f3"
[[package]]
name = "wgpu"
-version = "25.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec8fb398f119472be4d80bc3647339f56eb63b2a331f6a3d16e25d8144197dd9"
+version = "25.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
"arrayvec",
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"cfg_aliases",
"document-features",
"hashbrown 0.15.4",
@@ -9422,14 +9341,13 @@ dependencies = [
[[package]]
name = "wgpu-core"
-version = "25.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7b882196f8368511d613c6aeec80655160db6646aebddf8328879a88d54e500"
+version = "25.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
"arrayvec",
"bit-set",
"bit-vec",
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"cfg_aliases",
"document-features",
"hashbrown 0.15.4",
@@ -9454,8 +9372,7 @@ dependencies = [
[[package]]
name = "wgpu-core-deps-apple"
version = "25.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfd488b3239b6b7b185c3b045c39ca6bf8af34467a4c5de4e0b1a564135d093d"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
"wgpu-hal",
]
@@ -9463,8 +9380,7 @@ dependencies = [
[[package]]
name = "wgpu-core-deps-emscripten"
version = "25.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f09ad7aceb3818e52539acc679f049d3475775586f3f4e311c30165cf2c00445"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
"wgpu-hal",
]
@@ -9472,28 +9388,26 @@ dependencies = [
[[package]]
name = "wgpu-core-deps-windows-linux-android"
version = "25.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cba5fb5f7f9c98baa7c889d444f63ace25574833df56f5b817985f641af58e46"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
"wgpu-hal",
]
[[package]]
name = "wgpu-hal"
-version = "25.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f968767fe4d3d33747bbd1473ccd55bf0f6451f55d733b5597e67b5deab4ad17"
+version = "25.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
"android_system_properties",
"arrayvec",
"ash",
"bit-set",
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"block",
"bytemuck",
- "cfg-if 1.0.0",
+ "cfg-if",
"cfg_aliases",
- "core-graphics-types 0.1.3",
+ "core-graphics-types 0.2.0",
"glow",
"glutin_wgl_sys",
"gpu-alloc",
@@ -9503,11 +9417,11 @@ dependencies = [
"js-sys",
"khronos-egl",
"libc",
- "libloading 0.8.5",
+ "libloading 0.8.8",
"log",
- "metal 0.31.0",
+ "metal 0.32.0",
"naga",
- "ndk-sys 0.5.0+25.2.9519653",
+ "ndk-sys 0.6.0+11769913",
"objc",
"ordered-float",
"parking_lot",
@@ -9528,10 +9442,9 @@ dependencies = [
[[package]]
name = "wgpu-types"
version = "25.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2aa49460c2a8ee8edba3fca54325540d904dd85b2e086ada762767e17d06e8bc"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cd41a6e32a6239b65d1cecbeccde6a43a100914a#cd41a6e32a6239b65d1cecbeccde6a43a100914a"
dependencies = [
- "bitflags 2.9.0",
+ "bitflags 2.9.1",
"bytemuck",
"js-sys",
"log",
@@ -9541,23 +9454,14 @@ dependencies = [
[[package]]
name = "which"
-version = "3.1.1"
+version = "4.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724"
-dependencies = [
- "libc",
-]
-
-[[package]]
-name = "which"
-version = "4.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
+checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
dependencies = [
"either",
"home",
"once_cell",
- "rustix 0.38.39",
+ "rustix 0.38.44",
]
[[package]]
@@ -9575,8 +9479,8 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2834f4ca6472b02748c6c282a60cea538f962428f79e685c3205a08efd711336"
dependencies = [
- "bindgen 0.69.4",
- "cfg-if 1.0.0",
+ "bindgen 0.69.5",
+ "cfg-if",
"cmake",
"fs_extra",
]
@@ -9618,30 +9522,15 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"
dependencies = [
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
+ "objc2 0.6.1",
+ "objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.0",
+ "objc2-foundation 0.3.1",
"raw-window-handle",
"windows-sys 0.59.0",
"windows-version",
]
-[[package]]
-name = "windows"
-version = "0.43.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04662ed0e3e5630dfa9b26e4cb823b817f1a9addda855d973a9458c236556244"
-dependencies = [
- "windows_aarch64_gnullvm 0.42.2",
- "windows_aarch64_msvc 0.42.2",
- "windows_i686_gnu 0.42.2",
- "windows_i686_msvc 0.42.2",
- "windows_x86_64_gnu 0.42.2",
- "windows_x86_64_gnullvm 0.42.2",
- "windows_x86_64_msvc 0.42.2",
-]
-
[[package]]
name = "windows"
version = "0.48.0"
@@ -9671,16 +9560,6 @@ dependencies = [
"windows-targets 0.52.6",
]
-[[package]]
-name = "windows"
-version = "0.56.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1de69df01bdf1ead2f4ac895dc77c9351aefff65b2f3db429a343f9cbf05e132"
-dependencies = [
- "windows-core 0.56.0",
- "windows-targets 0.52.6",
-]
-
[[package]]
name = "windows"
version = "0.58.0"
@@ -9698,7 +9577,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f919aee0a93304be7f62e8e5027811bbba96bcb1de84d6618be56e43f8a32a1"
dependencies = [
"windows-core 0.59.0",
- "windows-targets 0.53.0",
+ "windows-targets 0.53.3",
]
[[package]]
@@ -9716,29 +9595,28 @@ dependencies = [
[[package]]
name = "windows"
-version = "0.61.1"
+version = "0.61.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c5ee8f3d025738cb02bad7868bbb5f8a6327501e870bf51f1b455b0a2454a419"
+checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"
dependencies = [
"windows-collections 0.2.0",
- "windows-core 0.61.0",
- "windows-future 0.2.0",
+ "windows-core 0.61.2",
+ "windows-future 0.2.1",
"windows-link",
"windows-numerics 0.2.0",
]
[[package]]
name = "windows-capture"
-version = "1.4.2"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6001b777f61cafce437201de46a019ed7f4afed3b669f02e5ce4e0759164cb3e"
+checksum = "3a4df73e95feddb9ec1a7e9c2ca6323b8c97d5eeeff78d28f1eccdf19c882b24"
dependencies = [
- "clap 4.5.41",
- "ctrlc",
"parking_lot",
"rayon",
- "thiserror 1.0.69",
- "windows 0.58.0",
+ "thiserror 2.0.12",
+ "windows 0.61.3",
+ "windows-future 0.2.1",
]
[[package]]
@@ -9756,7 +9634,7 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"
dependencies = [
- "windows-core 0.61.0",
+ "windows-core 0.61.2",
]
[[package]]
@@ -9778,18 +9656,6 @@ dependencies = [
"windows-targets 0.52.6",
]
-[[package]]
-name = "windows-core"
-version = "0.56.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4698e52ed2d08f8658ab0c39512a7c00ee5fe2688c65f8c0a4f06750d729f2a6"
-dependencies = [
- "windows-implement 0.56.0",
- "windows-interface 0.56.0",
- "windows-result 0.1.2",
- "windows-targets 0.52.6",
-]
-
[[package]]
name = "windows-core"
version = "0.58.0"
@@ -9811,9 +9677,9 @@ checksum = "810ce18ed2112484b0d4e15d022e5f598113e220c53e373fb31e67e21670c1ce"
dependencies = [
"windows-implement 0.59.0",
"windows-interface 0.59.1",
- "windows-result 0.3.2",
+ "windows-result 0.3.4",
"windows-strings 0.3.1",
- "windows-targets 0.53.0",
+ "windows-targets 0.53.3",
]
[[package]]
@@ -9825,21 +9691,21 @@ dependencies = [
"windows-implement 0.59.0",
"windows-interface 0.59.1",
"windows-link",
- "windows-result 0.3.2",
+ "windows-result 0.3.4",
"windows-strings 0.3.1",
]
[[package]]
name = "windows-core"
-version = "0.61.0"
+version = "0.61.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4763c1de310c86d75a878046489e2e5ba02c649d185f21c67d4cf8a56d098980"
+checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
dependencies = [
"windows-implement 0.60.0",
"windows-interface 0.59.1",
"windows-link",
- "windows-result 0.3.2",
- "windows-strings 0.4.0",
+ "windows-result 0.3.4",
+ "windows-strings 0.4.2",
]
[[package]]
@@ -9854,23 +9720,13 @@ dependencies = [
[[package]]
name = "windows-future"
-version = "0.2.0"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a1d6bbefcb7b60acd19828e1bc965da6fcf18a7e39490c5f8be71e54a19ba32"
+checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
dependencies = [
- "windows-core 0.61.0",
+ "windows-core 0.61.2",
"windows-link",
-]
-
-[[package]]
-name = "windows-implement"
-version = "0.56.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6fc35f58ecd95a9b71c4f2329b911016e6bec66b3f2e6a4aad86bd2e99e2f9b"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.90",
+ "windows-threading",
]
[[package]]
@@ -9881,7 +9737,7 @@ checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -9892,7 +9748,7 @@ checksum = "83577b051e2f49a058c308f17f273b570a6a758386fc291b5f6a934dd84e48c1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -9903,18 +9759,7 @@ checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
-]
-
-[[package]]
-name = "windows-interface"
-version = "0.56.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08990546bf4edef8f431fa6326e032865f27138718c587dc21bc0265bbcb57cc"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -9925,7 +9770,7 @@ checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
@@ -9936,14 +9781,14 @@ checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
]
[[package]]
name = "windows-link"
-version = "0.1.1"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
+checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
[[package]]
name = "windows-numerics"
@@ -9961,30 +9806,19 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
dependencies = [
- "windows-core 0.61.0",
+ "windows-core 0.61.2",
"windows-link",
]
[[package]]
name = "windows-registry"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0"
-dependencies = [
- "windows-result 0.2.0",
- "windows-strings 0.1.0",
- "windows-targets 0.52.6",
-]
-
-[[package]]
-name = "windows-registry"
-version = "0.3.0"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bafa604f2104cf5ae2cc2db1dee84b7e6a5d11b05f737b60def0ffdc398cbc0a"
+checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"
dependencies = [
- "windows-result 0.2.0",
- "windows-strings 0.2.0",
- "windows-targets 0.52.6",
+ "windows-link",
+ "windows-result 0.3.4",
+ "windows-strings 0.4.2",
]
[[package]]
@@ -10007,9 +9841,9 @@ dependencies = [
[[package]]
name = "windows-result"
-version = "0.3.2"
+version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252"
+checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
dependencies = [
"windows-link",
]
@@ -10024,15 +9858,6 @@ dependencies = [
"windows-targets 0.52.6",
]
-[[package]]
-name = "windows-strings"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "978d65aedf914c664c510d9de43c8fd85ca745eaff1ed53edf409b479e441663"
-dependencies = [
- "windows-targets 0.52.6",
-]
-
[[package]]
name = "windows-strings"
version = "0.3.1"
@@ -10044,9 +9869,9 @@ dependencies = [
[[package]]
name = "windows-strings"
-version = "0.4.0"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a2ba9642430ee452d5a7aa78d72907ebe8cfda358e8cb7918a2050581322f97"
+checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
dependencies = [
"windows-link",
]
@@ -10087,6 +9912,15 @@ dependencies = [
"windows-targets 0.52.6",
]
+[[package]]
+name = "windows-sys"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
+dependencies = [
+ "windows-targets 0.53.3",
+]
+
[[package]]
name = "windows-targets"
version = "0.42.2"
@@ -10135,10 +9969,11 @@ dependencies = [
[[package]]
name = "windows-targets"
-version = "0.53.0"
+version = "0.53.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b"
+checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
dependencies = [
+ "windows-link",
"windows_aarch64_gnullvm 0.53.0",
"windows_aarch64_msvc 0.53.0",
"windows_i686_gnu 0.53.0",
@@ -10149,13 +9984,22 @@ dependencies = [
"windows_x86_64_msvc 0.53.0",
]
+[[package]]
+name = "windows-threading"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"
+dependencies = [
+ "windows-link",
+]
+
[[package]]
name = "windows-version"
-version = "0.1.1"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6998aa457c9ba8ff2fb9f13e9d2a930dabcea28f1d0ab94d687d8b3654844515"
+checksum = "e04a5c6627e310a23ad2358483286c7df260c964eb2d003d8efd6d0f4e79265c"
dependencies = [
- "windows-targets 0.52.6",
+ "windows-link",
]
[[package]]
@@ -10358,49 +10202,65 @@ dependencies = [
[[package]]
name = "winnow"
-version = "0.6.20"
+version = "0.7.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b"
+checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95"
dependencies = [
"memchr",
]
[[package]]
-name = "winnow"
-version = "0.7.1"
+name = "winreg"
+version = "0.55.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86e376c75f4f43f44db463cf729e0d3acbf954d13e22c51e26e4c264b4ab545f"
+checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97"
dependencies = [
- "memchr",
+ "cfg-if",
+ "windows-sys 0.59.0",
]
[[package]]
-name = "winreg"
-version = "0.52.0"
+name = "wit-bindgen-rt"
+version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5"
+checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
dependencies = [
- "cfg-if 1.0.0",
- "windows-sys 0.48.0",
+ "bitflags 2.9.1",
]
[[package]]
-name = "wit-bindgen-rt"
-version = "0.39.0"
+name = "wl-clipboard-rs"
+version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
+checksum = "8e5ff8d0e60065f549fafd9d6cb626203ea64a798186c80d8e7df4f8af56baeb"
dependencies = [
- "bitflags 2.9.0",
+ "libc",
+ "log",
+ "os_pipe",
+ "rustix 0.38.44",
+ "tempfile",
+ "thiserror 2.0.12",
+ "tree_magic_mini",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-protocols-wlr",
]
+[[package]]
+name = "writeable"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
+
[[package]]
name = "wry"
-version = "0.51.2"
+version = "0.52.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c886a0a9d2a94fd90cfa1d929629b79cfefb1546e2c7430c63a47f0664c0e4e2"
+checksum = "12a714d9ba7075aae04a6e50229d6109e3d584774b99a6a8c60de1698ca111b9"
dependencies = [
"base64 0.22.1",
- "block2 0.6.0",
+ "block2 0.6.1",
"cookie",
"crossbeam-channel",
"dpi",
@@ -10414,10 +10274,10 @@ dependencies = [
"kuchikiki",
"libc",
"ndk 0.9.0",
- "objc2 0.6.0",
- "objc2-app-kit 0.3.0",
+ "objc2 0.6.1",
+ "objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.0",
+ "objc2-foundation 0.3.1",
"objc2-ui-kit",
"objc2-web-kit",
"once_cell",
@@ -10431,8 +10291,8 @@ dependencies = [
"webkit2gtk",
"webkit2gtk-sys",
"webview2-com",
- "windows 0.61.1",
- "windows-core 0.61.0",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
"windows-version",
"x11-dl",
]
@@ -10465,7 +10325,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d91ffca73ee7f68ce055750bf9f6eca0780b8c85eff9bc046a3b0da41755e12"
dependencies = [
"gethostname 0.4.3",
- "rustix 0.38.39",
+ "rustix 0.38.44",
"x11rb-protocol",
]
@@ -10477,30 +10337,25 @@ checksum = "ec107c4503ea0b4a98ef47356329af139c0a4f7750e621cf2973cd3385ebcb3d"
[[package]]
name = "xattr"
-version = "1.3.1"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f"
+checksum = "af3a19837351dc82ba89f8a125e22a3c475f05aba604acc023d62b2739ae2909"
dependencies = [
"libc",
- "linux-raw-sys 0.4.14",
- "rustix 0.38.39",
+ "rustix 1.0.8",
]
[[package]]
-name = "xdg-home"
-version = "1.3.0"
+name = "xkeysym"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec1cdab258fb55c0da61328dc52c8764709b249011b2cad0454c72f0bf10a1f6"
-dependencies = [
- "libc",
- "windows-sys 0.59.0",
-]
+checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"
[[package]]
name = "xml-rs"
-version = "0.8.21"
+version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "539a77ee7c0de333dcc6da69b177380a0b81e0dacfa4f7344c465a36871ee601"
+checksum = "6fd8403733700263c6eb89f192880191f1b83e332f7a20371ddcf421c4a337c7"
[[package]]
name = "yansi"
@@ -10524,53 +10379,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5"
[[package]]
-name = "zbus"
-version = "4.4.0"
+name = "yoke"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725"
+checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc"
dependencies = [
- "async-broadcast",
- "async-executor",
- "async-fs",
- "async-io",
- "async-lock",
- "async-process",
- "async-recursion",
- "async-task",
- "async-trait",
- "blocking",
- "enumflags2",
- "event-listener",
- "futures-core",
- "futures-sink",
- "futures-util",
- "hex",
- "nix 0.29.0",
- "ordered-stream",
- "rand 0.8.5",
"serde",
- "serde_repr",
- "sha1",
- "static_assertions",
- "tokio",
- "tracing",
- "uds_windows",
- "windows-sys 0.52.0",
- "xdg-home",
- "zbus_macros 4.4.0",
- "zbus_names 3.0.0",
- "zvariant 4.2.0",
+ "stable_deref_trait",
+ "yoke-derive",
+ "zerofrom",
+]
+
+[[package]]
+name = "yoke-derive"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.104",
+ "synstructure",
]
[[package]]
name = "zbus"
-version = "5.3.0"
+version = "5.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "192a0d989036cd60a1e91a54c9851fb9ad5bd96125d41803eed79d2e2ef74bd7"
+checksum = "4bb4f9a464286d42851d18a605f7193b8febaf5b0919d71c6399b7b26e5b0aad"
dependencies = [
"async-broadcast",
"async-executor",
- "async-fs",
"async-io",
"async-lock",
"async-process",
@@ -10581,72 +10420,47 @@ dependencies = [
"enumflags2",
"event-listener",
"futures-core",
- "futures-util",
+ "futures-lite",
"hex",
- "nix 0.29.0",
+ "nix 0.30.1",
"ordered-stream",
"serde",
"serde_repr",
- "static_assertions",
+ "tokio",
"tracing",
"uds_windows",
"windows-sys 0.59.0",
- "winnow 0.6.20",
- "xdg-home",
- "zbus_macros 5.3.0",
- "zbus_names 4.1.1",
- "zvariant 5.2.0",
-]
-
-[[package]]
-name = "zbus_macros"
-version = "4.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e"
-dependencies = [
- "proc-macro-crate 3.2.0",
- "proc-macro2",
- "quote",
- "syn 2.0.90",
- "zvariant_utils 2.1.0",
+ "winnow 0.7.12",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
]
[[package]]
name = "zbus_macros"
-version = "5.3.0"
+version = "5.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3685b5c81fce630efc3e143a4ded235b107f1b1cdf186c3f115529e5e5ae4265"
+checksum = "ef9859f68ee0c4ee2e8cde84737c78e3f4c54f946f2a38645d0d4c7a95327659"
dependencies = [
- "proc-macro-crate 3.2.0",
+ "proc-macro-crate 3.3.0",
"proc-macro2",
"quote",
- "syn 2.0.90",
- "zbus_names 4.1.1",
- "zvariant 5.2.0",
- "zvariant_utils 3.1.0",
+ "syn 2.0.104",
+ "zbus_names",
+ "zvariant",
+ "zvariant_utils",
]
[[package]]
name = "zbus_names"
-version = "3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c"
-dependencies = [
- "serde",
- "static_assertions",
- "zvariant 4.2.0",
-]
-
-[[package]]
-name = "zbus_names"
-version = "4.1.1"
+version = "4.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "519629a3f80976d89c575895b05677cbc45eaf9f70d62a364d819ba646409cc8"
+checksum = "7be68e64bf6ce8db94f63e72f0c7eb9a60d733f7e0499e628dfab0f84d6bcb97"
dependencies = [
"serde",
"static_assertions",
- "winnow 0.6.20",
- "zvariant 5.2.0",
+ "winnow 0.7.12",
+ "zvariant",
]
[[package]]
@@ -10657,23 +10471,43 @@ checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524"
[[package]]
name = "zerocopy"
-version = "0.7.35"
+version = "0.8.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
+checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f"
dependencies = [
- "byteorder",
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.7.35"
+version = "0.8.26"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.104",
+]
+
+[[package]]
+name = "zerofrom"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
+dependencies = [
+ "zerofrom-derive",
+]
+
+[[package]]
+name = "zerofrom-derive"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
+checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.90",
+ "syn 2.0.104",
+ "synstructure",
]
[[package]]
@@ -10682,19 +10516,49 @@ version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
+[[package]]
+name = "zerotrie"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595"
+dependencies = [
+ "displaydoc",
+ "yoke",
+ "zerofrom",
+]
+
+[[package]]
+name = "zerovec"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428"
+dependencies = [
+ "yoke",
+ "zerofrom",
+ "zerovec-derive",
+]
+
+[[package]]
+name = "zerovec-derive"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.104",
+]
+
[[package]]
name = "zip"
-version = "2.2.0"
+version = "4.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc5e4288ea4057ae23afc69a4472434a87a2495cafce6632fd1c4ec9f5cf3494"
+checksum = "9aed4ac33e8eb078c89e6cbb1d5c4c7703ec6d299fc3e7c3695af8f8b423468b"
dependencies = [
"arbitrary",
"crc32fast",
- "crossbeam-utils",
- "displaydoc",
"indexmap 2.10.0",
"memchr",
- "thiserror 1.0.69",
]
[[package]]
@@ -10714,94 +10578,51 @@ dependencies = [
[[package]]
name = "zune-jpeg"
-version = "0.4.13"
+version = "0.4.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "16099418600b4d8f028622f73ff6e3deaabdff330fb9a2a131dea781ee8b0768"
+checksum = "fc1f7e205ce79eb2da3cd71c5f55f3589785cb7c79f6a03d1c8d1491bda5d089"
dependencies = [
"zune-core",
]
[[package]]
name = "zvariant"
-version = "4.2.0"
+version = "5.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe"
+checksum = "d91b3680bb339216abd84714172b5138a4edac677e641ef17e1d8cb1b3ca6e6f"
dependencies = [
"endi",
"enumflags2",
"serde",
- "static_assertions",
"url",
- "zvariant_derive 4.2.0",
-]
-
-[[package]]
-name = "zvariant"
-version = "5.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55e6b9b5f1361de2d5e7d9fd1ee5f6f7fcb6060618a1f82f3472f58f2b8d4be9"
-dependencies = [
- "endi",
- "enumflags2",
- "serde",
- "static_assertions",
- "winnow 0.6.20",
- "zvariant_derive 5.2.0",
- "zvariant_utils 3.1.0",
-]
-
-[[package]]
-name = "zvariant_derive"
-version = "4.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449"
-dependencies = [
- "proc-macro-crate 3.2.0",
- "proc-macro2",
- "quote",
- "syn 2.0.90",
- "zvariant_utils 2.1.0",
+ "winnow 0.7.12",
+ "zvariant_derive",
+ "zvariant_utils",
]
[[package]]
name = "zvariant_derive"
-version = "5.2.0"
+version = "5.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "573a8dd76961957108b10f7a45bac6ab1ea3e9b7fe01aff88325dc57bb8f5c8b"
+checksum = "3a8c68501be459a8dbfffbe5d792acdd23b4959940fc87785fb013b32edbc208"
dependencies = [
- "proc-macro-crate 3.2.0",
+ "proc-macro-crate 3.3.0",
"proc-macro2",
"quote",
- "syn 2.0.90",
- "zvariant_utils 3.1.0",
+ "syn 2.0.104",
+ "zvariant_utils",
]
[[package]]
name = "zvariant_utils"
-version = "2.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.90",
-]
-
-[[package]]
-name = "zvariant_utils"
-version = "3.1.0"
+version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ddd46446ea2a1f353bfda53e35f17633afa79f4fe290a611c94645c69fe96a50"
+checksum = "e16edfee43e5d7b553b77872d99bc36afdda75c223ca7ad5e3fbecd82ca5fc34"
dependencies = [
"proc-macro2",
"quote",
"serde",
"static_assertions",
- "syn 2.0.90",
- "winnow 0.6.20",
+ "syn 2.0.104",
+ "winnow 0.7.12",
]
-
-[[patch.unused]]
-name = "wry"
-version = "0.50.5"
-source = "git+https://github.com/CapSoftware/wry?rev=293f510#293f510b4096444025110ab3b68722ddc5bc0b4d"
diff --git a/Cargo.toml b/Cargo.toml
index 1f6b84969..b03699ed1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,14 +24,15 @@ specta = { version = "=2.0.0-rc.20", features = [
"serde_json",
"uuid",
] }
+serde = { version = "1", features = ["derive"] }
-scap = { git = "https://github.com/CapSoftware/scap", rev = "4d340576772c" }
+scap = { git = "https://github.com/CapSoftware/scap", rev = "6ec1fad428c0" }
nokhwa = { git = "https://github.com/CapSoftware/nokhwa", rev = "b9c8079e82e2", features = [
"input-native",
"serialize",
] }
nokhwa-bindings-macos = { git = "https://github.com/CapSoftware/nokhwa", rev = "b9c8079e82e2" }
-wgpu = "25.0.2"
+wgpu = "25.0.0"
flume = "0.11.0"
thiserror = "1.0"
sentry = { version = "0.34.0", features = [
@@ -52,16 +53,26 @@ cidre = { git = "https://github.com/CapSoftware/cidre", rev = "517d097ae438", fe
"dispatch",
], default-features = false }
-windows = "0.58.0"
+windows = "0.60.0"
+windows-core = "0.60"
windows-sys = "0.59.0"
-windows-capture = "1.4.2"
+windows-capture = "1.5.0"
percent-encoding = "2.3.1"
[workspace.lints.clippy]
dbg_macro = "deny"
let_underscore_future = "deny"
+# Optimize for smaller binary size
+[profile.release]
+panic = "abort" # Strip expensive panic clean-up logic
+codegen-units = 1 # Compile crates one after another so the compiler can optimize better
+lto = true # Enables link to optimizations
+opt-level = "s" # Optimize for binary size
+debug = true
+
[patch.crates-io]
screencapturekit = { git = "https://github.com/CapSoftware/screencapturekit-rs", rev = "7ff1e103742e56c8f6c2e940b5e52684ed0bed69" } # branch = "cap-main"
-wry = { git = "https://github.com/CapSoftware/wry", rev = "293f510" } # branch = "cap"
cidre = { git = "https://github.com/CapSoftware/cidre", rev = "517d097ae438" }
+# https://github.com/gfx-rs/wgpu/pull/7550
+wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "cd41a6e32a6239b65d1cecbeccde6a43a100914a" }
diff --git a/apps/cli/Cargo.toml b/apps/cli/Cargo.toml
index f30416f03..00186447c 100644
--- a/apps/cli/Cargo.toml
+++ b/apps/cli/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
edition = "2021"
[dependencies]
-nokhwa-bindings-macos.workspace = true
clap = { version = "4.5.23", features = ["derive"] }
cap-utils = { path = "../../crates/utils" }
cap-project = { path = "../../crates/project" }
@@ -14,7 +13,8 @@ cap-media = { path = "../../crates/media" }
cap-flags = { path = "../../crates/flags" }
cap-recording = { path = "../../crates/recording" }
cap-export = { path = "../../crates/export" }
-serde = "1.0.216"
+cap-camera = { path = "../../crates/camera" }
+serde = { workspace = true }
serde_json = "1.0.133"
tokio.workspace = true
editor = "0.1.1"
@@ -23,5 +23,4 @@ uuid = { version = "1.11.1", features = ["v4"] }
ffmpeg = { workspace = true }
tracing.workspace = true
tracing-subscriber = "0.3.19"
-nokhwa.workspace = true
flume.workspace = true
diff --git a/apps/cli/src/main.rs b/apps/cli/src/main.rs
index f9ba4445b..791ddb37a 100644
--- a/apps/cli/src/main.rs
+++ b/apps/cli/src/main.rs
@@ -6,7 +6,7 @@ use std::{
};
use cap_export::ExporterBase;
-use cap_media::sources::get_target_fps;
+use cap_media::{feeds::CameraFeed, sources::get_target_fps};
use cap_project::XY;
use clap::{Args, Parser, Subcommand};
use record::RecordStart;
@@ -111,34 +111,30 @@ window {}:
}
}
Some(RecordCommands::Cameras) => {
- use nokhwa::{
- pixel_format::RgbAFormat,
- utils::{ApiBackend, RequestedFormat, RequestedFormatType},
- Camera,
- };
-
- let cameras = nokhwa::query(ApiBackend::Auto).unwrap();
+ let cameras = CameraFeed::list_cameras();
let mut info = vec![];
for camera_info in cameras {
- let format = RequestedFormat::new::<RgbAFormat>(
- RequestedFormatType::AbsoluteHighestFrameRate,
- );
+ // let format = RequestedFormat::new::<RgbAFormat>(
+ // RequestedFormatType::AbsoluteHighestFrameRate,
+ // );
- let Ok(mut camera) = Camera::new(camera_info.index().clone(), format) else {
- continue;
- };
+ // let Ok(mut camera) = Camera::new(camera_info.index().clone(), format) else {
+ // continue;
+ // };
info.push(json!({
- "index": camera_info.index().to_string(),
- "name": camera_info.human_name(),
- "pixel_format": camera.frame_format(),
- "formats": camera
- .compatible_camera_formats()
- .unwrap()
- .into_iter()
- .map(|f| format!("{}x{}@{}fps", f.resolution().x(), f.resolution().y(), f.frame_rate()))
- .collect::<Vec<_>>()
+ // "model_id": camera_info.model_id().to_string(),
+ "display_name": camera_info.display_name()
+ // "index": camera_info.index().to_string(),
+ // "name": camera_info.human_name(),
+ // "pixel_format": camera.frame_format(),
+ // "formats": camera
+ // .compatible_camera_formats()
+ // .unwrap()
+ // .into_iter()
+ // .map(|f| format!("{}x{}@{}fps", f.resolution().x(), f.resolution().y(), f.frame_rate()))
+ // .collect::<Vec<_>>()
}));
}
diff --git a/apps/cli/src/record.rs b/apps/cli/src/record.rs
index 9a1efb387..2cdad305b 100644
--- a/apps/cli/src/record.rs
+++ b/apps/cli/src/record.rs
@@ -1,8 +1,8 @@
use std::{env::current_dir, path::PathBuf, sync::Arc};
+use cap_camera::ModelID;
use cap_media::{feeds::CameraFeed, sources::ScreenCaptureTarget};
use clap::Args;
-use nokhwa::utils::{ApiBackend, CameraIndex};
use tokio::{io::AsyncBufReadExt, sync::Mutex};
use uuid::Uuid;
@@ -12,7 +12,7 @@ pub struct RecordStart {
target: RecordTargets,
/// Index of the camera to record
#[arg(long)]
- camera: Option<u32>,
+ camera: Option<String>,
/// ID of the microphone to record
#[arg(long)]
mic: Option<u32>,
@@ -43,18 +43,13 @@ impl RecordStart {
_ => Err("No target specified".to_string()),
}?;
- let camera = if let Some(camera_index) = self.camera {
- if let Some(camera_info) = nokhwa::query(ApiBackend::Auto)
- .unwrap()
- .into_iter()
- .find(|c| *c.index() == CameraIndex::Index(camera_index))
- {
- let name = camera_info.human_name();
+ let camera = if let Some(model_id) = self.camera {
+ let model_id: ModelID = model_id
+ .try_into()
+ .map_err(|_| "Invalid model ID".to_string())?;
- Some(CameraFeed::init(&name).await.unwrap())
- } else {
- None
- }
+ todo!()
+ // Some(CameraFeed::init(model_id).await.unwrap())
} else {
None
};
diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml
index c90a428a6..b634b3511 100644
--- a/apps/desktop/src-tauri/Cargo.toml
+++ b/apps/desktop/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cap-desktop"
-version = "0.3.60"
+version = "0.3.61-beta.1"
description = "Beautiful screen recordings, owned by you."
authors = ["you"]
edition = "2024"
@@ -8,8 +8,6 @@ edition = "2024"
[lints]
workspace = true
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
[lib]
name = "cap_desktop"
crate-type = ["lib", "cdylib", "staticlib"]
@@ -47,7 +45,7 @@ tauri-plugin-deep-link = "2.2.0"
tauri-plugin-clipboard-manager = "2.2.1"
tauri-plugin-opener = "2.2.6"
-serde = { version = "1", features = ["derive"] }
+serde = { workspace = true }
serde_json = "1.0.111"
specta.workspace = true
specta-typescript = "0.0.7"
@@ -66,11 +64,11 @@ ffmpeg.workspace = true
chrono = { version = "0.4.31", features = ["serde"] }
rodio = "0.19.0"
png = "0.17.13"
-device_query = "2.1.0"
+device_query = "4.0.1"
base64 = "0.22.1"
reqwest = { version = "0.12.7", features = ["json", "stream", "multipart"] }
dotenvy_macro = "0.15.7"
-global-hotkey = "0.6.3"
+global-hotkey = "0.7.0"
rand = "0.8.5"
cpal.workspace = true
keyed_priority_queue = "0.4.2"
@@ -80,6 +78,8 @@ whisper-rs = "0.11.0"
lazy_static = "1.4.0"
log = "0.4.20"
+cap-audio = { path = "../../../crates/audio" }
+cap-camera = { path = "../../../crates/camera", features = ["serde", "specta"] }
cap-utils = { path = "../../../crates/utils" }
cap-project = { path = "../../../crates/project" }
cap-rendering = { path = "../../../crates/rendering" }
@@ -88,7 +88,6 @@ cap-media = { path = "../../../crates/media" }
cap-flags = { path = "../../../crates/flags" }
cap-recording = { path = "../../../crates/recording" }
cap-export = { path = "../../../crates/export" }
-cap-audio = { path = "../../../crates/audio" }
flume.workspace = true
tracing-subscriber = "0.3.19"
tracing-appender = "0.2.3"
@@ -113,6 +112,7 @@ cocoa = "0.26.0"
objc = "0.2.7"
swift-rs = "1.0.6"
tauri-nspanel = { git = "https://github.com/ahkohd/tauri-nspanel", branch = "v2" }
+cidre = { workspace = true }
[target.'cfg(target_os= "windows")'.dependencies]
windows = { workspace = true, features = [
@@ -125,11 +125,3 @@ windows-sys = { workspace = true }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29.0", features = ["fs"] }
-
-# Optimize for smaller binary size
-[profile.release]
-panic = "abort" # Strip expensive panic clean-up logic
-codegen-units = 1 # Compile crates one after another so the compiler can optimize better
-lto = true # Enables link to optimizations
-opt-level = "s" # Optimize for binary size
-debug = true
diff --git a/apps/desktop/src-tauri/src/camera.rs b/apps/desktop/src-tauri/src/camera.rs
index dd2a758c2..18788cfda 100644
--- a/apps/desktop/src-tauri/src/camera.rs
+++ b/apps/desktop/src-tauri/src/camera.rs
@@ -498,13 +498,33 @@ impl Renderer {
cache: None,
});
+ let surface_capabilities = surface.get_capabilities(&adapter);
+ let alpha_mode = if surface_capabilities
+ .alpha_modes
+ .contains(&CompositeAlphaMode::PreMultiplied)
+ {
+ CompositeAlphaMode::PreMultiplied
+ } else if surface_capabilities
+ .alpha_modes
+ .contains(&CompositeAlphaMode::PostMultiplied)
+ {
+ CompositeAlphaMode::PostMultiplied
+ } else if surface_capabilities
+ .alpha_modes
+ .contains(&CompositeAlphaMode::PostMultiplied)
+ {
+ CompositeAlphaMode::PostMultiplied
+ } else {
+ CompositeAlphaMode::Inherit
+ };
+
let surface_config = wgpu::SurfaceConfiguration {
usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
format: swapchain_format,
width: size.width,
height: size.height,
present_mode: wgpu::PresentMode::Fifo,
- alpha_mode: CompositeAlphaMode::PostMultiplied,
+ alpha_mode,
view_formats: vec![],
desired_maximum_frame_latency: 2,
};
@@ -693,6 +713,7 @@ impl Renderer {
label: None,
color_attachments: &[Some(wgpu::RenderPassColorAttachment {
view: &surface_view,
+ depth_slice: None,
resolve_target: None, // Some(&surface_view),
ops: wgpu::Operations {
load: wgpu::LoadOp::Clear(wgpu::Color {
diff --git a/apps/desktop/src-tauri/src/camera_legacy.rs b/apps/desktop/src-tauri/src/camera_legacy.rs
new file mode 100644
index 000000000..6b5ad7c95
--- /dev/null
+++ b/apps/desktop/src-tauri/src/camera_legacy.rs
@@ -0,0 +1,70 @@
+use cap_media::{feeds::RawCameraFrame, frame_ws::WSFrame};
+use flume::Sender;
+use tokio_util::sync::CancellationToken;
+
+pub async fn create_camera_preview_ws() -> (Sender<RawCameraFrame>, u16, CancellationToken) {
+ let (camera_tx, mut _camera_rx) = flume::bounded::<RawCameraFrame>(4);
+ let (_camera_tx, camera_rx) = flume::bounded::<WSFrame>(4);
+ std::thread::spawn(move || {
+ use ffmpeg::format::Pixel;
+
+ let mut converter: Option<(Pixel, ffmpeg::software::scaling::Context)> = None;
+
+ while let Ok(raw_frame) = _camera_rx.recv() {
+ let mut frame = raw_frame.frame;
+
+ if frame.format() != Pixel::RGBA || frame.width() > 1280 || frame.height() > 720 {
+ let converter = match &mut converter {
+ Some((format, converter))
+ if *format == frame.format()
+ && converter.input().width == frame.width()
+ && converter.input().height == frame.height() =>
+ {
+ converter
+ }
+ _ => {
+ &mut converter
+ .insert((
+ frame.format(),
+ ffmpeg::software::scaling::Context::get(
+ frame.format(),
+ frame.width(),
+ frame.height(),
+ Pixel::RGBA,
+ 1280,
+ (1280.0 / (frame.width() as f64 / frame.height() as f64))
+ as u32,
+ ffmpeg::software::scaling::flag::Flags::FAST_BILINEAR,
+ )
+ .unwrap(),
+ ))
+ .1
+ }
+ };
+
+ let mut new_frame = ffmpeg::util::frame::Video::new(
+ Pixel::RGBA,
+ converter.output().width,
+ converter.output().height,
+ );
+
+ converter.run(&frame, &mut new_frame).unwrap();
+
+ frame = new_frame;
+ }
+
+ _camera_tx
+ .send(WSFrame {
+ data: frame.data(0).to_vec(),
+ width: frame.width(),
+ height: frame.height(),
+ stride: frame.stride(0) as u32,
+ })
+ .ok();
+ }
+ });
+ // _shutdown needs to be kept alive to keep the camera ws running
+ let (camera_ws_port, _shutdown) = cap_media::frame_ws::create_frame_ws(camera_rx.clone()).await;
+
+ (camera_tx, camera_ws_port, _shutdown)
+}
diff --git a/apps/desktop/src-tauri/src/deeplink_actions.rs b/apps/desktop/src-tauri/src/deeplink_actions.rs
index e3f6fd229..3c50f6d2c 100644
--- a/apps/desktop/src-tauri/src/deeplink_actions.rs
+++ b/apps/desktop/src-tauri/src/deeplink_actions.rs
@@ -18,7 +18,7 @@ pub enum CaptureMode {
pub enum DeepLinkAction {
StartRecording {
capture_mode: CaptureMode,
- camera_label: Option<String>,
+ camera: Option<cap_media::feeds::DeviceOrModelID>,
mic_label: Option<String>,
capture_system_audio: bool,
mode: RecordingMode,
@@ -101,7 +101,7 @@ impl DeepLinkAction {
match self {
DeepLinkAction::StartRecording {
capture_mode,
- camera_label,
+ camera,
mic_label,
capture_system_audio,
mode,
@@ -109,8 +109,7 @@ impl DeepLinkAction {
let state = app.state::<ArcLock<App>>();
let camera_preview = app.state::<CameraPreview>();
- crate::set_camera_input(app.clone(), state.clone(), camera_preview, camera_label)
- .await?;
+ crate::set_camera_input(app.clone(), state.clone(), camera_preview, camera).await?;
crate::set_mic_input(state.clone(), mic_label).await?;
use cap_media::sources::ScreenCaptureTarget;
diff --git a/apps/desktop/src-tauri/src/general_settings.rs b/apps/desktop/src-tauri/src/general_settings.rs
index 73f201c90..fe0e17d33 100644
--- a/apps/desktop/src-tauri/src/general_settings.rs
+++ b/apps/desktop/src-tauri/src/general_settings.rs
@@ -74,6 +74,13 @@ pub struct GeneralSettingsStore {
#[serde(default, alias = "open_editor_after_recording")]
#[deprecated]
_open_editor_after_recording: bool,
+ #[deprecated = "can be removed when native camera preview is ready"]
+ #[serde(default, skip_serializing_if = "yes")]
+ pub enable_native_camera_preview: bool,
+}
+
+fn yes(_: &bool) -> bool {
+ true
}
fn default_server_url() -> String {
@@ -112,6 +119,7 @@ impl Default for GeneralSettingsStore {
server_url: default_server_url(),
recording_countdown: Some(3),
_open_editor_after_recording: false,
+ enable_native_camera_preview: false,
}
}
}
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index 01700d880..a01f49fe4 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -2,6 +2,7 @@ mod audio;
mod audio_meter;
mod auth;
mod camera;
+mod camera_legacy;
mod captions;
mod deeplink_actions;
mod editor_window;
@@ -48,6 +49,7 @@ use scap::capturer::Capturer;
use scap::frame::Frame;
use scap::frame::VideoFrame;
use serde::{Deserialize, Serialize};
+use serde_json::Value;
use serde_json::json;
use specta::Type;
use std::collections::BTreeMap;
@@ -68,6 +70,7 @@ use tauri_plugin_dialog::DialogExt;
use tauri_plugin_notification::{NotificationExt, PermissionState};
use tauri_plugin_opener::OpenerExt;
use tauri_plugin_shell::ShellExt;
+use tauri_plugin_store::StoreExt;
use tauri_specta::Event;
use tokio::sync::mpsc;
use tokio::sync::{Mutex, RwLock};
@@ -85,6 +88,11 @@ use windows::{CapWindowId, ShowCapWindow};
#[derive(specta::Type, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct App {
+ #[serde(skip)]
+ #[deprecated = "can be removed when native camera preview is ready"]
+ camera_tx: flume::Sender<RawCameraFrame>,
+ #[deprecated = "can be removed when native camera preview is ready"]
+ camera_ws_port: u16,
#[serde(skip)]
camera_feed: Option<Arc<Mutex<CameraFeed>>>,
#[serde(skip)]
@@ -201,21 +209,21 @@ async fn set_camera_input(
app_handle: AppHandle,
state: MutableState<'_, App>,
camera_preview: State<'_, CameraPreview>,
- label: Option<String>,
+ id: Option<cap_media::feeds::DeviceOrModelID>,
) -> Result<bool, String> {
let mut app = state.write().await;
- match (&label, app.camera_feed.as_ref()) {
- (Some(label), Some(camera_feed)) => {
+ match (id, app.camera_feed.as_ref()) {
+ (Some(id), Some(camera_feed)) => {
camera_feed
.lock()
.await
- .switch_cameras(label)
+ .switch_cameras(id)
.await
.map_err(|e| e.to_string())?;
Ok(true)
}
- (Some(label), None) => {
+ (Some(id), None) => {
let (shutdown_tx, mut shutdown_rx) = mpsc::channel(1);
if let Some(cancel) = app.camera_feed_initialization.as_ref() {
// Ask currently running setup to abort
@@ -235,15 +243,25 @@ async fn set_camera_input(
win.set_focus().ok();
};
- let (camera_tx, camera_rx) = flume::bounded::<RawCameraFrame>(4);
- camera_preview
- .init_preview_window(window, camera_rx)
- .await
- .unwrap();
+ let camera_tx = if GeneralSettingsStore::get(&app_handle)
+ .ok()
+ .and_then(|v| v.map(|v| v.enable_native_camera_preview))
+ .unwrap_or_default()
+ {
+ let (camera_tx, camera_rx) = flume::bounded::<RawCameraFrame>(4);
+ camera_preview
+ .init_preview_window(window, camera_rx)
+ .await
+ .unwrap();
+ Some(camera_tx)
+ } else {
+ None
+ };
+ let legacy_camera_tx = app.camera_tx.clone();
drop(app);
- let fut = CameraFeed::init(label);
+ let fut = CameraFeed::init(id);
tokio::select! {
result = fut => {
@@ -255,7 +273,11 @@ async fn set_camera_input(
}
if app.camera_feed.is_none() {
- feed.attach(camera_tx);
+ if let Some(camera_tx) = camera_tx {
+ feed.attach(camera_tx);
+ } else {
+ feed.attach(legacy_camera_tx);
+ }
app.camera_feed = Some(Arc::new(Mutex::new(feed)));
return Ok(true);
} else {
@@ -1924,6 +1946,8 @@ pub async fn run(recording_logging_handle: LoggingHandle) {
)
.expect("Failed to export typescript bindings");
+ let (camera_tx, camera_ws_port, _shutdown) = camera_legacy::create_camera_preview_ws().await;
+
let (audio_input_tx, audio_input_rx) = AudioInputFeed::create_channel();
tauri::async_runtime::set(tokio::runtime::Handle::current());
@@ -2010,6 +2034,8 @@ pub async fn run(recording_logging_handle: LoggingHandle) {
{
app.manage(Arc::new(RwLock::new(App {
+ camera_tx,
+ camera_ws_port,
handle: app.clone(),
camera_feed: None,
camera_feed_initialization: None,
diff --git a/apps/desktop/src-tauri/src/permissions.rs b/apps/desktop/src-tauri/src/permissions.rs
index 572fbea99..bb1c50810 100644
--- a/apps/desktop/src-tauri/src/permissions.rs
+++ b/apps/desktop/src-tauri/src/permissions.rs
@@ -1,5 +1,8 @@
use serde::{Deserialize, Serialize};
+#[cfg(target_os = "macos")]
+use cidre::av;
+
#[cfg(target_os = "macos")]
#[link(name = "ApplicationServices", kind = "framework")]
unsafe extern "C" {
@@ -58,33 +61,21 @@ pub fn open_permission_settings(permission: OSPermission) {
pub async fn request_permission(permission: OSPermission) {
#[cfg(target_os = "macos")]
{
- use cap_media::platform::AVMediaType;
-
match permission {
OSPermission::ScreenRecording => {
scap::request_permission();
}
- OSPermission::Camera => request_av_permission(AVMediaType::Video),
- OSPermission::Microphone => request_av_permission(AVMediaType::Audio),
+ OSPermission::Camera => {
+ av::CaptureDevice::request_access_for_media_type(av::MediaType::video());
+ }
+ OSPermission::Microphone => {
+ av::CaptureDevice::request_access_for_media_type(av::MediaType::audio());
+ }
OSPermission::Accessibility => request_accessibility_permission(),
}
}
}
-#[cfg(target_os = "macos")]
-fn request_av_permission(media_type: cap_media::platform::AVMediaType) {
- use objc::{runtime::*, *};
- use tauri_nspanel::block::ConcreteBlock;
-
- let callback = move |_: BOOL| {};
- let cls = class!(AVCaptureDevice);
- let objc_fn_block: ConcreteBlock<(BOOL,), (), _> = ConcreteBlock::new(callback);
- let objc_fn_pass = objc_fn_block.copy();
- unsafe {
- let _: () = msg_send![cls, requestAccessForMediaType:media_type.into_ns_str() completionHandler:objc_fn_pass];
- };
-}
-
#[derive(Serialize, Deserialize, Debug, specta::Type)]
#[serde(rename_all = "camelCase")]
pub enum OSPermissionStatus {
@@ -127,18 +118,14 @@ impl OSPermissionsCheck {
pub fn do_permissions_check(initial_check: bool) -> OSPermissionsCheck {
#[cfg(target_os = "macos")]
{
- use cap_media::platform::AVMediaType;
+ use cidre::av::{AuthorizationStatus, CaptureDevice, MediaType};
- fn check_av_permission(media_type: AVMediaType) -> OSPermissionStatus {
- use cap_media::platform::AVAuthorizationStatus;
- use objc::*;
+ fn check_av_permission(media_type: &'static MediaType) -> OSPermissionStatus {
+ let status = CaptureDevice::authorization_status_for_media_type(media_type).unwrap();
- let cls = objc::class!(AVCaptureDevice);
- let status: AVAuthorizationStatus =
- unsafe { msg_send![cls, authorizationStatusForMediaType:media_type.into_ns_str()] };
match status {
- AVAuthorizationStatus::NotDetermined => OSPermissionStatus::Empty,
- AVAuthorizationStatus::Authorized => OSPermissionStatus::Granted,
+ AuthorizationStatus::NotDetermined => OSPermissionStatus::Empty,
+ AuthorizationStatus::Authorized => OSPermissionStatus::Granted,
_ => OSPermissionStatus::Denied,
}
}
@@ -152,8 +139,8 @@ pub fn do_permissions_check(initial_check: bool) -> OSPermissionsCheck {
(false, false) => OSPermissionStatus::Denied,
}
},
- microphone: check_av_permission(AVMediaType::Audio),
- camera: check_av_permission(AVMediaType::Video),
+ microphone: check_av_permission(MediaType::audio()),
+ camera: check_av_permission(MediaType::video()),
accessibility: { check_accessibility_permission() },
}
}
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index f6f6afed0..221fd91eb 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -188,7 +188,7 @@ pub async fn list_capture_windows() -> Vec<CaptureWindow> {
#[tauri::command(async)]
#[specta::specta]
-pub fn list_cameras() -> Vec<String> {
+pub fn list_cameras() -> Vec<cap_camera::CameraInfo> {
CameraFeed::list_cameras()
}
@@ -310,7 +310,9 @@ pub async fn start_recording(
else {
unreachable!();
};
- display_for_window(target.raw_handle).unwrap().0 as u32
+ display_for_window(windows::Win32::Foundation::HWND(target.raw_handle.0))
+ .unwrap()
+ .0 as u32
};
let _ = ShowCapWindow::WindowCaptureOccluder { screen_id: display }
diff --git a/apps/desktop/src-tauri/src/upload.rs b/apps/desktop/src-tauri/src/upload.rs
index 60e59c389..87c966f96 100644
--- a/apps/desktop/src-tauri/src/upload.rs
+++ b/apps/desktop/src-tauri/src/upload.rs
@@ -401,19 +401,12 @@ pub fn build_video_meta(path: &PathBuf) -> Result<S3VideoMeta, String> {
.streams()
.best(ffmpeg::media::Type::Video)
.ok_or_else(|| "Failed to find appropriate video stream in file".to_string())?;
- let audio_stream = input
- .streams()
- .best(ffmpeg::media::Type::Audio)
- .ok_or_else(|| "Failed to find appropriate audio stream in file".to_string())?;
let duration_millis = input.duration() as f64 / 1000.;
let video_codec = ffmpeg::codec::context::Context::from_parameters(video_stream.parameters())
.map_err(|e| format!("Unable to read video codec information: {e}"))?;
- let audio_codec = ffmpeg::codec::context::Context::from_parameters(audio_stream.parameters())
- .map_err(|e| format!("Unable to read audio codec information: {e}"))?;
let video_codec_name = video_codec.id();
- let audio_codec_name = audio_codec.id();
let video = video_codec.decoder().video().unwrap();
let width = video.width();
let height = video.height();
@@ -423,6 +416,16 @@ pub fn build_video_meta(path: &PathBuf) -> Result<S3VideoMeta, String> {
.unwrap_or("-".into());
let bit_rate = video.bit_rate();
+ let audio_codec_name = input
+ .streams()
+ .best(ffmpeg::media::Type::Audio)
+ .map(|audio_stream| {
+ ffmpeg::codec::context::Context::from_parameters(audio_stream.parameters())
+ .map(|c| c.id())
+ .map_err(|e| format!("Unable to read audio codec information: {e}"))
+ })
+ .transpose()?;
+
Ok(S3VideoMeta {
duration: duration_millis.to_string(),
resolution: format!("{}x{}", width, height),
@@ -431,9 +434,9 @@ pub fn build_video_meta(path: &PathBuf) -> Result<S3VideoMeta, String> {
video_codec: format!("{video_codec_name:?}")
.replace("Id::", "")
.to_lowercase(),
- audio_codec: format!("{audio_codec_name:?}")
- .replace("Id::", "")
- .to_lowercase(),
+ audio_codec: audio_codec_name
+ .map(|name| format!("{name:?}").replace("Id::", "").to_lowercase())
+ .unwrap_or_default(),
})
}
diff --git a/apps/desktop/src-tauri/src/web_api.rs b/apps/desktop/src-tauri/src/web_api.rs
index b5da3ef90..2970d903f 100644
--- a/apps/desktop/src-tauri/src/web_api.rs
+++ b/apps/desktop/src-tauri/src/web_api.rs
@@ -1,6 +1,7 @@
use reqwest::StatusCode;
use tauri::{Emitter, Manager, Runtime};
use tauri_specta::Event;
+use tracing::error;
use crate::{
ArcLock,
@@ -64,7 +65,7 @@ impl<T: Manager<R> + Emitter<R>, R: Runtime> ManagerExt<R> for T {
.map_err(|e| e.to_string())?;
if response.status() == StatusCode::UNAUTHORIZED {
- println!("Authentication expired. Please log in again.");
+ error!("Authentication expired. Please log in again.");
AuthenticationInvalid.emit(self).ok();
diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rs
index c17386162..e0f9e3824 100644
--- a/apps/desktop/src-tauri/src/windows.rs
+++ b/apps/desktop/src-tauri/src/windows.rs
@@ -287,6 +287,7 @@ impl ShowCapWindow {
Self::Camera => {
const WINDOW_SIZE: f64 = 230.0 * 2.0;
+ let port = app.state::<Arc<RwLock<App>>>().read().await.camera_ws_port;
let mut window_builder = self
.window_builder(app, "/camera")
.maximized(false)
@@ -302,7 +303,14 @@ impl ShowCapWindow {
- WINDOW_SIZE
- 100.0,
)
- .transparent(true);
+ .initialization_script(&format!(
+ "
+ window.__CAP__ = window.__CAP__ ?? {{}};
+ window.__CAP__.cameraWsPort = {port};
+ ",
+ ))
+ .transparent(true)
+ .visible(false); // We set this true in `CameraWindowState::init_window`
let window = window_builder.build()?;
diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx
index 628fa820e..37010abad 100644
--- a/apps/desktop/src/App.tsx
+++ b/apps/desktop/src/App.tsx
@@ -129,7 +129,7 @@ function createThemeListener(currentWindow: WebviewWindow) {
document.documentElement.classList.toggle(
"dark",
appTheme === "dark" ||
- window.matchMedia("(prefers-color-scheme: dark)").matches
+ window.matchMedia("(prefers-color-scheme: dark)").matches
);
});
}
diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsx
index 76f011803..86e76e952 100644
--- a/apps/desktop/src/routes/(window-chrome)/(main).tsx
+++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx
@@ -35,6 +35,7 @@ import {
listWindows,
} from "~/utils/queries";
import {
+ CameraInfo,
type CaptureScreen,
type CaptureWindow,
commands,
@@ -157,7 +158,14 @@ function Page() {
return win;
},
- cameraLabel: () => cameras.find((c) => c === rawOptions.cameraLabel),
+ cameraID: () =>
+ cameras.find((c) => {
+ const { cameraID } = rawOptions;
+ if (!cameraID) return;
+ if ("ModelID" in cameraID && c.model_id === cameraID.ModelID) return c;
+ if ("DeviceID" in cameraID && c.device_id == cameraID.DeviceID)
+ return c;
+ }),
micName: () => mics.data?.find((name) => name === rawOptions.micName),
target: (): ScreenCaptureTarget => {
switch (rawOptions.captureTarget.variant) {
@@ -210,7 +218,7 @@ function Page() {
const setCamera = createCameraMutation();
onMount(() => {
- if (rawOptions.cameraLabel) setCamera.mutate(rawOptions.cameraLabel);
+ if (rawOptions.cameraID) setCamera.mutate(rawOptions.cameraID);
});
return (
@@ -412,8 +420,13 @@ function Page() {
</div>
<CameraSelect
options={cameras}
- value={options.cameraLabel() ?? null}
- onChange={(v) => setCamera.mutate(v)}
+ value={options.cameraID() ?? null}
+ onChange={(v) => {
+ console.log({ v });
+ if (!v) setCamera.mutate(null);
+ else if (v.model_id) setCamera.mutate({ ModelID: v.model_id });
+ else setCamera.mutate({ DeviceID: v.device_id });
+ }}
/>
<MicrophoneSelect
disabled={mics.isPending}
@@ -674,9 +687,9 @@ const NO_CAMERA = "No Camera";
function CameraSelect(props: {
disabled?: boolean;
- options: string[];
- value: string | null;
- onChange: (cameraLabel: string | null) => void;
+ options: CameraInfo[];
+ value: CameraInfo | null;
+ onChange: (cameraInfo: CameraInfo | null) => void;
}) {
const currentRecording = createCurrentRecordingQuery();
const permissions = createQuery(() => getPermissions);
@@ -686,15 +699,14 @@ function CameraSelect(props: {
permissions?.data?.camera === "granted" ||
permissions?.data?.camera === "notNeeded";
- const onChange = (cameraLabel: string | null) => {
- if (!cameraLabel && permissions?.data?.camera !== "granted")
- return requestPermission("camera");
+ const onChange = (cameraInfo: CameraInfo | null) => {
+ if (!cameraInfo && !permissionGranted()) return requestPermission("camera");
- props.onChange(cameraLabel);
+ props.onChange(cameraInfo);
trackEvent("camera_selected", {
- camera_name: cameraLabel,
- enabled: !!cameraLabel,
+ camera_name: cameraInfo,
+ enabled: !!cameraInfo,
});
};
@@ -713,7 +725,7 @@ function CameraSelect(props: {
PredefinedMenuItem.new({ item: "Separator" }),
...props.options.map((o) =>
CheckMenuItem.new({
- text: o,
+ text: o.display_name,
checked: o === props.value,
action: () => onChange(o),
})
@@ -727,7 +739,7 @@ function CameraSelect(props: {
>
<IconCapCamera class="text-gray-11 size-[1.25rem]" />
<span class="flex-1 text-left truncate">
- {props.value ?? NO_CAMERA}
+ {props.value?.display_name ?? NO_CAMERA}
</span>
<TargetSelectInfoPill
value={props.value}
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
index ca8129bc8..562f08f64 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
@@ -23,6 +23,7 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
hideDockIcon: false,
autoCreateShareableLink: false,
enableNotifications: true,
+ enableNativeCameraPreview: false,
}
);
@@ -58,6 +59,14 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
value={!!settings.customCursorCapture}
onChange={(value) => handleChange("customCursorCapture", value)}
/>
+ <ToggleSetting
+ label="Native camera preview"
+ description="Show the camera preview using a native GPU surface instead of rendering it within the webview. This is not functional on certain Windows systems so your mileage may vary."
+ value={!!settings.enableNativeCameraPreview}
+ onChange={(value) =>
+ handleChange("enableNativeCameraPreview", value)
+ }
+ />
</div>
</div>
</div>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
index 0e6c9a313..262714254 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
@@ -115,6 +115,7 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
hideDockIcon: false,
autoCreateShareableLink: false,
enableNotifications: true,
+ enableNativeCameraPreview: false,
}
);
diff --git a/apps/desktop/src/routes/camera.tsx b/apps/desktop/src/routes/camera.tsx
index a6e007ce0..8933d14b4 100644
--- a/apps/desktop/src/routes/camera.tsx
+++ b/apps/desktop/src/routes/camera.tsx
@@ -4,7 +4,12 @@ import {
type ComponentProps,
createEffect,
createResource,
+ createSignal,
+ on,
+ onCleanup,
+ onMount,
Show,
+ Suspense,
} from "solid-js";
import { createStore } from "solid-js/store";
@@ -14,6 +19,15 @@ import {
useRecordingOptions,
} from "./(window-chrome)/OptionsContext";
import { commands } from "~/utils/tauri";
+import { generalSettingsStore } from "~/store";
+import { createImageDataWS, createLazySignal } from "~/utils/socket";
+import {
+ currentMonitor,
+ getCurrentWindow,
+ LogicalPosition,
+ LogicalSize,
+} from "@tauri-apps/api/window";
+import { cx } from "cva";
namespace CameraWindow {
export type Size = "sm" | "lg";
@@ -28,14 +42,23 @@ namespace CameraWindow {
export default function () {
document.documentElement.classList.toggle("dark", true);
+ const generalSettings = generalSettingsStore.createQuery();
+ const isNativePreviewEnabled =
+ generalSettings.data?.enableNativeCameraPreview || false;
+
return (
<RecordingOptionsProvider>
- <Page />
+ <Show
+ when={isNativePreviewEnabled}
+ fallback={<LegacyCameraPreviewPage />}
+ >
+ <NativeCameraPreviewPage />
+ </Show>
</RecordingOptionsProvider>
);
}
-function Page() {
+function NativeCameraPreviewPage() {
const { rawOptions } = useRecordingOptions();
const [state, setState] = makePersisted(
@@ -121,3 +144,251 @@ function ControlButton(
/>
);
}
+
+// Legacy stuff below
+
+function LegacyCameraPreviewPage() {
+ const { rawOptions } = useRecordingOptions();
+
+ const [state, setState] = makePersisted(
+ createStore<CameraWindow.State>({
+ size: "sm",
+ shape: "round",
+ mirrored: false,
+ }),
+ { name: "cameraWindowState" }
+ );
+
+ const [latestFrame, setLatestFrame] = createLazySignal<{
+ width: number;
+ data: ImageData;
+ } | null>();
+
+ const [frameDimensions, setFrameDimensions] = createSignal<{
+ width: number;
+ height: number;
+ } | null>(null);
+
+ function imageDataHandler(imageData: { width: number; data: ImageData }) {
+ setLatestFrame(imageData);
+
+ const currentDimensions = frameDimensions();
+ if (
+ !currentDimensions ||
+ currentDimensions.width !== imageData.data.width ||
+ currentDimensions.height !== imageData.data.height
+ ) {
+ setFrameDimensions({
+ width: imageData.data.width,
+ height: imageData.data.height,
+ });
+ }
+
+ const ctx = cameraCanvasRef?.getContext("2d");
+ ctx?.putImageData(imageData.data, 0, 0);
+ }
+
+ const { cameraWsPort } = (window as any).__CAP__;
+ const [ws, isConnected] = createImageDataWS(
+ `ws://localhost:${cameraWsPort}`,
+ imageDataHandler
+ );
+
+ const reconnectInterval = setInterval(() => {
+ if (!isConnected()) {
+ console.log("Attempting to reconnect...");
+ ws.close();
+
+ const newWs = createImageDataWS(
+ `ws://localhost:${cameraWsPort}`,
+ imageDataHandler
+ );
+ Object.assign(ws, newWs[0]);
+ }
+ }, 5000);
+
+ onCleanup(() => {
+ clearInterval(reconnectInterval);
+ ws.close();
+ });
+
+ const [windowSize] = createResource(
+ () =>
+ [
+ state.size,
+ state.shape,
+ frameDimensions()?.width,
+ frameDimensions()?.height,
+ ] as const,
+ async ([size, shape, frameWidth, frameHeight]) => {
+ const monitor = await currentMonitor();
+
+ const BAR_HEIGHT = 56;
+ const base = size === "sm" ? 230 : 400;
+ const aspect = frameWidth && frameHeight ? frameWidth / frameHeight : 1;
+ const windowWidth =
+ shape === "full" ? (aspect >= 1 ? base * aspect : base) : base;
+ const windowHeight =
+ shape === "full" ? (aspect >= 1 ? base : base / aspect) : base;
+ const totalHeight = windowHeight + BAR_HEIGHT;
+
+ if (!monitor) return;
+
+ const scalingFactor = monitor.scaleFactor;
+ const width = monitor.size.width / scalingFactor - windowWidth - 100;
+ const height = monitor.size.height / scalingFactor - totalHeight - 100;
+
+ const currentWindow = getCurrentWindow();
+ currentWindow.setSize(new LogicalSize(windowWidth, totalHeight));
+ currentWindow.setPosition(
+ new LogicalPosition(
+ width + monitor.position.toLogical(scalingFactor).x,
+ height + monitor.position.toLogical(scalingFactor).y
+ )
+ );
+
+ return { width, height, size: base, windowWidth, windowHeight };
+ }
+ );
+
+ let cameraCanvasRef: HTMLCanvasElement | undefined;
+
+ const setCamera = createCameraMutation();
+
+ createEffect(
+ on(
+ () => rawOptions.cameraLabel,
+ (label) => {
+ if (label === null) getCurrentWindow().close();
+ },
+ { defer: true }
+ )
+ );
+
+ onMount(() => getCurrentWindow().show());
+
+ return (
+ <div
+ data-tauri-drag-region
+ class="flex relative flex-col w-screen h-screen cursor-move group"
+ style={{ "border-radius": cameraBorderRadius(state) }}
+ >
+ <div class="h-14">
+ <div class="flex flex-row justify-center items-center">
+ <div class="flex flex-row gap-[0.25rem] p-[0.25rem] opacity-0 group-hover:opacity-100 translate-y-2 group-hover:translate-y-0 rounded-xl transition-[opacity,transform] bg-gray-1 border border-white-transparent-20 text-gray-10">
+ <ControlButton onClick={() => setCamera.mutate(null)}>
+ <IconCapCircleX class="size-5.5" />
+ </ControlButton>
+ <ControlButton
+ pressed={state.size === "lg"}
+ onClick={() => {
+ setState("size", (s) => (s === "sm" ? "lg" : "sm"));
+ }}
+ >
+ <IconCapEnlarge class="size-5.5" />
+ </ControlButton>
+ <ControlButton
+ pressed={state.shape !== "round"}
+ onClick={() =>
+ setState("shape", (s) =>
+ s === "round" ? "square" : s === "square" ? "full" : "round"
+ )
+ }
+ >
+ {state.shape === "round" && <IconCapCircle class="size-5.5" />}
+ {state.shape === "square" && <IconCapSquare class="size-5.5" />}
+ {state.shape === "full" && (
+ <IconLucideRectangleHorizontal class="size-5.5" />
+ )}
+ </ControlButton>
+ <ControlButton
+ pressed={state.mirrored}
+ onClick={() => setState("mirrored", (m) => !m)}
+ >
+ <IconCapArrows class="size-5.5" />
+ </ControlButton>
+ </div>
+ </div>
+ </div>
+ <div
+ class={cx(
+ "flex flex-col flex-1 relative overflow-hidden pointer-events-none border-none shadow-lg bg-gray-1 text-gray-12",
+ state.shape === "round" ? "rounded-full" : "rounded-3xl"
+ )}
+ data-tauri-drag-region
+ >
+ <Suspense fallback={<CameraLoadingState />}>
+ <Show when={latestFrame()}>
+ {(latestFrame) => {
+ const style = () => {
+ const aspectRatio =
+ latestFrame().data.width / latestFrame().data.height;
+
+ const base = windowSize.latest?.size ?? 0;
+ const winWidth = windowSize.latest?.windowWidth ?? base;
+ const winHeight = windowSize.latest?.windowHeight ?? base;
+
+ if (state.shape === "full") {
+ return {
+ width: `${winWidth}px`,
+ height: `${winHeight}px`,
+ transform: state.mirrored ? "scaleX(-1)" : "scaleX(1)",
+ };
+ }
+
+ const size = (() => {
+ if (aspectRatio > 1)
+ return {
+ width: base * aspectRatio,
+ height: base,
+ };
+ else
+ return {
+ width: base,
+ height: base * aspectRatio,
+ };
+ })();
+
+ const left = aspectRatio > 1 ? (size.width - base) / 2 : 0;
+ const top = aspectRatio > 1 ? 0 : (base - size.height) / 2;
+
+ return {
+ width: `${size.width}px`,
+ height: `${size.height}px`,
+ left: `-${left}px`,
+ top: `-${top}px`,
+ transform: state.mirrored ? "scaleX(-1)" : "scaleX(1)",
+ };
+ };
+
+ return (
+ <canvas
+ data-tauri-drag-region
+ class={cx("absolute")}
+ style={style()}
+ width={latestFrame().data.width}
+ height={latestFrame().data.height}
+ ref={cameraCanvasRef!}
+ />
+ );
+ }}
+ </Show>
+ </Suspense>
+ </div>
+ </div>
+ );
+}
+
+function CameraLoadingState() {
+ return (
+ <div class="w-full flex-1 flex items-center justify-center">
+ <div class="text-gray-11">Loading camera...</div>
+ </div>
+ );
+}
+
+function cameraBorderRadius(state: CameraWindow.State) {
+ if (state.shape === "round") return "9999px";
+ if (state.size === "sm") return "3rem";
+ return "4rem";
+}
diff --git a/apps/desktop/src/utils/queries.ts b/apps/desktop/src/utils/queries.ts
index 81e6170fa..f0c9fb10f 100644
--- a/apps/desktop/src/utils/queries.ts
+++ b/apps/desktop/src/utils/queries.ts
@@ -13,7 +13,14 @@ import { getCurrentWindow } from "@tauri-apps/api/window";
import { useRecordingOptions } from "~/routes/(window-chrome)/OptionsContext";
import { authStore, generalSettingsStore } from "~/store";
import { createQueryInvalidate } from "./events";
-import { commands, RecordingMode, ScreenCaptureTarget } from "./tauri";
+import {
+ CameraInfo,
+ commands,
+ DeviceOrModelID,
+ ModelIDType,
+ RecordingMode,
+ ScreenCaptureTarget,
+} from "./tauri";
import { orgCustomDomainClient, protectedHeaders } from "./web-api";
export const listWindows = queryOptions({
@@ -54,7 +61,7 @@ const listVideoDevices = queryOptions({
export function createVideoDevicesQuery() {
const query = createQuery(() => listVideoDevices);
- const [videoDevicesStore, setVideoDevices] = createStore<string[]>([]);
+ const [videoDevicesStore, setVideoDevices] = createStore<CameraInfo[]>([]);
createMemo(() => {
setVideoDevices(reconcile(query.data ?? []));
@@ -84,9 +91,11 @@ export function createOptionsQuery() {
createStore<{
captureTarget: ScreenCaptureTarget;
micName: string | null;
- cameraLabel: string | null;
mode: RecordingMode;
captureSystemAudio?: boolean;
+ cameraID?: DeviceOrModelID | null;
+ /** @deprecated */
+ cameraLabel: string | null;
}>({
captureTarget: { variant: "screen", id: 0 },
micName: null,
@@ -136,12 +145,24 @@ export function createLicenseQuery() {
}
export function createCameraMutation() {
- const { setOptions } = useRecordingOptions();
+ const { setOptions, rawOptions } = useRecordingOptions();
const setCameraInput = createMutation(() => ({
- mutationFn: async (label: string | null) => {
- setOptions("cameraLabel", label);
- await commands.setCameraInput(label);
+ mutationFn: async (model: DeviceOrModelID | null) => {
+ const before = rawOptions.cameraID ? { ...rawOptions.cameraID } : null;
+ setOptions("cameraID", reconcile(model));
+ if (model) {
+ await commands.showWindow("Camera");
+ getCurrentWindow().setFocus();
+ }
+
+ await commands.setCameraInput(model).catch(async (e) => {
+ if (JSON.stringify(before) === JSON.stringify(model) || !before) {
+ setOptions("cameraID", null);
+ } else setOptions("cameraID", reconcile(before));
+
+ throw e;
+ });
},
}));
diff --git a/apps/desktop/src/utils/tauri.ts b/apps/desktop/src/utils/tauri.ts
index b516f51b4..dcdbbed2e 100644
--- a/apps/desktop/src/utils/tauri.ts
+++ b/apps/desktop/src/utils/tauri.ts
@@ -8,8 +8,8 @@ export const commands = {
async setMicInput(label: string | null) : Promise<null> {
return await TAURI_INVOKE("set_mic_input", { label });
},
-async setCameraInput(label: string | null) : Promise<boolean> {
- return await TAURI_INVOKE("set_camera_input", { label });
+async setCameraInput(id: DeviceOrModelID | null) : Promise<boolean> {
+ return await TAURI_INVOKE("set_camera_input", { id });
},
async startRecording(inputs: StartRecordingInputs) : Promise<null> {
return await TAURI_INVOKE("start_recording", { inputs });
@@ -29,7 +29,7 @@ async restartRecording() : Promise<null> {
async deleteRecording() : Promise<null> {
return await TAURI_INVOKE("delete_recording");
},
-async listCameras() : Promise<string[]> {
+async listCameras() : Promise<CameraInfo[]> {
return await TAURI_INVOKE("list_cameras");
},
async listCaptureWindows() : Promise<CaptureWindow[]> {
@@ -314,6 +314,7 @@ export type BackgroundConfiguration = { source: BackgroundSource; blur: number;
export type BackgroundSource = { type: "wallpaper"; path: string | null } | { type: "image"; path: string | null } | { type: "color"; value: [number, number, number] } | { type: "gradient"; from: [number, number, number]; to: [number, number, number]; angle?: number }
export type Bounds = { x: number; y: number; width: number; height: number }
export type Camera = { hide: boolean; mirror: boolean; position: CameraPosition; size: number; zoom_size: number | null; rounding?: number; shadow?: number; advanced_shadow?: ShadowConfiguration | null; shape?: CameraShape }
+export type CameraInfo = { device_id: string; model_id: ModelIDType | null; display_name: string }
export type CameraPosition = { x: CameraXPosition; y: CameraYPosition }
export type CameraPreviewShape = "round" | "square" | "full"
export type CameraPreviewSize = "sm" | "lg"
@@ -337,6 +338,7 @@ export type CursorConfiguration = { hide?: boolean; hideWhenIdle: boolean; size:
export type CursorMeta = { imagePath: string; hotspot: XY<number> }
export type CursorType = "pointer" | "circle"
export type Cursors = { [key in string]: string } | { [key in string]: CursorMeta }
+export type DeviceOrModelID = { DeviceID: string } | { ModelID: ModelIDType }
export type DownloadProgress = { progress: number; message: string }
export type EditorStateChanged = { playhead_position: number }
export type ExportCompression = "Minimal" | "Social" | "Web" | "Potato"
@@ -348,7 +350,11 @@ export type GeneralSettingsStore = { instanceId?: string; uploadIndividualFiles?
/**
* @deprecated
*/
-openEditorAfterRecording?: boolean }
+openEditorAfterRecording?: boolean;
+/**
+ * @deprecated can be removed when native camera preview is ready
+ */
+enableNativeCameraPreview: boolean }
export type GifExportSettings = { fps: number; resolution_base: XY<number> }
export type HapticPattern = "Alignment" | "LevelChange" | "Generic"
export type HapticPerformanceTime = "Default" | "Now" | "DrawCompleted"
@@ -359,6 +365,7 @@ export type HotkeysStore = { hotkeys: { [key in HotkeyAction]: Hotkey } }
export type InstantRecordingMeta = { fps: number; sample_rate: number | null }
export type JsonValue<T> = [T]
export type MainWindowRecordingStartBehaviour = "close" | "minimise"
+export type ModelIDType = string
export type Mp4ExportSettings = { fps: number; resolution_base: XY<number>; compression: ExportCompression }
export type MultipleSegment = { display: VideoMeta; camera?: VideoMeta | null; mic?: AudioMeta | null; system_audio?: AudioMeta | null; cursor?: string | null }
export type MultipleSegments = { segments: MultipleSegment[]; cursors: Cursors }
diff --git a/crates/camera-avfoundation/Cargo.toml b/crates/camera-avfoundation/Cargo.toml
index c59f7b897..4f119f302 100644
--- a/crates/camera-avfoundation/Cargo.toml
+++ b/crates/camera-avfoundation/Cargo.toml
@@ -3,7 +3,7 @@ name = "cap-camera-avfoundation"
version = "0.1.0"
edition = "2024"
-[dependencies]
+[target.'cfg(target_os = "macos")'.dependencies]
cidre = { workspace = true }
[lints]
diff --git a/crates/camera-avfoundation/README.md b/crates/camera-avfoundation/README.md
new file mode 100644
index 000000000..5998f361f
--- /dev/null
+++ b/crates/camera-avfoundation/README.md
@@ -0,0 +1,43 @@
+# cap-camera-avfoundation
+
+Ergonomic Rust wrapper around macOS AVFoundation API for camera capture,
+providing safe abstractions while maintaining low-level control.
+Built on top of the cidre framework for Apple platform APIs.
+Aims to mirror how Chromium consumes AVFoundation.
+
+## Purpose
+
+Provides safe access to macOS camera devices through AVFoundation's capture system,
+handling device enumeration, format negotiation, color space management, and callback-based frame delivery.
+
+## Key Features
+
+- **Device Discovery**: `list_video_devices()` for enumerating built-in, external, and desk view cameras
+- **Format Enumeration**: Access to native video formats with frame rate ranges and color space information
+- **Callback-Based Capture**: Delegate pattern for frame delivery via `CallbackOutputDelegate`
+- **Memory Safety**: RAII pixel buffer locking with `ImageBufExt` trait and `BaseAddrLockGuard`
+
+## Core APIs
+
+### Device Management
+
+- `list_video_devices()` - Enumerate available cameras (built-in, external, desk view)
+- Access device metadata via cidre's `av::CaptureDevice` (name, unique ID, formats)
+- Device configuration locking for format setting during capture initialization
+
+### Capture Pipeline
+
+- `CallbackOutputDelegate` - Custom delegate for handling frame callbacks
+- `CallbackOutputDelegateInner::new(callback)` - Create delegate with closure-based frame handler
+- AVFoundation capture session management with input/output configuration
+- Video settings dictionary for pixel format specification
+
+### Frame Processing
+
+- `ImageBufExt::base_addr_lock()` - Safe pixel buffer access with automatic unlock
+- `BaseAddrLockGuard::plane_data(index)` - Extract planar frame data as byte slices
+- Direct access to frame metadata (dimensions, pixel format, presentation timestamp)
+
+## Architecture
+
+Bridges AVFoundation's delegate-based model to Rust's ownership system using closures for frame callbacks, RAII for pixel buffer management, and comprehensive color space handling. The capture pipeline requires careful device configuration locking to prevent format overwrites during session startup.
diff --git a/crates/camera-avfoundation/examples/cli.rs b/crates/camera-avfoundation/examples/cli.rs
index cbbde6087..db2b83f24 100644
--- a/crates/camera-avfoundation/examples/cli.rs
+++ b/crates/camera-avfoundation/examples/cli.rs
@@ -1,17 +1,12 @@
+#![cfg(target_os = "macos")]
+
use cap_camera_avfoundation::{
CallbackOutputDelegate, CallbackOutputDelegateInner, YCbCrMatrix, list_video_devices,
};
-use cidre::{
- av::capture::{VideoDataOutputSampleBufDelegate, VideoDataOutputSampleBufDelegateImpl},
- cv::pixel_buffer::LockFlags,
- *,
-};
-use clap::{Args, Parser, Subcommand};
+use cidre::*;
+use clap::{Parser, Subcommand};
use inquire::Select;
-use std::{
- fmt::Display,
- ops::{Deref, DerefMut},
-};
+use std::{fmt::Display, ops::Deref};
#[derive(Parser)]
struct Cli {
@@ -83,9 +78,9 @@ pub fn main() {
let input = av::capture::DeviceInput::with_device(&selected_device).unwrap();
let queue = dispatch::Queue::new();
- let delegate = CallbackOutputDelegate::with(CallbackOutputDelegateInner::new(Box::new(
- |_output, sample_buf, _connection| {
- let Some(image_buf) = sample_buf.image_buf() else {
+ let delegate =
+ CallbackOutputDelegate::with(CallbackOutputDelegateInner::new(Box::new(|data| {
+ let Some(image_buf) = data.sample_buf.image_buf() else {
return;
};
@@ -104,10 +99,9 @@ pub fn main() {
"New frame: {}x{}, {:.2}pts, {total_bytes} bytes, format={format_fourcc}",
image_buf.width(),
image_buf.height(),
- sample_buf.pts().value as f64 / sample_buf.pts().scale as f64,
+ data.sample_buf.pts().value as f64 / data.sample_buf.pts().scale as f64,
)
- },
- )));
+ })));
let mut output = av::capture::VideoDataOutput::new();
@@ -121,6 +115,10 @@ pub fn main() {
}
s.add_output(&output);
+
+ let mut _lock = selected_device.config_lock().unwrap();
+
+ _lock.set_active_format(&formats[selected_format.index]);
});
output.set_sample_buf_delegate(Some(delegate.as_ref()), Some(&queue));
@@ -147,6 +145,8 @@ pub fn main() {
std::thread::sleep(std::time::Duration::from_secs(10));
session.stop_running();
+
+ std::thread::sleep(std::time::Duration::from_secs(10));
}
struct Format {
@@ -177,7 +177,12 @@ struct CaptureDeviceSelectOption<'a>(&'a av::CaptureDevice, usize);
impl<'a> Display for CaptureDeviceSelectOption<'a> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "{}", self.0.localized_name().to_string())
+ write!(
+ f,
+ "{} ({})",
+ self.0.localized_name().to_string(),
+ self.0.unique_id().to_string()
+ )
}
}
diff --git a/crates/camera-avfoundation/src/lib.rs b/crates/camera-avfoundation/src/lib.rs
index 981cf5af4..5a5c0a1cb 100644
--- a/crates/camera-avfoundation/src/lib.rs
+++ b/crates/camera-avfoundation/src/lib.rs
@@ -1,7 +1,13 @@
-use std::fmt::Display;
+#![cfg(target_os = "macos")]
+
+use std::{
+ fmt::Display,
+ time::{Duration, Instant},
+};
use cidre::{
av::capture::{VideoDataOutputSampleBufDelegate, VideoDataOutputSampleBufDelegateImpl},
+ cv::{PixelBuf, pixel_buffer::LockFlags},
*,
};
@@ -59,18 +65,27 @@ impl TryFrom<&cf::String> for YCbCrMatrix {
}
}
-pub type OutputDelegateCallback =
- Box<dyn FnMut(&av::CaptureOutput, &cm::SampleBuf, &av::CaptureConnection)>;
+pub struct CallbackData<'a> {
+ pub output: &'a av::CaptureOutput,
+ pub sample_buf: &'a cm::SampleBuf,
+ pub connection: &'a av::CaptureConnection,
+ pub capture_begin_time: Instant,
+ pub timestamp: Duration,
+}
+
+pub type OutputDelegateCallback = Box<dyn FnMut(CallbackData)>;
pub struct CallbackOutputDelegateInner {
callback: OutputDelegateCallback,
+ stream_start: Option<(Instant, Duration)>,
}
impl CallbackOutputDelegateInner {
- pub fn new(
- callback: Box<dyn FnMut(&av::CaptureOutput, &cm::SampleBuf, &av::CaptureConnection)>,
- ) -> Self {
- Self { callback }
+ pub fn new(callback: Box<dyn FnMut(CallbackData)>) -> Self {
+ Self {
+ callback,
+ stream_start: None,
+ }
}
}
@@ -87,10 +102,90 @@ impl VideoDataOutputSampleBufDelegateImpl for CallbackOutputDelegate {
extern "C" fn impl_capture_output_did_output_sample_buf_from_connection(
&mut self,
_cmd: Option<&cidre::objc::Sel>,
- _output: &av::CaptureOutput,
+ output: &av::CaptureOutput,
sample_buf: &cm::SampleBuf,
- _connection: &av::CaptureConnection,
+ connection: &av::CaptureConnection,
) {
- (self.inner_mut().callback)(_output, sample_buf, _connection);
+ let pts = sample_buf.pts();
+
+ let capture_begin_time = pts
+ .is_valid()
+ .then(|| mach_time_to_microseconds(cm::Clock::convert_host_time_to_sys_units(pts)));
+ let pres_timestamp = capture_begin_time.unwrap_or(Duration::ZERO);
+
+ let stream_start = self
+ .inner_mut()
+ .stream_start
+ .get_or_insert_with(|| (Instant::now(), pres_timestamp));
+
+ let timestamp = pres_timestamp - stream_start.1;
+
+ let capture_begin_time = stream_start.0 + capture_begin_time.unwrap_or(Duration::ZERO);
+
+ (self.inner_mut().callback)(CallbackData {
+ output,
+ sample_buf,
+ connection,
+ capture_begin_time,
+ timestamp,
+ });
+ }
+}
+
+fn mach_time_to_microseconds(mach_time: u64) -> Duration {
+ let timebase_info = mach::TimeBaseInfo::new();
+ if timebase_info.numer == timebase_info.denom {
+ return Duration::from_nanos(mach_time);
+ }
+ let divisor = timebase_info.denom as u64 * 1000;
+ let mut microseconds = mach_time / divisor;
+
+ let mach_time_remainder = mach_time % divisor;
+
+ microseconds = microseconds
+ .checked_mul(timebase_info.numer as u64)
+ .expect("Multiplication overflow");
+
+ let least_significant_microseconds =
+ (mach_time_remainder * timebase_info.numer as u64) / divisor;
+
+ microseconds = microseconds
+ .checked_add(least_significant_microseconds)
+ .expect("Addition overflow");
+
+ Duration::from_micros(microseconds)
+}
+
+pub trait ImageBufExt {
+ fn base_addr_lock<'a>(
+ &'a mut self,
+ flags: LockFlags,
+ ) -> cidre::os::Result<BaseAddrLockGuard<'a>>;
+}
+
+impl ImageBufExt for PixelBuf {
+ fn base_addr_lock<'a>(
+ &'a mut self,
+ flags: LockFlags,
+ ) -> cidre::os::Result<BaseAddrLockGuard<'a>> {
+ unsafe { self.lock_base_addr(flags) }.result()?;
+
+ Ok(BaseAddrLockGuard(self, flags))
+ }
+}
+
+pub struct BaseAddrLockGuard<'a>(&'a mut PixelBuf, LockFlags);
+
+impl<'a> BaseAddrLockGuard<'a> {
+ pub fn plane_data(&self, index: usize) -> &[u8] {
+ let base_addr = self.0.plane_base_address(index);
+ let plane_size = self.0.plane_bytes_per_row(index);
+ unsafe { std::slice::from_raw_parts(base_addr, plane_size * self.0.plane_height(index)) }
+ }
+}
+
+impl<'a> Drop for BaseAddrLockGuard<'a> {
+ fn drop(&mut self) {
+ let _ = unsafe { self.0.unlock_lock_base_addr(self.1) };
}
}
diff --git a/crates/camera-directshow/Cargo.toml b/crates/camera-directshow/Cargo.toml
index 7833edf5d..6af8de161 100644
--- a/crates/camera-directshow/Cargo.toml
+++ b/crates/camera-directshow/Cargo.toml
@@ -3,7 +3,11 @@ name = "cap-camera-directshow"
version = "0.1.0"
edition = "2024"
-[target.'cfg(target_os= "windows")'.dependencies]
+[dependencies]
+tracing.workspace = true
+thiserror.workspace = true
+
+[target.'cfg(windows)'.dependencies]
windows-core = { version = "0.60" }
windows = { version = "0.60", features = [
"Win32_System_Com",
@@ -14,7 +18,6 @@ windows = { version = "0.60", features = [
"Win32_System_Variant",
"Win32_Media_KernelStreaming",
] }
-tracing.workspace = true
[lints]
workspace = true
@@ -23,3 +26,14 @@ workspace = true
inquire = "0.7.5"
tracing.workspace = true
tracing-subscriber = "0.3.19"
+
+windows-core = { version = "0.60" }
+windows = { version = "0.60", features = [
+ "Win32_System_Com",
+ "Win32_Media_MediaFoundation",
+ "Win32_Media_DirectShow",
+ "Win32_System_Com_StructuredStorage",
+ "Win32_System_Ole",
+ "Win32_System_Variant",
+ "Win32_Media_KernelStreaming",
+] }
diff --git a/crates/camera-directshow/README.md b/crates/camera-directshow/README.md
new file mode 100644
index 000000000..dfaccaed9
--- /dev/null
+++ b/crates/camera-directshow/README.md
@@ -0,0 +1,69 @@
+# cap-camera-directshow
+
+Ergonomic Rust wrapper around Windows DirectShow API for legacy camera capture,
+providing safe abstractions over COM interfaces while maintaining compatibility
+with older camera devices and drivers that don't support Media Foundation.
+Aims to mirror how Chromium consumes DirectShow.
+
+## Purpose
+
+Provides safe access to Windows camera devices through DirectShow's filter graph architecture,
+handling COM initialization, device enumeration through monikers, format negotiation via
+IAMStreamConfig,
+and synchronous frame delivery through custom sink filters.
+
+## Key Features
+
+- **Device Discovery**: `VideoInputDeviceIterator` for enumerating video capture devices via COM monikers
+- **Format Enumeration**: Access to `AM_MEDIA_TYPE` formats and frame rates through `IAMStreamConfig`
+- **Synchronous Capture**: Callback-based frame delivery via custom `SinkFilter` implementation
+- **Memory Safety**: RAII COM object management with automatic cleanup and proper reference counting
+- **Legacy Support**: Compatibility with older cameras that lack Media Foundation support
+- **Video Format Support**: Built-in support for I420, RGB24, YUY2, MJPG, NV12, and other common formats
+
+## Core APIs
+
+### Device Management
+
+- `initialize_directshow()` - Initialize DirectShow COM subsystem
+- `VideoInputDeviceIterator::new()` - Enumerate available cameras via system device enumerator
+- `VideoInputDevice::name()`, `VideoInputDevice::id()`, `VideoInputDevice::model_id()` - Device metadata
+- `VideoInputDevice::media_types()` - Iterator over supported `AMMediaType` formats
+
+### Capture Pipeline
+
+- `VideoInputDevice::start_capturing(format, callback)` - Begin sync capture with specified format
+- `CaptureHandle::stop_capturing()` - Stop capture session and disconnect filter graph
+- `SinkCallback` - Frame processing callback receiving `IMediaSample` and media type
+
+### Format Processing
+
+- `AMMediaType` - Safe wrapper around `AM_MEDIA_TYPE` with automatic memory management
+- `AM_MEDIA_TYPEExt::subtype_str()` - Convert format GUIDs to readable strings
+- `AM_MEDIA_TYPEVideoExt::video_info()` - Access video format details and dimensions
+
+### Filter Graph Extensions
+
+- `IBaseFilterExt::get_pin()` - Find pins by direction, category, and media type
+- `IAMStreamConfigExt::media_types()` - Enumerate supported capture formats
+- `IPinExt::matches_category()` - Pin category matching for capture pin discovery
+
+## Architecture
+
+Bridges DirectShow's COM-based filter graph model to Rust's ownership system using
+custom sink filter implementation, RAII for COM resource management, and comprehensive
+trait extensions for ergonomic API access. Designed for maximum compatibility with
+legacy camera hardware while maintaining memory safety.
+
+## Error Handling
+
+Comprehensive `StartCapturingError` enum covering:
+
+- **NoInputPin** - Sink filter pin creation failures
+- **CreateGraph** - Filter graph builder instantiation errors
+- **ConfigureGraph** - Filter connection and configuration issues
+- **Run** - Media control execution failures
+- **Other** - General DirectShow COM errors
+
+The crate provides robust error propagation while maintaining the callback-based
+architecture required for real-time video capture scenarios.
diff --git a/crates/camera-directshow/examples/cli.rs b/crates/camera-directshow/examples/cli.rs
index accc82541..dd76ecf64 100644
--- a/crates/camera-directshow/examples/cli.rs
+++ b/crates/camera-directshow/examples/cli.rs
@@ -1,15 +1,14 @@
use cap_camera_directshow::*;
-use std::{fmt::Display, ptr::null_mut, time::Duration};
-use tracing::{error, trace};
+use std::{fmt::Display, time::Duration};
+use tracing::error;
use windows::{
Win32::{
Foundation::SIZE,
Media::{DirectShow::*, MediaFoundation::*},
- System::Com::{StructuredStorage::IPropertyBag, *},
+ System::Com::*,
},
core::Interface,
};
-use windows_core::GUID;
fn main() {
tracing_subscriber::fmt::init();
@@ -20,7 +19,7 @@ fn main() {
let devices = VideoInputDeviceIterator::new().unwrap().collect::<Vec<_>>();
let mut devices = devices
- .iter()
+ .into_iter()
.map(VideoDeviceSelectOption)
.collect::<Vec<_>>();
@@ -32,28 +31,89 @@ fn main() {
devices.remove(0)
};
- let moniker = selected.0;
+ let device = selected.0;
- let property_data: IPropertyBag = moniker.BindToStorage(None, None).unwrap();
- let device_name = property_data
- .read(windows_core::w!("FriendlyName"))
- .unwrap();
+ let video_control = device.output_pin().cast::<IAMVideoControl>().ok();
+
+ let formats = device
+ .media_types()
+ .unwrap()
+ .enumerate()
+ .filter_map(|(i, media_type)| {
+ let is_video = media_type.majortype == MEDIATYPE_Video
+ && media_type.formattype == FORMAT_VideoInfo;
+
+ if !is_video {
+ return None;
+ }
+
+ let video_info = &*media_type.video_info();
+
+ let width = video_info.bmiHeader.biWidth;
+ let height = video_info.bmiHeader.biHeight;
+
+ let mut frame_rates = vec![];
+
+ if let Some(video_control) = &video_control {
+ let time_per_frame_list = video_control.time_per_frame_list(
+ device.output_pin(),
+ i as i32,
+ SIZE {
+ cx: width,
+ cy: height,
+ },
+ );
+
+ for time_per_frame in time_per_frame_list {
+ if *time_per_frame <= 0 {
+ return None;
+ }
+ frame_rates.push(10_000_000.0 / *time_per_frame as f64)
+ }
+ }
- let device_path = property_data
- .read(windows_core::w!("DevicePath"))
- .unwrap_or_default();
+ if frame_rates.is_empty() {
+ let frame_rate = 10_000_000.0 / video_info.AvgTimePerFrame as f64;
+ frame_rates.push(frame_rate);
+ }
+
+ frame_rates
+ .iter_mut()
+ .for_each(|v| *v = (*v * 100.0).round() / 100.0);
+
+ // println!(" Frame Rates: {:?}", frame_rates);
- let device_name = device_name.to_os_string().unwrap();
- println!("Info for device '{:?}'", device_name);
+ Some(Format {
+ width,
+ height,
+ media_type,
+ frame_rates,
+ })
+ })
+ .collect::<Vec<_>>();
- let device_path = device_path.to_os_string();
- println!("Path: '{:?}'", device_path);
+ if formats.is_empty() {
+ error!("No formats found");
+ return;
+ }
- let filter: IBaseFilter = moniker.BindToObject(None, None).unwrap();
+ let selected_format = inquire::Select::new("Select a format", formats)
+ .prompt()
+ .unwrap();
- chromium_main(filter);
+ device
+ .start_capturing(
+ &selected_format.media_type,
+ Box::new(|frame| {
+ unsafe { dbg!(frame.sample.GetActualDataLength()) };
+ dbg!(frame.media_type.subtype_str());
+ dbg!(frame.reference_time);
+ dbg!(frame.timestamp);
+ }),
+ )
+ .unwrap();
- return;
+ std::thread::sleep(Duration::from_secs(10));
}
}
@@ -61,7 +121,7 @@ fn main() {
struct Format {
width: i32,
height: i32,
- media_type: AM_MEDIA_TYPE,
+ media_type: AMMediaType,
frame_rates: Vec<f64>,
}
@@ -72,162 +132,21 @@ impl Display for Format {
"{}x{} {} ({:?})",
self.width,
self.height,
- unsafe { self.media_type.subtype_str().unwrap_or("unknown") },
+ unsafe {
+ self.media_type
+ .subtype_str()
+ .map(|v| v.to_string())
+ .unwrap_or(format!("unknown ({:?})", self.media_type.subtype))
+ },
&self.frame_rates
)
}
}
-struct VideoDeviceSelectOption<'a>(&'a VideoInputDevice);
+struct VideoDeviceSelectOption(VideoInputDevice);
-impl<'a> Display for VideoDeviceSelectOption<'a> {
+impl Display for VideoDeviceSelectOption {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self.0.name().unwrap())
}
}
-
-// chromium
-
-unsafe fn chromium_main(capture_filter: IBaseFilter) {
- let output_capture_pin = capture_filter
- .get_pin(PINDIR_OUTPUT, PIN_CATEGORY_CAPTURE, GUID::zeroed())
- .unwrap();
-
- let stream_config = output_capture_pin.cast::<IAMStreamConfig>().unwrap();
- let video_control = output_capture_pin.cast::<IAMVideoControl>().ok();
-
- let mut media_types_iter = stream_config.media_types().unwrap();
-
- // println!("Formats: {}", media_types_iter.count());
-
- let mut formats = Vec::with_capacity(media_types_iter.count() as usize);
-
- while let Some((media_type, i)) = media_types_iter.next() {
- let is_video =
- media_type.majortype == MEDIATYPE_Video && media_type.formattype == FORMAT_VideoInfo;
-
- if !is_video {
- continue;
- }
-
- // println!("Format {i}:");
-
- let video_info = &*media_type.video_info();
-
- let width = video_info.bmiHeader.biWidth;
- let height = video_info.bmiHeader.biHeight;
-
- // println!(" Dimensions: {width}x{height}");
-
- let subtype_str = media_type.subtype_str().unwrap_or("unknown subtype");
-
- // println!(" Pixel Format: {subtype_str}");
-
- let mut frame_rates = vec![];
-
- if let Some(video_control) = &video_control {
- let time_per_frame_list = video_control.time_per_frame_list(
- &output_capture_pin,
- i,
- SIZE {
- cx: width,
- cy: height,
- },
- );
-
- for time_per_frame in time_per_frame_list {
- if *time_per_frame <= 0 {
- continue;
- }
- frame_rates.push(10_000_000.0 / *time_per_frame as f64)
- }
- }
-
- if frame_rates.is_empty() {
- let frame_rate = 10_000_000.0 / video_info.AvgTimePerFrame as f64;
- frame_rates.push(frame_rate);
- }
-
- frame_rates
- .iter_mut()
- .for_each(|v| *v = (*v * 100.0).round() / 100.0);
-
- // println!(" Frame Rates: {:?}", frame_rates);
-
- formats.push(Format {
- width,
- height,
- media_type: media_type.clone(),
- frame_rates,
- })
- }
-
- if formats.is_empty() {
- error!("No formats found");
- return;
- }
-
- let selected_format = inquire::Select::new("Select a format", formats)
- .prompt()
- .unwrap();
-
- stream_config
- .SetFormat(&selected_format.media_type)
- .unwrap();
-
- trace!("creating sink filter");
- let sink_filter = SinkFilter::new(Box::new(|buffer, media_type, time_delta| {
- dbg!(buffer.len());
- dbg!(media_type.subtype_str());
- dbg!(time_delta);
- }));
- trace!("created sink filter");
-
- let input_sink_pin = sink_filter.get_pin(0).unwrap();
-
- trace!("creating graph builder");
- let graph_builder: IGraphBuilder =
- CoCreateInstance(&CLSID_FilterGraph, None, CLSCTX_INPROC_SERVER).unwrap();
- trace!("created graph builder");
- trace!("creating capture graph builder");
- let capture_graph_builder: ICaptureGraphBuilder2 =
- CoCreateInstance(&CLSID_CaptureGraphBuilder2, None, CLSCTX_INPROC_SERVER).unwrap();
- trace!("created capture graph builder");
- trace!("creating media control");
- let media_control = graph_builder.cast::<IMediaControl>().unwrap();
- trace!("created media control");
- trace!("setting capture graph");
- capture_graph_builder
- .SetFiltergraph(&graph_builder)
- .unwrap();
- trace!("set capture graph");
- trace!("adding capture filter");
- graph_builder.AddFilter(&capture_filter, None).unwrap();
- trace!("added capture filter");
- trace!("creating sink filter");
- let sink_filter: IBaseFilter = sink_filter.cast().unwrap();
- trace!("adding sink filter");
- graph_builder.AddFilter(&sink_filter, None).unwrap();
- trace!("added sink filter");
-
- trace!("finding stream config");
- let mut stream_config = null_mut();
- capture_graph_builder
- .FindInterface(
- Some(&PIN_CATEGORY_CAPTURE),
- Some(&MEDIATYPE_Video),
- &capture_filter,
- &IAMStreamConfig::IID,
- &mut stream_config,
- )
- .unwrap();
- trace!("found stream config");
-
- graph_builder
- .ConnectDirect(&output_capture_pin, &input_sink_pin, None)
- .unwrap();
-
- media_control.Run().unwrap();
-
- std::thread::sleep(Duration::from_secs(10));
-}
diff --git a/crates/camera-directshow/src/lib.rs b/crates/camera-directshow/src/lib.rs
index 6a85a4c36..7133ecf78 100644
--- a/crates/camera-directshow/src/lib.rs
+++ b/crates/camera-directshow/src/lib.rs
@@ -1,4 +1,5 @@
#![cfg(windows)]
+#![allow(non_snake_case)]
use std::{
cell::RefCell,
@@ -7,7 +8,7 @@ use std::{
ops::Deref,
os::windows::ffi::OsStringExt,
ptr::{self, null, null_mut},
- time::Duration,
+ time::{Duration, Instant},
};
use tracing::trace;
use windows::{
@@ -230,6 +231,7 @@ impl AM_MEDIA_TYPEExt for AM_MEDIA_TYPE {
t if t == MEDIASUBTYPE_UYVY => "uyvy",
t if t == MEDIASUBTYPE_ARGB32 => "argb32",
t if t == MEDIASUBTYPE_NV12 => "nv12",
+ t if t == MEDIASUBTYPE_YV12 => "yv12",
_ => return None,
})
}
@@ -386,23 +388,33 @@ impl VideoInputDevice {
&self.stream_config
}
- pub fn set_format(&mut self, format: &AMMediaType) -> windows_core::Result<()> {
- unsafe { self.stream_config.SetFormat(&**format) }
+ pub fn output_pin(&self) -> &IPin {
+ &self.output_pin
}
- pub fn run(self, callback: SinkCallback) -> Result<RunHandle, RunError> {
+ pub fn start_capturing(
+ self,
+ format: &AMMediaType,
+ callback: SinkCallback,
+ ) -> Result<CaptureHandle, StartCapturingError> {
unsafe {
- let sink_filter = SinkFilter::new(callback);
+ self.stream_config
+ .SetFormat(&**format)
+ .map_err(StartCapturingError::Other)?;
+
+ let sink_filter = SinkFilter::new(format.clone(), callback);
- let input_sink_pin = sink_filter.get_pin(0).ok_or(RunError::NoInputPin)?;
+ let input_sink_pin = sink_filter
+ .get_pin(0)
+ .ok_or(StartCapturingError::NoInputPin)?;
let graph_builder: IGraphBuilder =
CoCreateInstance(&CLSID_FilterGraph, None, CLSCTX_INPROC_SERVER)
- .map_err(RunError::CreateGraph)?;
+ .map_err(StartCapturingError::CreateGraph)?;
let capture_graph_builder: ICaptureGraphBuilder2 =
CoCreateInstance(&CLSID_CaptureGraphBuilder2, None, CLSCTX_INPROC_SERVER)
- .map_err(RunError::CreateGraph)?;
+ .map_err(StartCapturingError::CreateGraph)?;
let media_control = graph_builder
.cast::<IMediaControl>()
@@ -410,10 +422,10 @@ impl VideoInputDevice {
capture_graph_builder
.SetFiltergraph(&graph_builder)
- .map_err(RunError::ConfigureGraph)?;
+ .map_err(StartCapturingError::ConfigureGraph)?;
graph_builder
.AddFilter(&self.filter, None)
- .map_err(RunError::ConfigureGraph)?;
+ .map_err(StartCapturingError::ConfigureGraph)?;
let sink_filter: IBaseFilter = sink_filter
.cast()
@@ -421,7 +433,7 @@ impl VideoInputDevice {
graph_builder
.AddFilter(&sink_filter, None)
- .map_err(RunError::ConfigureGraph)?;
+ .map_err(StartCapturingError::ConfigureGraph)?;
let mut stream_config = null_mut();
capture_graph_builder
@@ -432,28 +444,57 @@ impl VideoInputDevice {
&IAMStreamConfig::IID,
&mut stream_config,
)
- .map_err(RunError::ConfigureGraph)?;
+ .map_err(StartCapturingError::ConfigureGraph)?;
graph_builder
- .ConnectDirect(&self.output_pin, &input_sink_pin, None)
- .map_err(RunError::ConfigureGraph)?;
+ .Connect(&self.output_pin, &input_sink_pin)
+ .map_err(StartCapturingError::ConfigureGraph)?;
- media_control.Run().map_err(RunError::Run)?;
+ media_control.Run().map_err(StartCapturingError::Run)?;
- Ok(RunHandle { media_control })
+ Ok(CaptureHandle {
+ media_control,
+ graph_builder,
+ output_capture_pin: self.output_pin,
+ input_sink_pin,
+ })
}
}
}
-pub struct RunHandle {
+pub struct CaptureHandle {
media_control: IMediaControl,
+ graph_builder: IGraphBuilder,
+ output_capture_pin: IPin,
+ input_sink_pin: IPin,
+}
+
+impl CaptureHandle {
+ // Chromium: VideoCaptureDeviceWin::StopAndDeallocate
+ pub fn stop_capturing(self) -> windows_core::Result<()> {
+ unsafe { self.media_control.Stop() }?;
+
+ unsafe {
+ let _ = self.graph_builder.Disconnect(&self.output_capture_pin);
+ let _ = self.graph_builder.Disconnect(&self.input_sink_pin);
+ }
+
+ Ok(())
+ }
}
-pub enum RunError {
+#[derive(thiserror::Error, Debug)]
+pub enum StartCapturingError {
+ #[error("No input pin")]
NoInputPin,
+ #[error("CreateGraph: {0}")]
CreateGraph(windows_core::Error),
+ #[error("ConfigureGraph: {0}")]
ConfigureGraph(windows_core::Error),
+ #[error("Run: {0}")]
Run(windows_core::Error),
+ #[error("{0}")]
+ Other(windows_core::Error),
}
impl Deref for VideoInputDevice {
@@ -478,7 +519,7 @@ impl Iterator for VideoMediaTypesIterator<'_> {
}
}
-#[derive(Default)]
+#[derive(Default, Debug)]
pub struct AMMediaType(AM_MEDIA_TYPE);
impl AMMediaType {
@@ -526,15 +567,17 @@ pub struct SinkFilter {
}
impl SinkFilter {
- pub fn new(callback: SinkCallback) -> ComObject<Self> {
+ pub fn new(desired_media_type: AMMediaType, callback: SinkCallback) -> ComObject<Self> {
let this = SinkFilter {
state: RefCell::new(State_Stopped),
owning_graph: RefCell::new(None),
input_pin: SinkInputPin {
- current_media_type: RefCell::new(Default::default()),
- connected_pin: RefCell::new(None),
- owner: RefCell::new(None),
- callback,
+ desired_media_type,
+ callback: RefCell::new(callback),
+ current_media_type: Default::default(),
+ connected_pin: Default::default(),
+ owner: Default::default(),
+ first_ref_time: Default::default(),
}
.into(),
}
@@ -702,14 +745,23 @@ impl<'a> IEnumPins_Impl for PinEnumerator_Impl<'a> {
}
}
-pub type SinkCallback = Box<dyn Fn(&mut [u8], &AMMediaType, Option<Duration>)>;
+pub struct CallbackData<'a> {
+ pub sample: &'a IMediaSample,
+ pub media_type: &'a AMMediaType,
+ pub reference_time: Instant,
+ pub timestamp: Duration,
+}
+
+pub type SinkCallback = Box<dyn FnMut(CallbackData)>;
#[implement(IPin, IMemInputPin)]
struct SinkInputPin {
+ desired_media_type: AMMediaType,
current_media_type: RefCell<AMMediaType>,
connected_pin: RefCell<Option<IPin>>,
owner: RefCell<Option<IBaseFilter>>,
- callback: SinkCallback,
+ callback: RefCell<SinkCallback>,
+ first_ref_time: RefCell<Option<Instant>>,
}
impl SinkInputPin {
@@ -762,9 +814,19 @@ impl IPin_Impl for SinkInputPin_Impl {
pconnector: windows_core::Ref<'_, IPin>,
pmt: *const windows::Win32::Media::MediaFoundation::AM_MEDIA_TYPE,
) -> windows_core::Result<()> {
+ let mut connected_pin = self.connected_pin.borrow_mut();
+ if pmt.is_null() {
+ return E_POINTER.ok();
+ }
+ if connected_pin.is_some() {
+ return VFW_E_ALREADY_CONNECTED.ok();
+ }
+ let Some(pconnector) = pconnector.as_ref() else {
+ return E_POINTER.ok();
+ };
+ *connected_pin = Some(pconnector.clone());
self.current_media_type
.replace(AMMediaType::new(unsafe { &*pmt }));
- self.connected_pin.replace(pconnector.clone());
S_OK.ok()
}
@@ -893,15 +955,6 @@ impl IMemInputPin_Impl for SinkInputPin_Impl {
return Ok(());
};
- let mut ptimestart = 0;
- let mut ptimeend = 0;
- unsafe {
- psample.GetTime(&mut ptimestart, &mut ptimeend).unwrap();
- };
-
- let pts = ptimestart;
- let bytes = unsafe { psample.GetActualDataLength() };
-
unsafe {
if let Ok(new_media_type) = psample.GetMediaType() {
if !new_media_type.is_null() {
@@ -913,37 +966,34 @@ impl IMemInputPin_Impl for SinkInputPin_Impl {
let media_type = self.current_media_type.borrow();
- let format_str = unsafe { media_type.subtype_str() };
-
- let video_info =
- unsafe { &*(media_type.pbFormat as *const _ as *const KS_VIDEOINFOHEADER) };
-
- // println!(
- // "New frame: {}x{}, {pts}pts, {bytes} bytes, {}",
- // video_info.bmiHeader.biWidth,
- // video_info.bmiHeader.biHeight,
- // format_str.unwrap_or("unknown format")
- // );
-
let length = unsafe { psample.GetActualDataLength() };
if length <= 0 {
return S_FALSE.ok();
}
- let ptr = match unsafe { psample.GetPointer() } {
- Ok(ptr) => ptr,
- Err(_) => return S_FALSE.ok(),
- };
-
- let buffer = unsafe { std::slice::from_raw_parts_mut(ptr, length as usize) };
+ if unsafe { psample.GetPointer() }.is_err() {
+ return S_FALSE.ok();
+ }
let mut start_time = 0;
- let time_delta = unsafe { psample.GetTime(&mut start_time, &mut 0) }
+ let mut end_time = 0;
+
+ let mut timestamp = unsafe { psample.GetTime(&mut start_time, &mut end_time) }
.ok()
.map(|_| Duration::from_micros(start_time as u64 / 10));
- (self.callback)(buffer, &*media_type, time_delta);
+ let mut first_ref_time = self.first_ref_time.borrow_mut();
+ let first_ref_time = first_ref_time.get_or_insert(Instant::now());
+
+ let timestamp = timestamp.get_or_insert(Instant::now() - *first_ref_time);
+
+ (self.callback.borrow_mut())(CallbackData {
+ sample: &psample,
+ media_type: &media_type,
+ reference_time: first_ref_time.clone(),
+ timestamp: timestamp.clone(),
+ });
Ok(())
}
@@ -977,8 +1027,10 @@ struct TypeEnumerator<'a> {
impl<'a> TypeEnumerator<'a> {
unsafe fn free_allocated_media_types(allocated: usize, types: *mut *mut AM_MEDIA_TYPE) {
for i in 0..allocated {
- CoTaskMemFree(Some((*(*types.add(i))).pbFormat as *const _));
- CoTaskMemFree(Some(*types.add(i) as *const _));
+ unsafe {
+ CoTaskMemFree(Some((*(*types.add(i))).pbFormat as *const _));
+ CoTaskMemFree(Some(*types.add(i) as *const _));
+ }
}
}
}
@@ -990,52 +1042,43 @@ impl<'a> IEnumMediaTypes_Impl for TypeEnumerator_Impl<'a> {
_ppmediatypes: *mut *mut AM_MEDIA_TYPE,
pcfetched: *mut u32,
) -> windows_core::HRESULT {
- let mut types_fetched = 0;
+ trace!("TypeEnumerator_Impl::Next");
- println!("next");
-
- while types_fetched < cmediatypes {
- unsafe {
- println!("loop");
- let typ = CoTaskMemAlloc(size_of::<AM_MEDIA_TYPE>()).cast::<AM_MEDIA_TYPE>();
- (*typ).cbFormat = size_of::<KS_VIDEOINFOHEADER>() as u32;
- if typ.is_null() {
- return E_OUTOFMEMORY;
- }
-
- let format =
- CoTaskMemAlloc(size_of::<KS_VIDEOINFOHEADER>()).cast::<KS_VIDEOINFOHEADER>();
- if format.is_null() {
- CoTaskMemFree(Some(typ.cast_const().cast()));
- return E_OUTOFMEMORY;
- }
- (*typ).pbFormat = format.cast::<u8>();
-
- if self
- .pin
- .get_valid_media_type(*self.index.borrow(), &mut *typ)
- {
- *_ppmediatypes.add(types_fetched as usize) = typ;
- self.index.replace_with(|v| (*v) + 1);
- types_fetched += 1;
- } else {
- CoTaskMemFree(Some(format.cast_const().cast()));
- CoTaskMemFree(Some(typ.cast_const().cast()));
- break;
- }
+ unsafe {
+ let mut fetched = 0;
+
+ if *self.index.borrow() == 0 && pcfetched.read() > 0 {
+ let desired = &self.pin.desired_media_type.0;
+ *_ppmediatypes = {
+ let typ = CoTaskMemAlloc(size_of::<AM_MEDIA_TYPE>()).cast::<AM_MEDIA_TYPE>();
+ *typ = desired.clone();
+ (*typ).cbFormat = size_of::<KS_VIDEOINFOHEADER>() as u32;
+ if typ.is_null() {
+ return E_OUTOFMEMORY;
+ }
+ let format = CoTaskMemAlloc(size_of::<KS_VIDEOINFOHEADER>())
+ .cast::<KS_VIDEOINFOHEADER>();
+ if format.is_null() {
+ CoTaskMemFree(Some(typ.cast_const().cast()));
+ return E_OUTOFMEMORY;
+ }
+ (*typ).pbFormat = format.cast::<u8>();
+ *format = *desired.pbFormat.cast::<KS_VIDEOINFOHEADER>();
+ typ
+ };
+ fetched = 1;
+ self.index.replace_with(|v| *v + 1);
}
- }
- if !pcfetched.is_null() {
- unsafe {
- *pcfetched = types_fetched;
+ if !pcfetched.is_null() {
+ *pcfetched = fetched;
}
- }
- if types_fetched == cmediatypes {
- S_OK
- } else {
- S_FALSE
+ if fetched == cmediatypes {
+ S_OK
+ } else {
+ S_FALSE
+ }
}
}
@@ -1059,10 +1102,12 @@ unsafe fn copy_media_type(src: &AM_MEDIA_TYPE) -> AM_MEDIA_TYPE {
if src.cbFormat > 0 && !src.pbFormat.is_null() {
let format_size = src.cbFormat as usize;
- let new_format = CoTaskMemAlloc(format_size) as *mut u8;
+ let new_format = unsafe { CoTaskMemAlloc(format_size) as *mut u8 };
if !new_format.is_null() {
- ptr::copy_nonoverlapping(src.pbFormat, new_format, format_size);
+ unsafe {
+ ptr::copy_nonoverlapping(src.pbFormat, new_format, format_size);
+ }
dest.pbFormat = new_format;
}
}
diff --git a/crates/camera-ffmpeg/Cargo.toml b/crates/camera-ffmpeg/Cargo.toml
new file mode 100644
index 000000000..88abdbfb0
--- /dev/null
+++ b/crates/camera-ffmpeg/Cargo.toml
@@ -0,0 +1,24 @@
+[package]
+name = "cap-camera-ffmpeg"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
+ffmpeg = { workspace = true }
+thiserror.workspace = true
+cap-camera = { path = "../camera" }
+
+[target.'cfg(target_os = "macos")'.dependencies]
+cidre = { workspace = true }
+cap-camera-avfoundation = { path = "../camera-avfoundation" }
+
+[target.'cfg(windows)'.dependencies]
+windows = { workspace = true }
+windows-core = { workspace = true }
+cap-camera-windows = { path = "../camera-windows" }
+
+[dev-dependencies]
+inquire = "0.7.5"
+
+[lints]
+workspace = true
diff --git a/crates/camera-ffmpeg/README.md b/crates/camera-ffmpeg/README.md
new file mode 100644
index 000000000..e10912e44
--- /dev/null
+++ b/crates/camera-ffmpeg/README.md
@@ -0,0 +1,39 @@
+# cap-camera-ffmpeg
+
+Cross-platform FFmpeg integration for the cap-camera library that provides seamless conversion between native camera frames and FFmpeg video frames. Enables direct use of camera capture data in FFmpeg-based video processing pipelines without additional memory copies or format conversions.
+
+## Purpose
+
+Bridges the gap between cap-camera's unified camera capture API and FFmpeg's video processing ecosystem. Provides zero-copy conversion from platform-specific camera frames (AVFoundation on macOS, Media Foundation/DirectShow on Windows) to FFmpeg video frames while preserving pixel format fidelity and performance.
+
+## Key Features
+
+- **Zero-Copy Frame Conversion**: Direct memory mapping from camera buffers to FFmpeg frames
+- **Format Preservation**: Maintains pixel format integrity across platform boundaries
+- **Cross-Platform Support**: Consistent conversion interface for macOS and Windows camera backends
+- **Multiple Pixel Format Support**: Handles common camera formats (UYVY422, NV12, YUYV422, YUV420P, ARGB, RGB24/32)
+- **Error Handling**: Comprehensive error reporting for unsupported formats and conversion failures
+- **FFmpeg Integration**: Native FFmpeg video frame output ready for encoding, filtering, or analysis
+
+## Core APIs
+
+### Frame Conversion
+
+- `CapturedFrameExt::to_ffmpeg()` - Convert camera frames to FFmpeg video frames with automatic format detection
+- Platform-specific error handling via `ToFfmpegError` for unsupported formats and native errors
+
+### Supported Formats
+
+**macOS (AVFoundation)**:
+- `2vuy` → UYVY422 (Packed YUV 4:2:2)
+- `420v` → NV12 (Planar YUV 4:2:0 with interleaved UV)
+- `yuvs` → YUYV422 (Packed YUV 4:2:2)
+
+**Windows (Media Foundation/DirectShow)**:
+- YUV420P, NV12, ARGB, RGB24, RGB32, YUYV422, UYVY422
+
+## Architecture
+
+Extends cap-camera's `CapturedFrame` with FFmpeg conversion capabilities through the `CapturedFrameExt` trait. Platform-specific modules handle the native frame format detection and memory layout conversion, while maintaining a unified interface for FFmpeg integration across macOS and Windows camera backends.
+
+The conversion process preserves the original frame's memory layout and copies data efficiently into FFmpeg's expected format, ensuring compatibility with the broader FFmpeg ecosystem for video processing, encoding, and analysis tasks.
\ No newline at end of file
diff --git a/crates/camera-ffmpeg/examples/cli.rs b/crates/camera-ffmpeg/examples/cli.rs
new file mode 100644
index 000000000..b77db4a35
--- /dev/null
+++ b/crates/camera-ffmpeg/examples/cli.rs
@@ -0,0 +1,77 @@
+use std::{fmt::Display, ops::Deref, time::Duration};
+
+use cap_camera::{CameraInfo, Format};
+use cap_camera_ffmpeg::CapturedFrameExt;
+
+fn main() {
+ let cameras = cap_camera::list_cameras()
+ .into_iter()
+ .map(CameraSelectOption)
+ .collect();
+
+ let selected_camera = inquire::Select::new("Select a device", cameras)
+ .prompt()
+ .unwrap();
+
+ let formats = selected_camera
+ .formats()
+ .unwrap()
+ .into_iter()
+ .map(FormatSelectOption)
+ .collect();
+
+ let selected_format = inquire::Select::new("Select a format", formats)
+ .prompt()
+ .unwrap();
+
+ let _handle = selected_camera
+ .start_capturing(selected_format.0, |frame| {
+ let Ok(ff_frame) = frame.to_ffmpeg() else {
+ eprintln!("Failed to convert frame to FFmpeg");
+ return;
+ };
+
+ dbg!(ff_frame.width(), ff_frame.height(), ff_frame.format());
+ })
+ .unwrap();
+
+ std::thread::sleep(Duration::from_secs(5));
+}
+
+pub struct CameraSelectOption(CameraInfo);
+
+impl Display for CameraSelectOption {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{}", self.0.display_name())
+ }
+}
+
+pub struct FormatSelectOption(Format);
+
+impl Display for FormatSelectOption {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(
+ f,
+ "{}x{} {}fps",
+ self.0.width(),
+ self.0.height(),
+ self.0.frame_rate()
+ )
+ }
+}
+
+impl Deref for CameraSelectOption {
+ type Target = CameraInfo;
+
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+
+impl Deref for FormatSelectOption {
+ type Target = Format;
+
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
diff --git a/crates/camera-ffmpeg/src/lib.rs b/crates/camera-ffmpeg/src/lib.rs
new file mode 100644
index 000000000..58b41c4e1
--- /dev/null
+++ b/crates/camera-ffmpeg/src/lib.rs
@@ -0,0 +1,15 @@
+#[cfg(target_os = "macos")]
+mod macos;
+#[cfg(target_os = "macos")]
+pub use macos::*;
+
+#[cfg(windows)]
+mod windows;
+#[cfg(windows)]
+pub use windows::*;
+
+pub trait CapturedFrameExt {
+ /// Creates an ffmpeg video frame from the native frame.
+ /// Only size, format, and data are set.
+ fn to_ffmpeg(&self) -> Result<ffmpeg::frame::Video, ToFfmpegError>;
+}
diff --git a/crates/camera-ffmpeg/src/macos.rs b/crates/camera-ffmpeg/src/macos.rs
new file mode 100644
index 000000000..76a4ec971
--- /dev/null
+++ b/crates/camera-ffmpeg/src/macos.rs
@@ -0,0 +1,121 @@
+use cap_camera::CapturedFrame;
+use cap_camera_avfoundation::ImageBufExt;
+use cidre::*;
+
+use crate::CapturedFrameExt;
+
+#[derive(thiserror::Error, Debug)]
+pub enum ToFfmpegError {
+ #[error("Unsupported media subtype '{0}'")]
+ UnsupportedSubType(String),
+ #[error("{0}")]
+ Native(#[from] cidre::os::Error),
+}
+
+impl CapturedFrameExt for CapturedFrame {
+ fn to_ffmpeg(&self) -> Result<ffmpeg::frame::Video, ToFfmpegError> {
+ let native = self.native().clone();
+
+ let width = native.image_buf().width();
+ let height = native.image_buf().height();
+
+ let format_desc = native.sample_buf().format_desc().unwrap();
+
+ let mut this = native.image_buf().clone();
+
+ let bytes_lock =
+ ImageBufExt::base_addr_lock(this.as_mut(), cv::pixel_buffer::LockFlags::READ_ONLY)?;
+
+ // These are the only formats supported by Chromium, surely we'll be fine
+ let res = match cidre::four_cc_to_str(&mut format_desc.media_sub_type().to_be_bytes()) {
+ "2vuy" => {
+ let mut ff_frame = ffmpeg::frame::Video::new(
+ ffmpeg::format::Pixel::UYVY422,
+ width as u32,
+ height as u32,
+ );
+
+ let src_stride = native.image_buf().plane_bytes_per_row(0);
+ let dest_stride = ff_frame.stride(0);
+
+ let src_bytes = bytes_lock.plane_data(0);
+ let dest_bytes = &mut ff_frame.data_mut(0);
+
+ for y in 0..height {
+ let row_width = width * 2;
+ let src_row = &src_bytes[y * src_stride..y * src_stride + row_width];
+ let dest_row = &mut dest_bytes[y * dest_stride..y * dest_stride + row_width];
+
+ dest_row.copy_from_slice(src_row);
+ }
+
+ ff_frame
+ }
+ "420v" => {
+ let mut ff_frame = ffmpeg::frame::Video::new(
+ ffmpeg::format::Pixel::NV12,
+ width as u32,
+ height as u32,
+ );
+
+ let src_stride = native.image_buf().plane_bytes_per_row(0);
+ let dest_stride = ff_frame.stride(0);
+
+ let src_bytes = bytes_lock.plane_data(0);
+ let dest_bytes = &mut ff_frame.data_mut(0);
+
+ for y in 0..height {
+ let row_width = width;
+ let src_row = &src_bytes[y * src_stride..y * src_stride + row_width];
+ let dest_row = &mut dest_bytes[y * dest_stride..y * dest_stride + row_width];
+
+ dest_row.copy_from_slice(src_row);
+ }
+
+ let src_stride = native.image_buf().plane_bytes_per_row(1);
+ let dest_stride = ff_frame.stride(1);
+
+ let src_bytes = bytes_lock.plane_data(1);
+ let dest_bytes = &mut ff_frame.data_mut(1);
+
+ for y in 0..height / 2 {
+ let row_width = width;
+ let src_row = &src_bytes[y * src_stride..y * src_stride + row_width];
+ let dest_row = &mut dest_bytes[y * dest_stride..y * dest_stride + row_width];
+
+ dest_row.copy_from_slice(src_row);
+ }
+
+ ff_frame
+ }
+ "yuvs" => {
+ let mut ff_frame = ffmpeg::frame::Video::new(
+ ffmpeg::format::Pixel::YUYV422,
+ width as u32,
+ height as u32,
+ );
+
+ let src_stride = native.image_buf().plane_bytes_per_row(0);
+ let dest_stride = ff_frame.stride(0);
+
+ let src_bytes = bytes_lock.plane_data(0);
+ let dest_bytes = &mut ff_frame.data_mut(0);
+
+ for y in 0..height {
+ let row_width = width * 2;
+ let src_row = &src_bytes[y * src_stride..y * src_stride + row_width];
+ let dest_row = &mut dest_bytes[y * dest_stride..y * dest_stride + row_width];
+
+ dest_row.copy_from_slice(src_row);
+ }
+
+ ff_frame
+ }
+ format => {
+ return Err(ToFfmpegError::UnsupportedSubType(format.to_string()));
+ }
+ };
+
+ Ok(res)
+ }
+}
diff --git a/crates/camera-ffmpeg/src/windows.rs b/crates/camera-ffmpeg/src/windows.rs
new file mode 100644
index 000000000..389eeb8e2
--- /dev/null
+++ b/crates/camera-ffmpeg/src/windows.rs
@@ -0,0 +1,158 @@
+use cap_camera::CapturedFrame;
+use cap_camera_windows::PixelFormat;
+use ffmpeg::{format::Pixel, frame::Video as FFVideo};
+
+use crate::CapturedFrameExt;
+
+#[derive(thiserror::Error, Debug)]
+pub enum ToFfmpegError {
+ #[error("FailedToGetBytes: {0}")]
+ FailedToGetBytes(windows_core::Error),
+}
+
+impl CapturedFrameExt for CapturedFrame {
+ fn to_ffmpeg(&self) -> Result<ffmpeg::frame::Video, ToFfmpegError> {
+ let native = self.native();
+ let width = native.width;
+ let height = native.height;
+
+ let bytes = native.bytes().map_err(ToFfmpegError::FailedToGetBytes)?;
+
+ Ok(match native.pixel_format {
+ PixelFormat::YUV420P => {
+ let mut ff_frame = FFVideo::new(Pixel::YUV420P, width as u32, height as u32);
+
+ let stride = ff_frame.stride(0);
+
+ for y in 0..height {
+ let row_width = width;
+ let src_row = &bytes[y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(0)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ let stride = ff_frame.stride(1);
+
+ for y in 0..height / 2 {
+ let row_width = width / 2;
+ let src_row = &bytes[width * height + y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(1)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ let stride = ff_frame.stride(2);
+
+ for y in 0..height / 2 {
+ let row_width = width / 2;
+ let src_row = &bytes[width * height + width * height / 4 + y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(2)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ ff_frame
+ }
+ PixelFormat::NV12 => {
+ let mut ff_frame = FFVideo::new(Pixel::NV12, width as u32, height as u32);
+
+ let stride = ff_frame.stride(0);
+ for y in 0..height {
+ let src_row = &bytes[y * width..];
+ let dest_row = &mut ff_frame.data_mut(0)[y * stride..];
+
+ dest_row[0..width].copy_from_slice(&src_row[0..width]);
+ }
+
+ let stride = ff_frame.stride(1);
+ let src_row = &bytes[width * height..];
+
+ for y in 0..height / 2 {
+ let row_width = width;
+ let src_row = &src_row[y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(1)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ ff_frame
+ }
+ PixelFormat::ARGB => {
+ let mut ff_frame = FFVideo::new(Pixel::ARGB, width as u32, height as u32);
+
+ let stride = ff_frame.stride(0);
+
+ for y in 0..height {
+ let row_width = width * 4;
+ let src_row = &bytes[y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(0)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ ff_frame
+ }
+ PixelFormat::RGB24 => {
+ let mut ff_frame = FFVideo::new(Pixel::RGB24, width as u32, height as u32);
+
+ let stride = ff_frame.stride(0);
+
+ for y in 0..height {
+ let row_width = width * 4;
+ let src_row = &bytes[y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(0)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ ff_frame
+ }
+ PixelFormat::RGB32 => {
+ let mut ff_frame = FFVideo::new(Pixel::RGB32, width as u32, height as u32);
+
+ let stride = ff_frame.stride(0);
+
+ for y in 0..height {
+ let row_width = width * 4;
+ let src_row = &bytes[y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(0)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ ff_frame
+ }
+ PixelFormat::YUYV422 => {
+ let mut ff_frame = FFVideo::new(Pixel::YUYV422, width as u32, height as u32);
+
+ let stride = ff_frame.stride(0);
+
+ for y in 0..height {
+ let row_width = width * 2;
+ let src_row = &bytes[y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(0)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ ff_frame
+ }
+ PixelFormat::UYVY422 => {
+ let mut ff_frame = FFVideo::new(Pixel::UYVY422, width as u32, height as u32);
+
+ let stride = ff_frame.stride(0);
+
+ for y in 0..height {
+ let row_width = width * 2;
+ let src_row = &bytes[y * row_width..];
+ let dest_row = &mut ff_frame.data_mut(0)[y * stride..];
+
+ dest_row[0..row_width].copy_from_slice(&src_row[0..row_width]);
+ }
+
+ ff_frame
+ }
+ })
+ }
+}
diff --git a/crates/camera-mediafoundation/Cargo.toml b/crates/camera-mediafoundation/Cargo.toml
index 74cb0a92b..01ec2e478 100644
--- a/crates/camera-mediafoundation/Cargo.toml
+++ b/crates/camera-mediafoundation/Cargo.toml
@@ -3,15 +3,22 @@ name = "cap-camera-mediafoundation"
version = "0.1.0"
edition = "2024"
-[target.'cfg(target_os= "windows")'.dependencies]
-windows-core = { version = "0.60" }
-windows = { version = "0.60", features = [
+[dependencies]
+tracing.workspace = true
+thiserror.workspace = true
+
+[target.'cfg(windows)'.dependencies]
+windows-core = { workspace = true }
+windows = { workspace = true, features = [
"Win32_Media_MediaFoundation",
"Win32_Media_DirectShow",
"Win32_System_Com",
] }
-tracing.workspace = true
+
+[dev-dependencies]
inquire = "0.7.5"
+windows-core = { workspace = true }
+windows = { workspace = true }
[lints]
workspace = true
diff --git a/crates/camera-mediafoundation/README.md b/crates/camera-mediafoundation/README.md
new file mode 100644
index 000000000..5ada142f0
--- /dev/null
+++ b/crates/camera-mediafoundation/README.md
@@ -0,0 +1,42 @@
+# cap-camera-mediafoundation
+
+Ergonomic Rust wrapper around Windows Media Foundation API for camera capture,
+providing safe abstractions while maintaining low-level control.
+Aims to mirror how Chromium consumes Media Foundation.
+
+## Purpose
+
+Provides safe access to Windows camera devices through Media Foundation's Capture Engine,
+handling COM initialization, device enumeration, format negotiation, and asynchronous frame delivery.
+
+## Key Features
+
+- **Device Discovery**: `DeviceSourcesIterator` for enumerating video capture devices
+- **Format Enumeration**: Access to native media types supported by each device
+- **Asynchronous Capture**: Channel-based frame delivery via `CaptureHandle`
+- **Memory Safety**: RAII buffer locking with `IMFMediaBufferExt` trait
+- **Error Handling**: Comprehensive error types and retry logic for Media Foundation timing issues
+
+## Core APIs
+
+### Device Management
+
+- `initialize_mediafoundation()` - Initialize MF subsystem
+- `DeviceSourcesIterator::new()` - Enumerate available cameras
+- `Device::name()`, `Device::id()`, `Device::model_id()` - Device metadata
+- `Device::formats()` - Iterator over supported `IMFMediaType` formats
+
+### Capture Pipeline
+
+- `Device::start_capturing(format)` - Begin async capture with specified format
+- `CaptureHandle::sample_rx()` - Receive `IMFSample` frames via channel
+- `CaptureHandle::event_rx()` - Receive `CaptureEngineEvent` status updates
+
+### Frame Processing
+
+- `VideoSample::bytes()` - Extract frame data as byte array
+- `IMFMediaBufferExt::lock()` - Safe buffer access with automatic unlock
+
+## Architecture
+
+Bridges Media Foundation's callback-based model to Rust's ownership system using channels for cross-thread communication, RAII for resource management, and comprehensive error handling for production reliability.
diff --git a/crates/camera-mediafoundation/examples/cli.rs b/crates/camera-mediafoundation/examples/cli.rs
index 301839b25..b73b7abf1 100644
--- a/crates/camera-mediafoundation/examples/cli.rs
+++ b/crates/camera-mediafoundation/examples/cli.rs
@@ -6,7 +6,7 @@ use windows::Win32::{Media::MediaFoundation::*, System::Com::CoInitialize};
use windows_core::GUID;
pub fn main() {
- std::thread::spawn(|| unsafe {
+ unsafe {
CoInitialize(None).unwrap();
let device_sources = DeviceSourcesIterator::new().unwrap();
@@ -26,19 +26,13 @@ pub fn main() {
device_list.remove(0)
};
- let Ok(reader) = selected.create_source_reader() else {
- return;
- };
-
- let stream_index = MF_SOURCE_READER_FIRST_VIDEO_STREAM.0 as u32;
-
- let mut formats = reader
- .native_media_types(stream_index)
+ let mut formats = selected
+ .formats()
.unwrap()
.filter_map(|v| VideoFormat::new(v).ok())
.collect::<Vec<_>>();
- let mut selected_format = if formats.len() > 1 {
+ let selected_format = if formats.len() > 1 {
inquire::Select::new("Select a format", formats)
.prompt()
.unwrap()
@@ -46,54 +40,30 @@ pub fn main() {
formats.remove(0)
};
- reader
- .set_current_media_type(
- MF_SOURCE_READER_FIRST_VIDEO_STREAM.0 as u32,
+ let _handle = selected
+ .start_capturing(
&selected_format.inner,
+ Box::new(|data| {
+ let pts = data.sample.GetSampleTime().unwrap();
+ let bytes = data.sample.GetTotalLength().unwrap();
+ // if stream_flags as i32 & MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED.0
+ // == MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED.0
+ // {
+ // selected_format =
+ // VideoFormat::new(reader.GetCurrentMediaType(stream_index).unwrap()).unwrap();
+ // }
+ println!(
+ "New frame: {pts}pts, {bytes} bytes",
+ // selected_format.width,
+ // selected_format.height,
+ // media_subtype_str(&selected_format.subtype).unwrap_or("unknown format")
+ );
+ }),
)
.unwrap();
- reader.SetStreamSelection(stream_index, true).unwrap();
-
- loop {
- let mut imf_sample = None;
- let mut stream_flags = 0;
- let imf_sample = loop {
- reader
- .ReadSample(
- stream_index,
- 0,
- None,
- Some(&mut stream_flags),
- None,
- Some(&mut imf_sample),
- )
- .unwrap();
-
- if let Some(imf_sample) = imf_sample {
- break imf_sample;
- }
- };
-
- let pts = imf_sample.GetSampleTime().unwrap();
- let bytes = imf_sample.GetTotalLength().unwrap();
- if stream_flags as i32 & MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED.0
- == MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED.0
- {
- selected_format =
- VideoFormat::new(reader.GetCurrentMediaType(stream_index).unwrap()).unwrap();
- }
-
- println!(
- "New frame: {}x{}, {pts}pts, {bytes} bytes, {}",
- selected_format.width,
- selected_format.height,
- media_subtype_str(&selected_format.subtype).unwrap_or("unknown format")
- );
- }
- });
-
- std::thread::sleep(Duration::from_secs(10));
+ std::thread::sleep(Duration::from_secs(10));
+ }
}
struct VideoFormat {
diff --git a/crates/camera-mediafoundation/src/lib.rs b/crates/camera-mediafoundation/src/lib.rs
index 647e4a7f8..d76875e4c 100644
--- a/crates/camera-mediafoundation/src/lib.rs
+++ b/crates/camera-mediafoundation/src/lib.rs
@@ -1,4 +1,5 @@
#![cfg(windows)]
+#![allow(non_snake_case)]
use std::{
ffi::OsString,
@@ -6,12 +7,18 @@ use std::{
mem::MaybeUninit,
ops::{Deref, DerefMut},
os::windows::ffi::OsStringExt,
- ptr::null_mut,
+ ptr::{null, null_mut},
slice::from_raw_parts,
+ sync::{Mutex, mpsc::*},
+ time::{Duration, Instant},
};
-use windows::Win32::{Media::MediaFoundation::*, System::Com::CoInitialize};
-use windows_core::PWSTR;
+use windows::Win32::{
+ Foundation::*,
+ Media::MediaFoundation::*,
+ System::Com::{CLSCTX_INPROC_SERVER, CoCreateInstance, CoInitialize},
+};
+use windows_core::{ComObjectInner, GUID, Interface, PWSTR, implement};
pub fn initialize_mediafoundation() -> windows_core::Result<()> {
unsafe { CoInitialize(None) }.ok()?;
@@ -90,7 +97,23 @@ impl Iterator for DeviceSourcesIterator {
#[derive(Clone)]
pub struct Device {
activate: IMFActivate,
- media_source: IMFMediaSource,
+ pub media_source: IMFMediaSource,
+}
+
+#[derive(thiserror::Error, Debug)]
+pub enum StartCapturingError {
+ #[error("CreateEngine: {0}")]
+ CreateEngine(windows_core::Error),
+ #[error("ConfigureEngine: {0}")]
+ ConfigureEngine(windows_core::Error),
+ #[error("InitializeEngine: {0}")]
+ InitializeEngine(windows_core::Error),
+ #[error("ConfigureSource: {0}")]
+ ConfigureSource(windows_core::Error),
+ #[error("ConfigureSink: {0}")]
+ ConfigureSink(windows_core::Error),
+ #[error("StartPreview: {0}")]
+ StartPreview(windows_core::Error),
}
impl Device {
@@ -124,14 +147,210 @@ impl Device {
.and_then(|v| get_device_model_id(&*v.to_string_lossy()))
}
- pub fn create_source_reader(&self) -> windows_core::Result<SourceReader> {
- unsafe {
- MFCreateSourceReaderFromMediaSource(&self.media_source, None)
+ // Returns an iterator of IMFMediaTypes available for this device.
+ // Creates and disposes an IMFSourceReader internally,
+ // so this device must be shut down manually after calling this function.
+ pub fn formats(&self) -> windows_core::Result<impl Iterator<Item = IMFMediaType>> {
+ let mut stream_index = 0;
+
+ let reader = unsafe {
+ let mut attributes = None;
+ MFCreateAttributes(&mut attributes, 1)?;
+ let attributes = attributes.expect("Attribute creation succeeded but still None!");
+ // Media source shuts down on drop if this isn't specified
+ attributes.SetUINT32(&MF_SOURCE_READER_DISCONNECT_MEDIASOURCE_ON_SHUTDOWN, 1)?;
+ MFCreateSourceReaderFromMediaSource(&self.media_source, &attributes)
.map(|inner| SourceReader { inner })
+ }?;
+
+ Ok(std::iter::from_fn(move || {
+ let media_type = unsafe {
+ reader
+ .GetNativeMediaType(MF_SOURCE_READER_FIRST_VIDEO_STREAM.0 as u32, stream_index)
+ }
+ .ok()?;
+
+ stream_index += 1;
+
+ Some(media_type)
+ }))
+ }
+
+ pub fn start_capturing(
+ &self,
+ requested_format: &IMFMediaType,
+ callback: Box<dyn FnMut(CallbackData) + 'static>,
+ ) -> Result<CaptureHandle, StartCapturingError> {
+ unsafe {
+ let capture_engine_factory: IMFCaptureEngineClassFactory = CoCreateInstance(
+ &CLSID_MFCaptureEngineClassFactory,
+ None,
+ CLSCTX_INPROC_SERVER,
+ )
+ .map_err(StartCapturingError::CreateEngine)?;
+
+ let engine: IMFCaptureEngine = capture_engine_factory
+ .CreateInstance(&CLSID_MFCaptureEngine)
+ .map_err(StartCapturingError::CreateEngine)?;
+
+ let (event_tx, event_rx) = channel();
+ let video_callback = VideoCallback {
+ event_tx,
+ sample_callback: Mutex::new(callback),
+ }
+ .into_object();
+
+ let mut attributes = None;
+ MFCreateAttributes(&mut attributes, 1).map_err(StartCapturingError::ConfigureEngine)?;
+ let attributes = attributes.expect("Attribute creation succeeded but still None!");
+ attributes
+ .SetUINT32(&MF_CAPTURE_ENGINE_USE_VIDEO_DEVICE_ONLY, 1)
+ .map_err(StartCapturingError::ConfigureEngine)?;
+
+ println!("Initializing engine...");
+
+ engine
+ .Initialize(
+ &video_callback.to_interface::<IMFCaptureEngineOnEventCallback>(),
+ &attributes,
+ None,
+ &self.media_source,
+ )
+ .map_err(StartCapturingError::InitializeEngine)?;
+
+ let Ok(_) = wait_for_event(&event_rx, CaptureEngineEventVariant::Initialized) else {
+ panic!("Engine initialization failed");
+ };
+
+ println!("Engine initialized.");
+
+ let source = engine
+ .GetSource()
+ .map_err(StartCapturingError::ConfigureSource)?;
+
+ let stream_count = retry_on_invalid_request(|| source.GetDeviceStreamCount())
+ .map_err(StartCapturingError::ConfigureSource)?;
+
+ let mut maybe_format = None;
+
+ for stream_index in 0..stream_count {
+ let Ok(category) =
+ retry_on_invalid_request(|| source.GetDeviceStreamCategory(stream_index))
+ else {
+ continue;
+ };
+
+ if category != MF_CAPTURE_ENGINE_STREAM_CATEGORY_VIDEO_CAPTURE
+ && category != MF_CAPTURE_ENGINE_STREAM_CATEGORY_VIDEO_PREVIEW
+ {
+ continue;
+ }
+
+ let mut media_type_index = 0;
+
+ loop {
+ let mut media_type = None;
+ if let Err(_) = retry_on_invalid_request(|| {
+ source.GetAvailableDeviceMediaType(
+ stream_index,
+ media_type_index,
+ Some(&mut media_type),
+ )
+ }) {
+ break;
+ }
+
+ let media_type = media_type.expect("Failed to get media type");
+
+ media_type_index += 1;
+
+ if media_type.IsEqual(requested_format) == Ok(0b1111) {
+ maybe_format = Some((media_type, stream_index));
+ }
+ }
+ }
+
+ let Some((format, stream_index)) = maybe_format else {
+ return Err(StartCapturingError::ConfigureSource(
+ MF_E_INVALIDREQUEST.ok().unwrap_err(),
+ ));
+ };
+
+ source
+ .SetCurrentDeviceMediaType(stream_index, &format)
+ .map_err(StartCapturingError::ConfigureSource)?;
+
+ let sink = engine
+ .GetSink(MF_CAPTURE_ENGINE_SINK_TYPE_PREVIEW)
+ .map_err(StartCapturingError::ConfigureSink)?;
+ let preview_sink: IMFCapturePreviewSink = sink.cast().expect("CapturePreviewSink");
+ preview_sink
+ .RemoveAllStreams()
+ .map_err(StartCapturingError::ConfigureSink)?;
+
+ let mut preview_stream_index = 0;
+ preview_sink
+ .AddStream(
+ stream_index,
+ Some(&format),
+ None,
+ Some(&mut preview_stream_index),
+ )
+ .map_err(StartCapturingError::ConfigureSink)?;
+ preview_sink
+ .SetSampleCallback(preview_stream_index, Some(&video_callback.into_interface()))
+ .map_err(StartCapturingError::ConfigureSink)?;
+
+ engine
+ .StartPreview()
+ .map_err(StartCapturingError::StartPreview)?;
+
+ wait_for_event(&event_rx, CaptureEngineEventVariant::PreviewStarted)
+ .map_err(|v| StartCapturingError::StartPreview(v.into()))?;
+
+ Ok(CaptureHandle { engine, event_rx })
}
}
}
+fn retry_on_invalid_request<T>(
+ mut cb: impl FnMut() -> windows_core::Result<T>,
+) -> windows_core::Result<T> {
+ let mut retry_count = 0;
+
+ const MAX_RETRIES: u32 = 100;
+ const RETRY_DELAY: Duration = Duration::from_millis(50);
+
+ loop {
+ match cb() {
+ Ok(result) => return Ok(result),
+ Err(e) if e.code() == MF_E_INVALIDREQUEST => {
+ if retry_count >= MAX_RETRIES {
+ return Err(e);
+ }
+ retry_count += 1;
+ std::thread::sleep(RETRY_DELAY);
+ }
+ Err(e) => return Err(e),
+ }
+ }
+}
+
+pub struct CaptureHandle {
+ event_rx: Receiver<CaptureEngineEvent>,
+ engine: IMFCaptureEngine,
+}
+
+impl CaptureHandle {
+ pub fn event_rx(&self) -> &Receiver<CaptureEngineEvent> {
+ &self.event_rx
+ }
+
+ pub fn stop_capturing(self) -> windows_core::Result<()> {
+ unsafe { self.engine.StopPreview() }
+ }
+}
+
impl Deref for Device {
type Target = IMFMediaSource;
@@ -259,7 +478,10 @@ impl Iterator for NativeMediaTypesIterator<'_> {
type Item = IMFMediaType;
fn next(&mut self) -> Option<Self::Item> {
- let ret = unsafe { self.reader.GetNativeMediaType(self.stream_index, self.i) }.ok()?;
+ let Some(ret) = unsafe { self.reader.GetNativeMediaType(self.stream_index, self.i) }.ok()
+ else {
+ return None;
+ };
self.i += 1;
@@ -343,3 +565,137 @@ impl<'a> DerefMut for IMFMediaBufferLock<'a> {
&mut self.bytes
}
}
+
+pub struct CallbackData {
+ pub sample: IMFSample,
+ pub reference_time: Instant,
+ pub timestamp: Duration,
+ pub capture_begin_time: Instant,
+}
+
+#[implement(IMFCaptureEngineOnSampleCallback, IMFCaptureEngineOnEventCallback)]
+struct VideoCallback {
+ event_tx: Sender<CaptureEngineEvent>,
+ sample_callback: Mutex<Box<dyn FnMut(CallbackData)>>,
+}
+
+impl IMFCaptureEngineOnSampleCallback_Impl for VideoCallback_Impl {
+ fn OnSample(&self, psample: windows_core::Ref<'_, IMFSample>) -> windows_core::Result<()> {
+ let Some(sample) = psample.as_ref() else {
+ return Ok(());
+ };
+
+ let Ok(mut callback) = self.sample_callback.lock() else {
+ return Ok(());
+ };
+
+ let reference_time = Instant::now();
+ let mf_time_now = Duration::from_micros(unsafe { MFGetSystemTime() / 10 } as u64);
+
+ let raw_time_stamp = unsafe { sample.GetSampleTime() }.unwrap_or(0);
+ let timestamp = Duration::from_micros((raw_time_stamp / 10) as u64);
+
+ let mut raw_capture_begin_time =
+ unsafe { sample.GetUINT64(&MFSampleExtension_DeviceReferenceSystemTime) }
+ .or_else(
+ // retry, it's what chromium does /shrug
+ |_| unsafe { sample.GetUINT64(&MFSampleExtension_DeviceReferenceSystemTime) },
+ )
+ .unwrap_or(unsafe { MFGetSystemTime() } as u64);
+
+ let capture_begin_time =
+ reference_time + Duration::from_micros(raw_capture_begin_time / 10) - mf_time_now;
+
+ (callback)(CallbackData {
+ sample: sample.clone(),
+ reference_time,
+ timestamp,
+ capture_begin_time,
+ });
+
+ Ok(())
+ }
+}
+
+impl IMFCaptureEngineOnEventCallback_Impl for VideoCallback_Impl {
+ fn OnEvent(&self, pevent: windows_core::Ref<'_, IMFMediaEvent>) -> windows_core::Result<()> {
+ let Some(event) = pevent.as_ref() else {
+ return S_OK.ok();
+ };
+
+ let _ = self.event_tx.send(CaptureEngineEvent(event.clone()));
+
+ Ok(())
+ }
+}
+
+#[derive(Clone, Debug)]
+pub struct CaptureEngineEvent(IMFMediaEvent);
+
+impl CaptureEngineEvent {
+ pub fn variant(&self) -> Option<CaptureEngineEventVariant> {
+ Some(match unsafe { self.0.GetExtendedType() }.ok()? {
+ MF_CAPTURE_ENGINE_ALL_EFFECTS_REMOVED => CaptureEngineEventVariant::AllEffectsRemoved,
+ MF_CAPTURE_ENGINE_CAMERA_STREAM_BLOCKED => {
+ CaptureEngineEventVariant::CameraStreamBlocked
+ }
+ MF_CAPTURE_ENGINE_CAMERA_STREAM_UNBLOCKED => {
+ CaptureEngineEventVariant::CameraStreamUnblocked
+ }
+ MF_CAPTURE_ENGINE_EFFECT_ADDED => CaptureEngineEventVariant::EffectAdded,
+ MF_CAPTURE_ENGINE_EFFECT_REMOVED => CaptureEngineEventVariant::EffectRemoved,
+ MF_CAPTURE_ENGINE_ERROR => CaptureEngineEventVariant::Error,
+ MF_CAPTURE_ENGINE_INITIALIZED => CaptureEngineEventVariant::Initialized,
+ MF_CAPTURE_ENGINE_PHOTO_TAKEN => CaptureEngineEventVariant::PhotoTaken,
+ MF_CAPTURE_ENGINE_PREVIEW_STARTED => CaptureEngineEventVariant::PreviewStarted,
+ MF_CAPTURE_ENGINE_PREVIEW_STOPPED => CaptureEngineEventVariant::PreviewStopped,
+ MF_CAPTURE_ENGINE_RECORD_STARTED => CaptureEngineEventVariant::RecordStarted,
+ MF_CAPTURE_ENGINE_RECORD_STOPPED => CaptureEngineEventVariant::RecordStopped,
+ MF_CAPTURE_ENGINE_OUTPUT_MEDIA_TYPE_SET => {
+ CaptureEngineEventVariant::OutputMediaTypeSet
+ }
+ MF_CAPTURE_SINK_PREPARED => CaptureEngineEventVariant::SinkPrepared,
+ MF_CAPTURE_SOURCE_CURRENT_DEVICE_MEDIA_TYPE_SET => {
+ CaptureEngineEventVariant::SourceCurrentDeviceMediaTypeSet
+ }
+ _ => return None,
+ })
+ }
+}
+
+#[derive(PartialEq, Eq, Debug, Clone, Copy)]
+pub enum CaptureEngineEventVariant {
+ Initialized,
+ Error,
+ PreviewStarted,
+ AllEffectsRemoved,
+ CameraStreamBlocked,
+ CameraStreamUnblocked,
+ EffectAdded,
+ EffectRemoved,
+ PhotoTaken,
+ PreviewStopped,
+ RecordStarted,
+ RecordStopped,
+ SinkPrepared,
+ SourceCurrentDeviceMediaTypeSet,
+ OutputMediaTypeSet,
+}
+
+fn wait_for_event(
+ rx: &Receiver<CaptureEngineEvent>,
+ variant: CaptureEngineEventVariant,
+) -> Result<CaptureEngineEvent, windows_core::HRESULT> {
+ rx.iter()
+ .find_map(|e| match dbg!(e.variant()) {
+ Some(v) if v == variant => Some(Ok(e)),
+ Some(CaptureEngineEventVariant::Error) => {
+ Some(Err(unsafe { e.0.GetStatus() }.unwrap()))
+ }
+ _ => None,
+ })
+ .ok_or(windows_core::HRESULT::from_win32(
+ MF_E_INVALIDREQUEST.0 as u32,
+ ))
+ .and_then(|v| v)
+}
diff --git a/crates/camera-windows/Cargo.toml b/crates/camera-windows/Cargo.toml
index 47b9fad1d..befc53dbe 100644
--- a/crates/camera-windows/Cargo.toml
+++ b/crates/camera-windows/Cargo.toml
@@ -4,18 +4,24 @@ version = "0.1.0"
edition = "2024"
[dependencies]
-ffmpeg = { workspace = true }
thiserror.workspace = true
+inquire = "0.7.5"
+[target.'cfg(windows)'.dependencies]
cap-camera-mediafoundation = { path = "../camera-mediafoundation" }
cap-camera-directshow = { path = "../camera-directshow" }
-[target.'cfg(target_os= "windows")'.dependencies]
-windows = { version = "0.60", features = ["Win32_Media_MediaFoundation"] }
-windows-core = { version = "0.60" }
+windows = { workspace = true }
+windows-core = { workspace = true }
[lints]
workspace = true
[dev-dependencies]
inquire = "0.7.5"
+
+cap-camera-mediafoundation = { path = "../camera-mediafoundation" }
+cap-camera-directshow = { path = "../camera-directshow" }
+
+windows = { workspace = true }
+windows-core = { workspace = true }
diff --git a/crates/camera-windows/README.md b/crates/camera-windows/README.md
new file mode 100644
index 000000000..1a245e216
--- /dev/null
+++ b/crates/camera-windows/README.md
@@ -0,0 +1,47 @@
+# cap-camera-windows
+
+Unified Windows camera capture API that provides a seamless interface across both
+Media Foundation and DirectShow backends.
+Will use Media Foundation where possible, but will also list DirectShow devices if said
+devices aren't available via Media Foundation.
+
+## Purpose
+
+Provides a single, ergonomic API for Windows camera capture that intelligently chooses
+between Media Foundation (modern) and DirectShow (legacy) based on device capabilities
+and format availability. Designed to handle the complexity of Windows camera ecosystem
+where devices may support different APIs with varying feature sets.
+
+## Key Features
+
+- **Unified Device Enumeration**: Single `get_devices()` call returns all available cameras
+- **Intelligent Backend Selection**: Prefers Media Foundation, falls back to DirectShow when needed
+- **Format Deduplication**: Automatically merges formats from both APIs for each device
+- **Virtual Camera Support**: Full compatibility with OBS Virtual Camera and similar tools
+- **Seamless Capture**: Consistent callback interface regardless of underlying API
+- **Memory Safety**: RAII resource management across both backends
+
+## Core APIs
+
+### Device Management
+
+- `get_devices()` - Enumerate all cameras from both Media Foundation and DirectShow
+- `VideoDeviceInfo::name()`, `VideoDeviceInfo::id()`, `VideoDeviceInfo::model_id()` - Device metadata
+- `VideoDeviceInfo::is_mf()` - Check if device uses Media Foundation backend
+- `VideoDeviceInfo::formats()` - Iterator over unified `VideoFormat` objects
+
+### Capture Pipeline
+
+- `VideoDeviceInfo::start_capturing(format, callback)` - Begin capture with unified callback interface
+- `CaptureHandle::stop_capturing()` - Stop capture session and cleanup resources
+- `Frame::bytes()` - Access frame data with automatic buffer management
+
+### Format Processing
+
+- `VideoFormat::width()`, `VideoFormat::height()`, `VideoFormat::frame_rate()` - Format properties
+- `VideoFormat::pixel_format()` - Unified pixel format enum
+- `PixelFormat` - Normalized format representation across ARGB, RGB, YUV420P, NV12, YUYV422, UYVY422
+
+## Architecture
+
+Bridges the gap between Media Foundation's async capture engine and DirectShow's filter graph architecture through a unified device enumeration and capture interface. Implements intelligent backend selection by comparing device names and model IDs to deduplicate devices exposed by both APIs, preferring Media Foundation for performance while ensuring DirectShow compatibility for virtual cameras and legacy hardware.
diff --git a/crates/camera-windows/examples/cli.rs b/crates/camera-windows/examples/cli.rs
index 8a4c8a95b..801dc3f12 100644
--- a/crates/camera-windows/examples/cli.rs
+++ b/crates/camera-windows/examples/cli.rs
@@ -1,4 +1,4 @@
-use std::ops::Deref;
+use std::{ops::Deref, time::Duration};
use cap_camera_windows::*;
@@ -17,11 +17,17 @@ fn main() {
.prompt()
.unwrap();
- for frame in selected_device.0.start_capturing(&format).unwrap() {
- if let Ok(frame) = frame {
- dbg!(frame.bytes.len(), frame.pixel_format);
- }
- }
+ let _handle = selected_device
+ .0
+ .start_capturing(&format.inner, |frame| {
+ let Ok(bytes) = frame.bytes() else {
+ return;
+ };
+ dbg!(bytes.len(), frame.pixel_format);
+ })
+ .unwrap();
+
+ std::thread::sleep(Duration::from_secs(10));
}
pub struct DeviceSelection(pub VideoDeviceInfo);
@@ -43,7 +49,7 @@ impl std::fmt::Display for DeviceSelection {
&match self.0.is_mf() {
true => "Media Foundation",
false => "DirectShow",
- }
+ },
)
}
}
diff --git a/crates/camera-windows/src/lib.rs b/crates/camera-windows/src/lib.rs
index 7c74dfcd2..73a683224 100644
--- a/crates/camera-windows/src/lib.rs
+++ b/crates/camera-windows/src/lib.rs
@@ -1,16 +1,15 @@
#![cfg(windows)]
-use cap_camera_directshow::{AM_MEDIA_TYPEExt, AM_MEDIA_TYPEVideoExt, AMMediaType, SinkFilter};
-use cap_camera_mediafoundation::{IMFMediaBufferExt, SourceReader};
-use ffmpeg::format::Pixel;
+use cap_camera_directshow::{AM_MEDIA_TYPEVideoExt, AMMediaType};
+use cap_camera_mediafoundation::{IMFMediaBufferExt, IMFMediaBufferLock};
use std::{
ffi::{OsStr, OsString},
fmt::{Debug, Display},
ops::Deref,
- ptr::null_mut,
- time::Duration,
+ time::{Duration, Instant},
};
-use windows::Win32::Media::{DirectShow::*, MediaFoundation::*};
+
+use windows::Win32::Media::{DirectShow::*, KernelStreaming::*, MediaFoundation::*};
use windows_core::GUID;
#[derive(Clone)]
@@ -18,10 +17,34 @@ pub struct VideoDeviceInfo {
id: OsString,
name: OsString,
model_id: Option<String>,
- formats: Vec<VideoFormat>,
+ // formats: Vec<VideoFormat>,
inner: VideoDeviceInfoInner,
}
+pub enum CaptureHandle {
+ MediaFoundation(cap_camera_mediafoundation::CaptureHandle),
+ DirectShow(cap_camera_directshow::CaptureHandle),
+}
+
+impl CaptureHandle {
+ pub fn stop_capturing(self) -> windows_core::Result<()> {
+ match self {
+ CaptureHandle::MediaFoundation(handle) => handle.stop_capturing(),
+ CaptureHandle::DirectShow(handle) => handle.stop_capturing(),
+ }
+ }
+}
+
+#[derive(thiserror::Error, Debug)]
+pub enum StartCapturingError {
+ #[error("{0}")]
+ MediaFoundation(#[from] cap_camera_mediafoundation::StartCapturingError),
+ #[error("{0}")]
+ DirectShow(#[from] cap_camera_directshow::StartCapturingError),
+ #[error("Format/{0}")]
+ Format(#[from] VideoFormatError),
+}
+
impl VideoDeviceInfo {
pub fn id(&self) -> &OsStr {
&self.id
@@ -31,8 +54,8 @@ impl VideoDeviceInfo {
&self.name
}
- pub fn formats(&self) -> &Vec<VideoFormat> {
- &self.formats
+ pub fn model_id(&self) -> Option<&str> {
+ self.model_id.as_ref().map(|s| s.as_str())
}
pub fn is_mf(&self) -> bool {
@@ -47,123 +70,179 @@ impl VideoDeviceInfo {
}
}
- pub fn start_capturing<'a>(
+ pub fn start_capturing(
self,
- format: &VideoFormat,
- ) -> windows_core::Result<CaptureIterator> {
- let res = match (self.inner, &format.inner) {
+ format: &VideoFormatInner,
+ mut callback: impl FnMut(Frame) + 'static,
+ ) -> Result<CaptureHandle, StartCapturingError> {
+ let res = match (self.inner, &format) {
(
- VideoDeviceInfoInner::MediaFoundation { device, reader },
+ VideoDeviceInfoInner::MediaFoundation { device },
VideoFormatInner::MediaFoundation(mf_format),
) => {
- let stream_index = MF_SOURCE_READER_FIRST_VIDEO_STREAM.0 as u32;
- let pixel_format = format.pixel_format;
-
- reader
- .set_current_media_type(stream_index, &mf_format)
- .unwrap();
- unsafe {
- reader.SetStreamSelection(stream_index, true).unwrap();
- }
-
- Box::new(std::iter::from_fn(move || {
- let sample = match reader.try_read_sample(stream_index) {
- Ok(v) => v?,
- Err(e) => return Some(Err(e)),
- };
-
- let bytes = match sample.bytes() {
- Ok(v) => v,
- Err(e) => return Some(Err(e)),
- };
-
- Some(Ok(Frame {
- bytes,
- pixel_format: pixel_format,
- }))
- })) as CaptureIterator
+ let format = VideoFormat::new_mf(mf_format.clone())?;
+
+ let handle = device.start_capturing(
+ &mf_format,
+ Box::new(move |data| {
+ let sample = &data.sample;
+ let len = unsafe { sample.GetBufferCount() }.unwrap();
+ for i in 0..len {
+ let Ok(buffer) = (unsafe { sample.GetBufferByIndex(i) }) else {
+ continue;
+ };
+
+ callback(Frame {
+ inner: FrameInner::MediaFoundation(buffer),
+ width: format.width() as usize,
+ height: format.height() as usize,
+ pixel_format: format.pixel_format,
+ timestamp: data.timestamp,
+ reference_time: data.reference_time,
+ capture_begin_time: Some(data.capture_begin_time),
+ })
+ }
+ }),
+ )?;
+
+ CaptureHandle::MediaFoundation(handle)
}
- (
- VideoDeviceInfoInner::DirectShow(mut device),
- VideoFormatInner::DirectShow(format),
- ) => {
- let (tx, rx) = std::sync::mpsc::sync_channel(1);
-
- device.set_format(format)?;
-
- let _ = device.run(Box::new(move |buffer, media_type, time_delta| {
- let Some(format) = DSPixelFormat::new(media_type).map(|v| v.format) else {
- return;
- };
-
- let _ = tx.try_send(Frame {
- bytes: buffer.to_vec(),
- pixel_format: format,
- });
- }));
-
- Box::new(std::iter::from_fn(move || {
- match rx.recv_timeout(Duration::from_secs(5)) {
- Ok(buffer) => Some(Ok(buffer)),
- Err(e) => None,
- }
- })) as CaptureIterator
+ (VideoDeviceInfoInner::DirectShow(device), VideoFormatInner::DirectShow(format)) => {
+ let handle = device.start_capturing(
+ format,
+ Box::new(move |data| {
+ let sample = data.sample;
+ let media_type = data.media_type;
+
+ let video_info = unsafe {
+ &*(media_type.pbFormat as *const _ as *const KS_VIDEOINFOHEADER)
+ };
+
+ let Some(format) = DSPixelFormat::new(&media_type).map(|v| v.format) else {
+ return;
+ };
+
+ callback(Frame {
+ inner: FrameInner::DirectShow(sample.clone()),
+ pixel_format: format,
+ width: video_info.bmiHeader.biWidth as usize,
+ height: video_info.bmiHeader.biHeight as usize,
+ timestamp: data.timestamp,
+ reference_time: data.reference_time,
+ capture_begin_time: None,
+ });
+ }),
+ )?;
+
+ CaptureHandle::DirectShow(handle)
}
_ => todo!(),
};
Ok(res)
}
-}
-type CaptureIterator<'a> = Box<dyn Iterator<Item = windows_core::Result<Frame>> + 'a>;
+ pub fn formats(&self) -> Vec<VideoFormat> {
+ match &self.inner {
+ VideoDeviceInfoInner::MediaFoundation { device } => device
+ .formats()
+ .map(|formats| {
+ formats
+ .filter_map(|t| VideoFormat::new_mf(t).ok())
+ .collect::<Vec<_>>()
+ })
+ .unwrap_or_default(),
+ VideoDeviceInfoInner::DirectShow(device) => device
+ .media_types()
+ .into_iter()
+ .flatten()
+ .filter_map(|media_type| VideoFormat::new_ds(media_type).ok())
+ .collect::<Vec<_>>(),
+ }
+ }
+}
impl Debug for VideoDeviceInfo {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("DeviceInfo")
.field("id", &self.id)
.field("name", &self.name)
- .field("format_count", &self.formats.len())
+ .field("format_count", &self.formats().len())
.field("inner", &self.inner)
.finish()
}
}
+#[derive(Debug)]
pub struct Frame {
- pub bytes: Vec<u8>,
pub pixel_format: PixelFormat,
+ pub width: usize,
+ pub height: usize,
+ pub reference_time: Instant,
+ pub timestamp: Duration,
+ pub capture_begin_time: Option<Instant>,
+ inner: FrameInner,
+}
+
+impl Frame {
+ pub fn bytes<'a>(&'a self) -> windows_core::Result<FrameBytes<'a>> {
+ match &self.inner {
+ FrameInner::DirectShow(sample) => {
+ let length = unsafe { sample.GetActualDataLength() };
+ let ptr = unsafe { sample.GetPointer() }?;
+
+ let slice = unsafe { std::slice::from_raw_parts::<'a>(ptr, length as usize) };
+ Ok(FrameBytes::DirectShow(slice))
+ }
+ FrameInner::MediaFoundation(buffer) => Ok(FrameBytes::MediaFoundation(buffer.lock()?)),
+ }
+ }
+}
+
+pub enum FrameBytes<'a> {
+ DirectShow(&'a [u8]),
+ MediaFoundation(IMFMediaBufferLock<'a>),
+}
+
+impl<'a> Deref for FrameBytes<'a> {
+ type Target = [u8];
+
+ fn deref(&self) -> &Self::Target {
+ match self {
+ FrameBytes::DirectShow(bytes) => bytes,
+ FrameBytes::MediaFoundation(lock) => lock.deref(),
+ }
+ }
+}
+
+#[derive(Debug)]
+pub enum FrameInner {
+ MediaFoundation(IMFMediaBuffer),
+ DirectShow(IMediaSample),
}
#[derive(Debug, Clone, Copy)]
pub enum PixelFormat {
+ /// Packed
ARGB,
+ /// Packed
RGB24,
+ /// Packed
RGB32,
+ /// Planar (3)
YUV420P,
+ /// Planar (2)
+ NV12,
+ /// Packed
YUYV422,
+ /// Packed
UYVY422,
- NV12,
-}
-
-impl PixelFormat {
- pub fn as_ffmpeg(&self) -> ffmpeg::format::Pixel {
- match self {
- PixelFormat::YUV420P => Pixel::YUV420P,
- PixelFormat::RGB24 => Pixel::RGB24,
- PixelFormat::RGB32 => Pixel::RGB32,
- PixelFormat::YUYV422 => Pixel::YUYV422,
- PixelFormat::UYVY422 => Pixel::UYVY422,
- PixelFormat::ARGB => Pixel::ARGB,
- PixelFormat::NV12 => Pixel::NV12,
- }
- }
}
#[derive(Clone)]
enum VideoDeviceInfoInner {
MediaFoundation {
device: cap_camera_mediafoundation::Device,
- reader: cap_camera_mediafoundation::SourceReader,
},
DirectShow(cap_camera_directshow::VideoInputDevice),
}
@@ -177,9 +256,11 @@ impl Debug for VideoDeviceInfoInner {
}
}
-#[derive(Debug)]
+#[derive(Debug, thiserror::Error)]
pub enum GetDevicesError {
+ #[error("MediaFoundation: {0}")]
MFDeviceEnumerationFailed(windows_core::Error),
+ #[error("DirectShow:: {0}")]
DSDeviceEnumerationFailed(windows_core::Error),
}
@@ -194,20 +275,11 @@ pub fn get_devices() -> Result<Vec<VideoDeviceInfo>, GetDevicesError> {
let id = device.id()?;
let model_id = device.model_id();
- let reader = device.create_source_reader()?;
- let stream_index = MF_SOURCE_READER_FIRST_VIDEO_STREAM.0 as u32;
-
- let formats = reader
- .native_media_types(stream_index)?
- .filter_map(|t| VideoFormat::new_mf(t).ok())
- .collect::<Vec<_>>();
-
Ok::<_, windows_core::Error>(VideoDeviceInfo {
name,
id,
model_id,
- formats,
- inner: VideoDeviceInfoInner::MediaFoundation { device, reader },
+ inner: VideoDeviceInfoInner::MediaFoundation { device },
})
})
.filter_map(|result| match result {
@@ -226,18 +298,10 @@ pub fn get_devices() -> Result<Vec<VideoDeviceInfo>, GetDevicesError> {
let name = device.name()?;
let model_id = device.model_id();
- let formats = device
- .media_types()
- .into_iter()
- .flatten()
- .filter_map(|media_type| VideoFormat::new_ds(media_type).ok())
- .collect::<Vec<_>>();
-
Some(VideoDeviceInfo {
name,
id,
model_id,
- formats,
inner: VideoDeviceInfoInner::DirectShow(device),
})
})
@@ -261,7 +325,7 @@ pub fn get_devices() -> Result<Vec<VideoDeviceInfo>, GetDevicesError> {
match mf_device {
Some((i, mf_device)) => {
- if mf_device.formats.len() == 0 {
+ if mf_device.formats().len() == 0 {
devices.push(mf_device.clone());
devices.swap_remove(i);
}
@@ -279,7 +343,25 @@ pub struct VideoFormat {
height: u32,
frame_rate: f32,
pixel_format: PixelFormat,
- inner: VideoFormatInner,
+ pub inner: VideoFormatInner,
+}
+
+impl VideoFormat {
+ pub fn width(&self) -> u32 {
+ self.width
+ }
+
+ pub fn height(&self) -> u32 {
+ self.height
+ }
+
+ pub fn frame_rate(&self) -> f32 {
+ self.frame_rate
+ }
+
+ pub fn pixel_format(&self) -> PixelFormat {
+ self.pixel_format
+ }
}
#[derive(Clone)]
@@ -290,15 +372,10 @@ pub enum VideoFormatInner {
impl Debug for VideoFormatInner {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- f.debug_struct("VideoFormatInner")
- .field(
- "variant",
- &match self {
- VideoFormatInner::MediaFoundation(_) => "MediaFoundation",
- VideoFormatInner::DirectShow(_) => "DirectShow",
- },
- )
- .finish()
+ f.write_str(&match self {
+ VideoFormatInner::MediaFoundation(_) => "MediaFoundation",
+ VideoFormatInner::DirectShow(_) => "DirectShow",
+ })
}
}
diff --git a/crates/camera/Cargo.toml b/crates/camera/Cargo.toml
new file mode 100644
index 000000000..ee40b1d0d
--- /dev/null
+++ b/crates/camera/Cargo.toml
@@ -0,0 +1,24 @@
+[package]
+name = "cap-camera"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
+thiserror.workspace = true
+serde = { workspace = true, optional = true }
+specta = { workspace = true, optional = true }
+
+[target.'cfg(target_os = "macos")'.dependencies]
+cidre = { workspace = true }
+cap-camera-avfoundation = { path = "../camera-avfoundation" }
+
+[target.'cfg(windows)'.dependencies]
+windows = { workspace = true }
+windows-core = { workspace = true }
+cap-camera-windows = { path = "../camera-windows" }
+
+[dev-dependencies]
+inquire = "0.7.5"
+
+[lints]
+workspace = true
diff --git a/crates/camera/README.md b/crates/camera/README.md
new file mode 100644
index 000000000..c5f1fca61
--- /dev/null
+++ b/crates/camera/README.md
@@ -0,0 +1,52 @@
+# cap-camera
+
+Cross-platform camera capture API that provides a unified interface across
+macOS (AVFoundation) and Windows (Media Foundation/DirectShow) backends.
+Offers simple yet low-level access to camera devices with consistent device
+enumeration, format negotiation, and callback-based frame capture.
+
+## Purpose
+
+Provides a single, ergonomic API for camera capture that abstracts platform
+differences while maintaining access to native capabilities. Designed to handle
+the complexity of different camera ecosystems on macOS and Windows through
+platform-specific backends while exposing a consistent Rust interface.
+
+## Key Features
+
+- **Unified Device Enumeration**: Single `list_cameras()` call returns all available cameras across platforms
+- **Cross-Platform Format Support**: Consistent `Format` abstraction over native format representations
+- **Callback-Based Capture**: Platform-agnostic frame delivery via closures
+- **Zero-Copy Frame Access**: Direct access to camera frame buffers without additional memory allocation
+- **Native Backend Access**: Direct access to underlying AVFoundation/Media Foundation objects when needed
+- **Memory Safety**: RAII resource management with automatic cleanup on drop
+- **Chromium-Compatible Device Identification**: Consistent device tracking across sessions on the same platform
+
+## Core APIs
+
+### Device Management
+
+- `list_cameras()` - Enumerate all cameras with unified `CameraInfo` objects
+- `CameraInfo::model_id()`, `CameraInfo::display_name()` - Cross-platform device metadata
+- `CameraInfo::formats()` - Iterator over platform-normalized `Format` objects
+
+### Capture Pipeline
+
+- `CameraInfo::start_capturing(format, callback)` - Begin capture with unified callback interface
+- `RecordingHandle::stop_capturing()` - Stop capture session and cleanup resources
+- `CapturedFrame::native()` - Access platform-specific frame data when needed
+
+### Format Processing
+
+- `Format::width()`, `Format::height()`, `Format::frame_rate()` - Cross-platform format properties
+- `Format::native()` - Direct access to underlying AVFoundation/Media Foundation format objects
+
+## Device Identification (ModelID)
+
+The `ModelID` system provides device identification within each platform, modeled after Chromium's `VideoCaptureDeviceDescriptor::model_id`. It combines vendor ID (VID) and product ID (PID) to create a unique identifier that remains stable across sessions and system reboots on the same platform.
+
+## Architecture
+
+Bridges macOS AVFoundation and Windows Media Foundation/DirectShow through a unified device enumeration and capture interface.
+Platform-specific modules (`macos.rs`, `windows.rs`) handle the underlying capture mechanics and expose them through common traits and callbacks,
+while the main library provides a consistent API surface that abstracts away platform differences without sacrificing access to native functionality when needed.
diff --git a/crates/camera/examples/cli.rs b/crates/camera/examples/cli.rs
new file mode 100644
index 000000000..02622afea
--- /dev/null
+++ b/crates/camera/examples/cli.rs
@@ -0,0 +1,82 @@
+use std::{fmt::Display, ops::Deref, time::Duration};
+
+use cap_camera::{CameraInfo, Format};
+
+fn main() {
+ let cameras: Vec<_> = cap_camera::list_cameras()
+ .into_iter()
+ .map(CameraSelectOption)
+ .collect();
+
+ if cameras.len() < 1 {
+ eprintln!("No cameras found");
+ return;
+ }
+
+ let selected_camera = inquire::Select::new("Select a device", cameras)
+ .prompt()
+ .unwrap();
+
+ let formats = selected_camera
+ .formats()
+ .unwrap()
+ .into_iter()
+ .map(FormatSelectOption)
+ .collect();
+
+ let selected_format = inquire::Select::new("Select a format", formats)
+ .prompt()
+ .unwrap();
+
+ let _handle = selected_camera
+ .start_capturing(selected_format.0, |frame| {
+ dbg!(frame);
+ })
+ .unwrap();
+
+ std::thread::sleep(Duration::from_secs(5));
+}
+
+pub struct CameraSelectOption(CameraInfo);
+
+impl Display for CameraSelectOption {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{}", self.0.display_name())?;
+
+ if let Some(model_id) = self.0.model_id() {
+ write!(f, " (Model ID: {})", model_id)?;
+ }
+
+ Ok(())
+ }
+}
+
+pub struct FormatSelectOption(Format);
+
+impl Display for FormatSelectOption {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(
+ f,
+ "{}x{} {}fps",
+ self.0.width(),
+ self.0.height(),
+ self.0.frame_rate()
+ )
+ }
+}
+
+impl Deref for CameraSelectOption {
+ type Target = CameraInfo;
+
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+
+impl Deref for FormatSelectOption {
+ type Target = Format;
+
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
diff --git a/crates/camera/src/lib.rs b/crates/camera/src/lib.rs
new file mode 100644
index 000000000..3a33dc2bc
--- /dev/null
+++ b/crates/camera/src/lib.rs
@@ -0,0 +1,237 @@
+#![cfg(any(windows, target_os = "macos"))]
+
+use std::{
+ fmt::{Debug, Display},
+ ops::Deref,
+ time::{Duration, Instant},
+};
+
+#[cfg(target_os = "macos")]
+mod macos;
+#[cfg(target_os = "macos")]
+use macos::*;
+
+#[cfg(windows)]
+mod windows;
+#[cfg(windows)]
+use windows::*;
+
+#[derive(Debug, Clone)]
+#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
+#[cfg_attr(feature = "specta", derive(specta::Type))]
+pub struct CameraInfo {
+ device_id: String,
+ model_id: Option<ModelID>,
+ display_name: String,
+}
+
+impl CameraInfo {
+ pub fn device_id(&self) -> &str {
+ &self.device_id
+ }
+
+ pub fn model_id(&self) -> Option<&ModelID> {
+ self.model_id.as_ref()
+ }
+
+ pub fn display_name(&self) -> &str {
+ &self.display_name
+ }
+}
+
+pub fn list_cameras() -> impl Iterator<Item = CameraInfo> {
+ list_cameras_impl()
+}
+
+#[cfg(windows)]
+pub type NativeFormat = cap_camera_windows::VideoFormatInner;
+
+#[derive(Debug, Clone)]
+pub struct FormatInfo {
+ width: u32,
+ height: u32,
+ frame_rate: f32,
+}
+
+impl FormatInfo {
+ pub fn width(&self) -> u32 {
+ self.width
+ }
+
+ pub fn height(&self) -> u32 {
+ self.height
+ }
+
+ pub fn frame_rate(&self) -> f32 {
+ (self.frame_rate * 100.0).round() / 100.0
+ }
+}
+
+#[derive(Clone)]
+pub struct Format {
+ native: NativeFormat,
+ info: FormatInfo,
+}
+
+impl Format {
+ pub fn native(&self) -> &NativeFormat {
+ &self.native
+ }
+}
+
+impl Deref for Format {
+ type Target = FormatInfo;
+
+ fn deref(&self) -> &Self::Target {
+ &self.info
+ }
+}
+
+impl Debug for Format {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.debug_struct("Format")
+ .field("info", &self.info)
+ .field("native", {
+ #[cfg(target_os = "macos")]
+ {
+ &"AVFoundation"
+ }
+ #[cfg(windows)]
+ {
+ use crate::windows::NativeFormat;
+ use cap_camera_windows::VideoFormatInner;
+
+ match &self.native {
+ VideoFormatInner::DirectShow(_) => &"DirectShow",
+ VideoFormatInner::MediaFoundation(_) => &"MediaFoundation",
+ }
+ }
+ })
+ .finish()
+ }
+}
+
+/// A unique identifier for a camera device.
+/// This is modelled after Chromium's VideoCaptureDeviceDescriptor::model_id,
+/// being a combination of the vendor ID and product ID.
+#[derive(Debug, Clone, PartialEq)]
+pub struct ModelID {
+ vid: String,
+ pid: String,
+}
+
+#[cfg_attr(feature = "specta", derive(specta::Type))]
+#[cfg_attr(feature = "specta", specta(remote = ModelID))]
+struct ModelIDType(String);
+
+#[cfg(feature = "serde")]
+impl serde::Serialize for ModelID {
+ fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
+ where
+ S: serde::Serializer,
+ {
+ serializer.collect_str(&format_args!("{}:{}", &self.vid, &self.pid))
+ }
+}
+
+#[cfg(feature = "serde")]
+impl<'de> serde::Deserialize<'de> for ModelID {
+ fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
+ where
+ D: serde::Deserializer<'de>,
+ {
+ let s = String::deserialize(deserializer)?;
+ let (vid, pid) = s.split_once(":").unwrap();
+ Ok(ModelID {
+ vid: vid.to_string(),
+ pid: pid.to_string(),
+ })
+ }
+}
+
+impl TryFrom<String> for ModelID {
+ type Error = ();
+
+ fn try_from(value: String) -> Result<Self, Self::Error> {
+ let (vid, pid) = value.split_once(":").ok_or(())?;
+ Ok(ModelID {
+ vid: vid.to_string(),
+ pid: pid.to_string(),
+ })
+ }
+}
+
+impl Display for ModelID {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{}:{}", &self.vid, &self.pid)
+ }
+}
+
+// Capture
+
+#[derive(thiserror::Error, Debug)]
+pub enum StartCapturingError {
+ #[cfg(windows)]
+ #[error("GetDevicesFailed/{0}")]
+ GetDevicesFailed(#[from] cap_camera_windows::GetDevicesError),
+ #[error("Device not found")]
+ DeviceNotFound,
+ #[cfg(windows)]
+ #[error("{0}")]
+ Inner(#[from] cap_camera_windows::StartCapturingError),
+ #[cfg(target_os = "macos")]
+ #[error("{0}")]
+ Native(#[from] AVFoundationError),
+ #[cfg(windows)]
+ #[error("{0}")]
+ Native(windows_core::Error),
+}
+
+#[derive(Debug)]
+pub struct CapturedFrame {
+ native: NativeCapturedFrame,
+ pub reference_time: Instant,
+ pub timestamp: Duration,
+ pub capture_begin_time: Option<Instant>,
+}
+
+impl CapturedFrame {
+ pub fn native(&self) -> &NativeCapturedFrame {
+ &self.native
+ }
+}
+
+impl CameraInfo {
+ pub fn formats(&self) -> Option<Vec<Format>> {
+ self.formats_impl()
+ }
+
+ pub fn start_capturing(
+ &self,
+ format: Format,
+ callback: impl FnMut(CapturedFrame) + 'static,
+ ) -> Result<RecordingHandle, StartCapturingError> {
+ #[cfg(target_os = "macos")]
+ {
+ Ok(RecordingHandle {
+ native: start_capturing_impl(self, format, Box::new(callback))?,
+ })
+ }
+ #[cfg(windows)]
+ {
+ Ok(RecordingHandle {
+ native: start_capturing_impl(self, format, Box::new(callback))?,
+ })
+ }
+ }
+}
+
+pub struct RecordingHandle {
+ native: NativeRecordingHandle,
+}
+
+impl RecordingHandle {
+ pub fn stop_capturing(self) {
+ let _ = self.native.stop_capturing();
+ }
+}
diff --git a/crates/camera/src/macos.rs b/crates/camera/src/macos.rs
new file mode 100644
index 000000000..289469724
--- /dev/null
+++ b/crates/camera/src/macos.rs
@@ -0,0 +1,209 @@
+use super::*;
+
+use cap_camera_avfoundation::*;
+use cidre::*;
+
+pub(super) fn list_cameras_impl() -> impl Iterator<Item = CameraInfo> {
+ let devices = cap_camera_avfoundation::list_video_devices();
+ devices
+ .iter()
+ .filter_map(|d| {
+ Some(CameraInfo {
+ device_id: d.unique_id().to_string(),
+ model_id: ModelID::from_avfoundation(d),
+ display_name: d.localized_name().to_string(),
+ })
+ })
+ .collect::<Vec<_>>()
+ .into_iter()
+}
+
+impl CameraInfo {
+ pub(super) fn formats_impl(&self) -> Option<Vec<Format>> {
+ let device = find_device(self)?;
+
+ let mut ret = vec![];
+
+ for format in device.formats().iter() {
+ let desc = format.format_desc();
+ let width = desc.dimensions().width as u32;
+ let height = desc.dimensions().height as u32;
+
+ for fr_range in format.video_supported_frame_rate_ranges().iter() {
+ let min = fr_range.min_frame_duration();
+
+ ret.push(Format {
+ native: format.retained(),
+ info: FormatInfo {
+ width,
+ height,
+ frame_rate: min.scale as f32 / min.value as f32,
+ },
+ })
+ }
+ }
+
+ Some(ret)
+ }
+}
+
+impl ModelID {
+ fn from_avfoundation(device: &cidre::av::capture::Device) -> Option<Self> {
+ let unique_id = device.unique_id().to_string();
+ if unique_id.len() < 8 {
+ return None;
+ }
+
+ let vid = unique_id[unique_id.len() - 2 * 4..unique_id.len() - 4].to_string();
+ let pid = unique_id[unique_id.len() - 4..].to_string();
+
+ Some(Self { vid, pid })
+ }
+}
+
+pub type NativeFormat = arc::R<av::capture::device::Format>;
+
+pub type NativeRecordingHandle = AVFoundationRecordingHandle;
+
+fn find_device(info: &CameraInfo) -> Option<arc::R<av::CaptureDevice>> {
+ let devices = list_video_devices();
+ devices
+ .iter()
+ .find(
+ |d| match (ModelID::from_avfoundation(d).as_ref(), info.model_id()) {
+ (Some(a), Some(b)) => a == b,
+ (None, None) => &d.unique_id().to_string() == info.device_id(),
+ _ => false,
+ },
+ )
+ .map(|v| v.retained())
+}
+
+pub(super) fn start_capturing_impl(
+ camera: &CameraInfo,
+ format: Format,
+ mut callback: impl FnMut(CapturedFrame) + 'static,
+) -> Result<AVFoundationRecordingHandle, StartCapturingError> {
+ let mut device = find_device(camera)
+ .ok_or(StartCapturingError::DeviceNotFound)?
+ .retained();
+
+ let input =
+ av::capture::DeviceInput::with_device(&device).map_err(AVFoundationError::Static)?;
+
+ let queue = dispatch::Queue::new();
+ let delegate =
+ CallbackOutputDelegate::with(CallbackOutputDelegateInner::new(Box::new(move |data| {
+ let Some(image_buf) = data.sample_buf.image_buf() else {
+ return;
+ };
+
+ callback(CapturedFrame {
+ native: NativeCapturedFrame(image_buf.retained(), data.sample_buf.retained()),
+ reference_time: Instant::now(),
+ timestamp: data.timestamp,
+ capture_begin_time: Some(data.capture_begin_time),
+ });
+ })));
+
+ let mut output = av::capture::VideoDataOutput::new();
+ let mut session = av::capture::Session::new();
+
+ session.configure(|s| {
+ if s.can_add_input(&input) {
+ s.add_input(&input);
+ } else {
+ panic!("can't add input");
+ }
+
+ s.add_output(&output);
+ });
+
+ output.set_sample_buf_delegate(Some(delegate.as_ref()), Some(&queue));
+
+ // The device config must stay locked while running starts,
+ // otherwise start_running can overwrite the active format on macOS
+ // https://stackoverflow.com/questions/36689578/avfoundation-capturing-video-with-custom-resolution
+ {
+ let mut _lock = device.config_lock().map_err(AVFoundationError::Retained)?;
+
+ _lock.set_active_format(&format.native());
+
+ session.start_running();
+ }
+
+ Ok(AVFoundationRecordingHandle {
+ _delegate: delegate,
+ session,
+ _output: output,
+ _input: input,
+ _device: device,
+ })
+}
+
+pub struct AVFoundationRecordingHandle {
+ _delegate: arc::R<cap_camera_avfoundation::CallbackOutputDelegate>,
+ session: arc::R<cidre::av::capture::Session>,
+ _output: arc::R<av::CaptureVideoDataOutput>,
+ _input: arc::R<av::CaptureDeviceInput>,
+ _device: arc::R<av::CaptureDevice>,
+}
+
+impl AVFoundationRecordingHandle {
+ pub fn stop_capturing(mut self) {
+ self.session.stop_running();
+ }
+}
+
+#[derive(thiserror::Error)]
+pub enum AVFoundationError {
+ #[error("{0}")]
+ Static(&'static cidre::ns::Error),
+ #[error("{0}")]
+ Retained(cidre::arc::R<cidre::ns::Error>),
+}
+
+impl From<&'static cidre::ns::Error> for AVFoundationError {
+ fn from(err: &'static cidre::ns::Error) -> Self {
+ AVFoundationError::Static(err)
+ }
+}
+
+impl From<cidre::arc::R<cidre::ns::Error>> for AVFoundationError {
+ fn from(err: cidre::arc::R<cidre::ns::Error>) -> Self {
+ AVFoundationError::Retained(err)
+ }
+}
+
+impl Deref for AVFoundationError {
+ type Target = cidre::ns::Error;
+
+ fn deref(&self) -> &Self::Target {
+ match self {
+ AVFoundationError::Static(err) => err,
+ AVFoundationError::Retained(err) => err,
+ }
+ }
+}
+
+impl Debug for AVFoundationError {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ match self {
+ AVFoundationError::Static(err) => write!(f, "{}", err),
+ AVFoundationError::Retained(err) => write!(f, "{}", err),
+ }
+ }
+}
+
+#[derive(Debug, Clone)]
+pub struct NativeCapturedFrame(arc::R<cv::ImageBuf>, arc::R<cm::SampleBuf>);
+
+impl NativeCapturedFrame {
+ pub fn image_buf(&self) -> &arc::R<cv::ImageBuf> {
+ &self.0
+ }
+
+ pub fn sample_buf(&self) -> &arc::R<cm::SampleBuf> {
+ &self.1
+ }
+}
diff --git a/crates/camera/src/windows.rs b/crates/camera/src/windows.rs
new file mode 100644
index 000000000..725c460df
--- /dev/null
+++ b/crates/camera/src/windows.rs
@@ -0,0 +1,105 @@
+use crate::*;
+
+pub(super) fn list_cameras_impl() -> impl Iterator<Item = CameraInfo> {
+ let devices = cap_camera_windows::get_devices().unwrap_or_default();
+
+ devices.into_iter().filter_map(|d| {
+ Some(CameraInfo {
+ device_id: d.id().to_string_lossy().to_string(),
+ model_id: ModelID::from_windows(&d),
+ display_name: d.name().to_string_lossy().to_string(),
+ })
+ })
+}
+
+fn find_device(
+ info: &CameraInfo,
+) -> Result<Option<cap_camera_windows::VideoDeviceInfo>, cap_camera_windows::GetDevicesError> {
+ let devices = cap_camera_windows::get_devices()?;
+ Ok(devices.into_iter().find(
+ |d| match (ModelID::from_windows(d).as_ref(), info.model_id()) {
+ (Some(a), Some(b)) => a == b,
+ (None, None) => d.id() == info.device_id(),
+ _ => false,
+ },
+ ))
+}
+
+impl CameraInfo {
+ pub(super) fn formats_impl(&self) -> Option<Vec<Format>> {
+ let device = find_device(self).ok()??;
+
+ let mut ret = vec![];
+
+ for format in device.formats() {
+ ret.push(Format {
+ info: FormatInfo {
+ width: format.width(),
+ height: format.height(),
+ frame_rate: format.frame_rate(),
+ },
+ native: format.inner,
+ })
+ }
+
+ Some(ret)
+ }
+}
+
+impl ModelID {
+ fn from_windows(device: &cap_camera_windows::VideoDeviceInfo) -> Option<Self> {
+ let model_id = device.model_id()?;
+
+ let vid = &model_id[0..4];
+ let pid = &model_id[5..9];
+
+ Some(Self {
+ vid: vid.to_string(),
+ pid: pid.to_string(),
+ })
+ }
+}
+
+pub type NativeFormat = cap_camera_windows::VideoFormat;
+
+#[derive(Debug)]
+pub struct NativeCapturedFrame(cap_camera_windows::Frame);
+
+pub type NativeRecordingHandle = WindowsCaptureHandle;
+
+pub(super) fn start_capturing_impl(
+ camera: &CameraInfo,
+ format: Format,
+ mut callback: impl FnMut(CapturedFrame) + 'static,
+) -> Result<WindowsCaptureHandle, StartCapturingError> {
+ let device = find_device(camera)?.ok_or(StartCapturingError::DeviceNotFound)?;
+
+ Ok(WindowsCaptureHandle {
+ inner: device.start_capturing(format.native(), move |frame| {
+ callback(CapturedFrame {
+ reference_time: frame.reference_time,
+ capture_begin_time: frame.capture_begin_time,
+ timestamp: frame.timestamp,
+ native: NativeCapturedFrame(frame),
+ });
+ })?,
+ })
+}
+
+pub struct WindowsCaptureHandle {
+ inner: cap_camera_windows::CaptureHandle,
+}
+
+impl WindowsCaptureHandle {
+ pub fn stop_capturing(self) -> windows_core::Result<()> {
+ self.inner.stop_capturing()
+ }
+}
+
+impl Deref for NativeCapturedFrame {
+ type Target = cap_camera_windows::Frame;
+
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
diff --git a/crates/cursor-capture/Cargo.toml b/crates/cursor-capture/Cargo.toml
index aca8a17df..8705eea0a 100644
--- a/crates/cursor-capture/Cargo.toml
+++ b/crates/cursor-capture/Cargo.toml
@@ -9,7 +9,7 @@ workspace = true
[dependencies]
cap-displays = { path = "../displays" }
-device_query = "3.0.1"
+device_query = "4.0.1"
[target.'cfg(target_os = "macos")'.dependencies]
core-graphics = "0.24.0"
diff --git a/crates/displays/src/platform/win.rs b/crates/displays/src/platform/win.rs
index abf18038a..ee75c8e02 100644
--- a/crates/displays/src/platform/win.rs
+++ b/crates/displays/src/platform/win.rs
@@ -1,13 +1,13 @@
use windows::{
Win32::{
- Foundation::{BOOL, CloseHandle, FALSE, HWND, LPARAM, RECT, TRUE},
+ Foundation::{CloseHandle, FALSE, HWND, LPARAM, RECT, TRUE},
Graphics::Gdi::{
DEVMODEW, DISPLAY_DEVICEW, EnumDisplayDevicesW, EnumDisplayMonitors,
EnumDisplaySettingsW, GetMonitorInfoW, HDC, HMONITOR, MONITOR_DEFAULTTONULL,
MONITORINFO, MONITORINFOEXW, MonitorFromWindow,
},
},
- core::{PCWSTR, PWSTR},
+ core::{BOOL, PCWSTR, PWSTR},
};
#[derive(Clone, Copy)]
diff --git a/crates/editor/Cargo.toml b/crates/editor/Cargo.toml
index d25c29698..e8d42dda6 100644
--- a/crates/editor/Cargo.toml
+++ b/crates/editor/Cargo.toml
@@ -17,7 +17,7 @@ cpal.workspace = true
axum = { version = "0.7.5", features = ["ws"] }
ffmpeg.workspace = true
specta.workspace = true
-serde = { version = "1", features = ["derive"] }
+serde = { workspace = true }
sentry.workspace = true
futures = "0.3.31"
tracing.workspace = true
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index cd74f4d97..43229f6d3 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -1,7 +1,7 @@
-use std::{sync::Arc, time::Instant};
+use std::sync::Arc;
-use cap_media::{feeds::RawCameraFrame, frame_ws::WSFrame};
-use cap_project::{BackgroundSource, CursorEvents, RecordingMeta, StudioRecordingMeta, XY};
+use cap_media::frame_ws::WSFrame;
+use cap_project::{CursorEvents, RecordingMeta, StudioRecordingMeta, XY};
use cap_rendering::{
decoder::DecodedFrame, DecodedSegmentFrames, FrameRenderer, ProjectRecordingsMeta,
ProjectUniforms, RenderVideoConstants, RendererLayers,
diff --git a/crates/export/Cargo.toml b/crates/export/Cargo.toml
index dbc75484f..27e71a5d4 100644
--- a/crates/export/Cargo.toml
+++ b/crates/export/Cargo.toml
@@ -18,7 +18,7 @@ mp4 = "0.14.0"
thiserror.workspace = true
futures = "0.3.31"
ffmpeg = { workspace = true }
-serde = "1.0.219"
+serde = { workspace = true }
specta.workspace = true
serde_json = "1.0.140"
tracing.workspace = true
diff --git a/crates/flags/Cargo.toml b/crates/flags/Cargo.toml
index 32deda96e..3e98a7937 100644
--- a/crates/flags/Cargo.toml
+++ b/crates/flags/Cargo.toml
@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
-serde = "1.0.214"
+serde = { workspace = true }
specta.workspace = true
diff --git a/crates/media/Cargo.toml b/crates/media/Cargo.toml
index 52a00b63a..86b17a9e1 100644
--- a/crates/media/Cargo.toml
+++ b/crates/media/Cargo.toml
@@ -15,18 +15,18 @@ debug-logging = [] # Feature flag to control debug logging
[dependencies]
cap-project = { path = "../project" }
cap-flags = { path = "../flags" }
-cap-gpu-converters = { path = "../gpu-converters" }
cap-audio = { path = "../audio" }
+cap-camera = { path = "../camera", features = ["specta", "serde"] }
+cap-camera-ffmpeg = { path = "../camera-ffmpeg" }
cpal.workspace = true
ffmpeg.workspace = true
ffmpeg-sys-next.workspace = true
flume.workspace = true
indexmap = "2.5.0"
-nokhwa = { workspace = true, features = ["input-native", "serialize"] }
num-traits = "0.2.19"
ringbuf = "0.4.7"
scap.workspace = true
-serde = { version = "1", features = ["derive"] }
+serde = { workspace = true }
specta.workspace = true
tempfile = "3.12.0"
thiserror.workspace = true
@@ -47,7 +47,6 @@ core-foundation = "0.10.0"
objc = "0.2.7"
objc-foundation = "0.1.1"
objc2-foundation = { version = "0.2.2", features = ["NSValue"] }
-nokhwa-bindings-macos.workspace = true
screencapturekit = "0.3.5"
[target.'cfg(target_os = "windows")'.dependencies]
@@ -62,3 +61,9 @@ windows = { workspace = true, features = [
"Win32_Media_MediaFoundation",
] }
windows-capture = { workspace = true }
+cap-camera-windows = { path = "../camera-windows" }
+
+[dev-dependencies]
+inquire = "0.7.5"
+tokio = { workspace = true, features = ["macros"] }
+tracing-subscriber = "0.3.19"
diff --git a/crates/media/examples/camera.rs b/crates/media/examples/camera.rs
new file mode 100644
index 000000000..36e62c1d8
--- /dev/null
+++ b/crates/media/examples/camera.rs
@@ -0,0 +1,55 @@
+use std::fmt::Display;
+
+use cap_media::feeds::{CameraFeed, DeviceOrModelID};
+use ffmpeg::format::Pixel;
+use image::{codecs::jpeg, ColorType};
+
+#[tokio::main]
+async fn main() {
+ tracing_subscriber::fmt::init();
+
+ let cameras = CameraFeed::list_cameras()
+ .into_iter()
+ .map(CameraSelection)
+ .collect();
+ let device = inquire::Select::new("Select a device", cameras)
+ .prompt()
+ .unwrap();
+
+ let feed = CameraFeed::init(DeviceOrModelID::from_info(&device.0))
+ .await
+ .unwrap();
+ let (tx, rx) = flume::bounded(1);
+ feed.attach(tx);
+ let frame = rx.recv_async().await.unwrap().frame;
+ dbg!(frame.format(), frame.width(), frame.height());
+
+ let mut converter = ffmpeg::software::converter(
+ (frame.width(), frame.height()),
+ frame.format(),
+ Pixel::RGB24,
+ )
+ .unwrap();
+
+ let mut converted_frame = ffmpeg::frame::Video::empty();
+ converter.run(&frame, &mut converted_frame).unwrap();
+
+ dbg!(converted_frame.data(0).len());
+ let mut file = std::fs::File::create("./out.jpeg").unwrap();
+ jpeg::JpegEncoder::new(&mut file)
+ .encode(
+ &converted_frame.data(0)[0..(frame.width() * frame.height() * 3) as usize],
+ frame.width(),
+ frame.height(),
+ ColorType::Rgb8.into(),
+ )
+ .unwrap();
+}
+
+struct CameraSelection(cap_camera::CameraInfo);
+
+impl Display for CameraSelection {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_str(self.0.display_name())
+ }
+}
diff --git a/crates/media/out.jpeg b/crates/media/out.jpeg
new file mode 100644
index 000000000..b689097d8
Binary files /dev/null and b/crates/media/out.jpeg differ
diff --git a/crates/media/src/feeds/camera.rs b/crates/media/src/feeds/camera.rs
index 110e130fd..6d9da6bd3 100644
--- a/crates/media/src/feeds/camera.rs
+++ b/crates/media/src/feeds/camera.rs
@@ -1,22 +1,39 @@
use cap_fail::{fail, fail_err};
-use ffmpeg::format::Pixel;
use flume::{Receiver, Sender, TryRecvError, TrySendError};
-use nokhwa::{pixel_format::RgbAFormat, utils::*, Camera};
+use futures::channel::oneshot;
use std::{
- thread::{self},
- time::SystemTime,
+ cmp::Ordering,
+ sync::mpsc,
+ thread,
+ time::{Duration, Instant},
};
use tracing::{debug, error, info, trace, warn};
-use crate::{
- data::{FFVideo, VideoInfo},
- MediaError,
-};
+use crate::data::{FFVideo, VideoInfo};
+
+use cap_camera_ffmpeg::*;
+
+pub struct CameraFeedInfo {
+ pub camera: cap_camera::CameraInfo,
+ pub video_info: VideoInfo,
+ pub reference_time: Instant,
+}
-type CameraSwitchResult = Result<(CameraInfo, VideoInfo), MediaError>;
+#[derive(Debug, thiserror::Error)]
+pub enum SwitchCameraError {
+ #[error("Setup/{0}")]
+ Setup(#[from] SetupCameraError),
+ #[error("Failed to send request")]
+ RequestFailed(oneshot::Canceled),
+ #[error("Failed to initialize camera")]
+ InitializeFailed(oneshot::Canceled),
+}
enum CameraControl {
- Switch(String, Sender<CameraSwitchResult>),
+ Switch(
+ DeviceOrModelID,
+ oneshot::Sender<Result<CameraFeedInfo, SetupCameraError>>,
+ ),
AttachConsumer(Sender<RawCameraFrame>),
Shutdown,
}
@@ -24,7 +41,8 @@ enum CameraControl {
#[derive(Clone)]
pub struct RawCameraFrame {
pub frame: FFVideo,
- pub captured_at: SystemTime,
+ pub timestamp: Duration,
+ pub refrence_time: Instant,
}
pub struct CameraConnection {
@@ -42,30 +60,54 @@ impl CameraConnection {
}
}
+#[derive(serde::Serialize, serde::Deserialize, specta::Type, Clone, Debug)]
+pub enum DeviceOrModelID {
+ DeviceID(String),
+ ModelID(cap_camera::ModelID),
+}
+
+impl DeviceOrModelID {
+ pub fn from_info(info: &cap_camera::CameraInfo) -> Self {
+ info.model_id()
+ .map(|v| Self::ModelID(v.clone()))
+ .unwrap_or_else(|| Self::DeviceID(info.device_id().to_string()))
+ }
+}
+
pub struct CameraFeed {
- pub camera_info: CameraInfo,
+ pub camera_info: cap_camera::CameraInfo,
video_info: VideoInfo,
+ reference_time: Instant,
control: Sender<CameraControl>,
}
impl CameraFeed {
- pub async fn init(selected_camera: &str) -> Result<CameraFeed, MediaError> {
- trace!("Initializing camera feed for: {}", selected_camera);
+ pub async fn init(selected_camera: DeviceOrModelID) -> Result<CameraFeed, SetupCameraError> {
+ trace!("Initializing camera feed for: {:?}", &selected_camera);
fail_err!(
"media::feeds::camera::init",
- MediaError::Any("forced fail".into())
+ SetupCameraError::Initialisation
);
- let camera_info = find_camera(selected_camera)?;
+ let camera_info = find_camera(&selected_camera).unwrap();
let (control, control_receiver) = flume::bounded(1);
- let video_info = start_capturing(camera_info.clone(), control_receiver).await?;
+ let (ready_tx, ready_rx) = oneshot::channel();
+
+ thread::spawn(move || {
+ run_camera_feed(selected_camera, control_receiver, ready_tx);
+ });
+
+ let state = ready_rx
+ .await
+ .map_err(|_| SetupCameraError::Initialisation)??;
let camera_feed = Self {
camera_info,
- video_info,
control,
+ video_info: state.video_info,
+ reference_time: state.reference_time,
};
Ok(camera_feed)
@@ -74,30 +116,24 @@ impl CameraFeed {
/// Initialize camera asynchronously, returning a receiver immediately.
/// The actual initialization happens in a background task.
/// Dropping the receiver cancels the initialization.
- pub fn init_async(selected_camera: &str) -> flume::Receiver<Result<CameraFeed, MediaError>> {
+ pub fn init_async(
+ id: DeviceOrModelID,
+ ) -> flume::Receiver<Result<CameraFeed, SetupCameraError>> {
let (tx, rx) = flume::bounded(1);
- let selected_camera = selected_camera.to_string();
tokio::spawn(async move {
- let result = Self::init(&selected_camera).await;
- // Only send if receiver still exists
+ let result = Self::init(id).await;
let _ = tx.send(result);
});
rx
}
- pub fn list_cameras() -> Vec<String> {
- match nokhwa::query(ApiBackend::Auto) {
- Ok(cameras) => cameras
- .into_iter()
- .map(|i| i.human_name().to_string())
- .collect::<Vec<String>>(),
- Err(_) => Vec::new(),
- }
+ pub fn list_cameras() -> Vec<cap_camera::CameraInfo> {
+ cap_camera::list_cameras().collect()
}
- pub fn camera_info(&self) -> CameraInfo {
+ pub fn camera_info(&self) -> cap_camera::CameraInfo {
self.camera_info.clone()
}
@@ -105,29 +141,26 @@ impl CameraFeed {
self.video_info
}
- pub async fn switch_cameras(&mut self, camera_name: &str) -> Result<(), MediaError> {
+ pub async fn switch_cameras(&mut self, id: DeviceOrModelID) -> Result<(), SwitchCameraError> {
fail_err!(
"media::feeds::camera::switch_cameras",
- MediaError::Any("forced fail".into())
+ SwitchCameraError::Setup(SetupCameraError::CameraNotFound)
);
- let current_camera_name = self.camera_info.human_name();
- if camera_name != &current_camera_name {
- let (result_tx, result_rx) = flume::bounded::<CameraSwitchResult>(1);
+ let (result_tx, result_rx) = oneshot::channel();
- let _ = self
- .control
- .send_async(CameraControl::Switch(camera_name.to_string(), result_tx))
- .await;
+ let _ = self
+ .control
+ .send_async(CameraControl::Switch(id, result_tx))
+ .await;
- let (camera_info, video_info) = result_rx
- .recv_async()
- .await
- .map_err(|_| MediaError::Any("Failed to prepare camera feed".into()))??;
+ let data = result_rx
+ .await
+ .map_err(SwitchCameraError::RequestFailed)??;
- self.camera_info = camera_info;
- self.video_info = video_info;
- }
+ self.camera_info = data.camera;
+ self.video_info = data.video_info;
+ self.reference_time = data.reference_time;
Ok(())
}
@@ -151,321 +184,206 @@ impl Drop for CameraFeed {
}
}
-fn find_camera(selected_camera: &str) -> Result<CameraInfo, MediaError> {
- let all_cameras = nokhwa::query(ApiBackend::Auto)?;
-
- all_cameras
- .into_iter()
- .find(|c| &c.human_name() == selected_camera)
- .ok_or(MediaError::DeviceUnreachable(selected_camera.to_string()))
-}
-
-fn create_camera(info: &CameraInfo) -> Result<Camera, MediaError> {
- #[cfg(feature = "debug-logging")]
- debug!("Creating camera with info: {:?}", info);
-
- let format = RequestedFormat::new::<RgbAFormat>(RequestedFormatType::AbsoluteHighestFrameRate);
-
- #[cfg(feature = "debug-logging")]
- trace!("Requested camera format: {:?}", format);
-
- let index = info.index().clone();
-
- #[cfg(target_os = "macos")]
- {
- let device = nokhwa_bindings_macos::AVCaptureDevice::new(&index).unwrap();
- if let Ok(formats) = device.supported_formats() {
- #[cfg(feature = "debug-logging")]
- trace!("Supported formats: {:?}", formats);
- }
- }
-
- let camera = Camera::new(index, format)?;
-
- #[cfg(feature = "debug-logging")]
- debug!("Created camera with format: {:?}", camera.camera_format());
-
- Ok(camera)
-}
-
-fn find_and_create_camera(selected_camera: &String) -> Result<(CameraInfo, Camera), MediaError> {
- let info = find_camera(selected_camera)?;
- let camera = create_camera(&info)?;
-
- #[cfg(feature = "debug-logging")]
- trace!("Camera format: {:?}", camera.camera_format());
-
- Ok((info, camera))
-}
-
-async fn start_capturing(
- camera_info: CameraInfo,
- control: Receiver<CameraControl>,
-) -> Result<VideoInfo, MediaError> {
- let (ready_tx, ready_rx) = flume::bounded::<Result<VideoInfo, MediaError>>(1);
-
- thread::spawn(move || {
- run_camera_feed(camera_info, control, ready_tx);
- });
-
- let video_info = ready_rx
- .recv_async()
- .await
- .map_err(|_| MediaError::Any("Failed to prepare camera feed".into()))??;
-
- Ok(video_info)
- // Ok((video_info, join_handle))
+fn find_camera(selected_camera: &DeviceOrModelID) -> Option<cap_camera::CameraInfo> {
+ cap_camera::list_cameras().find(|c| match selected_camera {
+ DeviceOrModelID::DeviceID(device_id) => c.device_id() == device_id,
+ DeviceOrModelID::ModelID(model_id) => c.model_id() == Some(model_id),
+ })
}
// #[tracing::instrument(skip_all)]
fn run_camera_feed(
- camera_info: CameraInfo,
+ id: DeviceOrModelID,
control: Receiver<CameraControl>,
- ready_signal: Sender<Result<VideoInfo, MediaError>>,
+ ready_tx: oneshot::Sender<Result<CameraFeedInfo, SetupCameraError>>,
) {
fail!("media::feeds::camera::run panic");
- let mut camera = match create_camera(&camera_info) {
- Ok(cam) => cam,
- Err(error) => {
- error!("Failed to create camera: {:?}", error);
- ready_signal.send(Err(error)).unwrap();
+ let mut senders: Vec<Sender<RawCameraFrame>> = vec![];
+
+ let mut state = match setup_camera(id) {
+ Ok(state) => {
+ let _ = ready_tx.send(Ok(CameraFeedInfo {
+ camera: state.camera_info.clone(),
+ video_info: state.video_info.clone(),
+ reference_time: state.reference_time,
+ }));
+ state
+ }
+ Err(e) => {
+ let _ = ready_tx.send(Err(e));
return;
}
};
- if let Err(error) = camera.open_stream() {
- error!("Failed to open camera stream: {:?}", error);
- ready_signal.send(Err(error.into())).unwrap();
- return;
- }
+ 'outer: loop {
+ debug!("Video feed camera format: {:#?}", &state.video_info);
- let mut ready_signal = Some(ready_signal);
- let mut camera_format = camera.camera_format();
- let mut video_info = {
- VideoInfo::from_raw_ffmpeg(
- match camera_format.format() {
- FrameFormat::BGRA => Pixel::BGRA,
- FrameFormat::MJPEG => {
- Pixel::RGB24
- // todo!("handle mjpeg for camera")
+ loop {
+ match control.try_recv() {
+ Err(TryRecvError::Disconnected) => {
+ trace!("Control disconnected");
+ break 'outer;
}
- FrameFormat::RAWRGB => Pixel::RGB24,
- FrameFormat::NV12 => Pixel::NV12,
- FrameFormat::GRAY => Pixel::GRAY8,
- FrameFormat::YUYV => {
- let pix_fmt = if cfg!(windows) {
- Pixel::YUYV422 // This is correct for Windows
- } else {
- // let bytes = buffer.buffer().len() as f32;
- // let ratio = bytes / (buffer.resolution().x() * buffer.resolution().y()) as f32;
- // if ratio == 2.0
-
- // nokhwa merges yuvu420 and uyvy422 into the same format, we should probably distinguish them with the frame size
- Pixel::UYVY422
- };
-
- pix_fmt
+ Ok(CameraControl::Shutdown) => {
+ state.handle.stop_capturing();
+ println!("Deliberate shutdown");
+ break 'outer;
}
- },
- camera_format.width(),
- camera_format.height(),
- camera_format.frame_rate(),
- )
- };
+ Err(TryRecvError::Empty) => {}
+ Ok(CameraControl::AttachConsumer(sender)) => {
+ senders.push(sender);
+ }
+ Ok(CameraControl::Switch(new_id, switch_result)) => match setup_camera(new_id) {
+ Ok(new_state) => {
+ let _ = switch_result.send(Ok(CameraFeedInfo {
+ camera: new_state.camera_info.clone(),
+ video_info: new_state.video_info.clone(),
+ reference_time: new_state.reference_time,
+ }));
+ state = new_state;
+
+ break;
+ }
+ Err(e) => {
+ let _ = switch_result.send(Err(e));
+ continue;
+ }
+ },
+ }
- debug!("Camera video info: {:?}", video_info);
+ let Ok(frame) = state.frame_rx.recv_timeout(Duration::from_secs(5)) else {
+ return;
+ };
- let mut senders: Vec<Sender<RawCameraFrame>> = vec![];
+ let mut to_remove = vec![];
- loop {
- match control.try_recv() {
- Err(TryRecvError::Disconnected) => {
- trace!("Control disconnected");
- break;
- }
- Ok(CameraControl::Shutdown) => {
- trace!("Deliberate shutdown");
- break;
- }
- Err(TryRecvError::Empty) => {}
- Ok(CameraControl::AttachConsumer(sender)) => {
- senders.push(sender);
+ for (i, sender) in senders.iter().enumerate() {
+ if let Err(TrySendError::Disconnected(_)) = sender.try_send(frame.clone()) {
+ warn!("Camera sender {} disconnected, will be removed", i);
+ to_remove.push(i);
+ };
}
- Ok(CameraControl::Switch(camera_name, switch_result)) => {
- match find_and_create_camera(&camera_name) {
- Err(error) => {
- switch_result.send(Err(error)).unwrap();
- }
- Ok((new_info, mut new_camera)) => {
- if new_camera.open_stream().is_ok() {
- let _ = camera.stop_stream();
- camera_format = new_camera.camera_format();
- video_info = VideoInfo::from_raw_ffmpeg(
- match camera_format.format() {
- FrameFormat::BGRA => Pixel::BGRA,
- FrameFormat::MJPEG => {
- Pixel::RGB24
- // todo!("handle mjpeg for camera")
- }
- FrameFormat::RAWRGB => Pixel::RGB24,
- FrameFormat::NV12 => Pixel::NV12,
- FrameFormat::GRAY => Pixel::GRAY8,
- FrameFormat::YUYV => {
- let pix_fmt = if cfg!(windows) {
- tracing::debug!("Using YUYV422 format for Windows camera in buffer_to_ffvideo");
- Pixel::YUYV422 // This is correct for Windows
- } else {
- Pixel::UYVY422
- };
- pix_fmt
- }
- },
- camera_format.width(),
- camera_format.height(),
- camera_format.frame_rate(),
- );
- switch_result.send(Ok((new_info, video_info))).unwrap();
- camera = new_camera;
- } else {
- switch_result
- .send(Err(MediaError::DeviceUnreachable(camera_name)))
- .unwrap();
- }
- }
+
+ if !to_remove.is_empty() {
+ // debug!("Removing {} disconnected audio senders", to_remove.len());
+ for i in to_remove.into_iter().rev() {
+ senders.swap_remove(i);
}
}
}
+ }
- match camera.frame() {
- Ok(raw_buffer) => {
- let captured_at = raw_buffer.timestamp().unwrap_or_else(|| SystemTime::now());
-
- let frame = RawCameraFrame {
- frame: buffer_to_ffvideo(raw_buffer),
- captured_at,
- };
+ info!("Camera feed stopping");
+}
- ready_signal.take().map(|signal| {
- signal.send(Ok(video_info)).ok();
- });
+#[derive(Debug, thiserror::Error)]
+pub enum SetupCameraError {
+ #[error("Camera not found")]
+ CameraNotFound,
+ #[error("Invalid format")]
+ InvalidFormat,
+ #[error("Camera timed out")]
+ Timeout(mpsc::RecvTimeoutError),
+ #[error("StartCapturing/{0}")]
+ StartCapturing(#[from] cap_camera::StartCapturingError),
+ #[error("Failed to initialize camera")]
+ Initialisation,
+}
- let mut to_remove = vec![];
+const CAMERA_INIT_TIMEOUT: Duration = Duration::from_secs(4);
- for (i, sender) in senders.iter().enumerate() {
- if let Err(TrySendError::Disconnected(_)) = sender.try_send(frame.clone()) {
- warn!("Camera sender {} disconnected, will be removed", i);
- to_remove.push(i);
- };
- }
+struct SetupCameraState {
+ handle: cap_camera::RecordingHandle,
+ camera_info: cap_camera::CameraInfo,
+ video_info: VideoInfo,
+ frame_rx: mpsc::Receiver<RawCameraFrame>,
+ reference_time: Instant,
+}
- if !to_remove.is_empty() {
- debug!("Removing {} disconnected audio senders", to_remove.len());
- for i in to_remove.into_iter().rev() {
- senders.swap_remove(i);
- }
- }
- }
- Err(error) => {
- warn!("Failed to capture frame: {:?}", error);
- std::thread::sleep(std::time::Duration::from_millis(10));
- continue;
- }
- }
+fn setup_camera(id: DeviceOrModelID) -> Result<SetupCameraState, SetupCameraError> {
+ let camera = find_camera(&id).ok_or(SetupCameraError::CameraNotFound)?;
+ let formats = camera.formats().ok_or(SetupCameraError::InvalidFormat)?;
+ if formats.is_empty() {
+ return Err(SetupCameraError::InvalidFormat);
}
- let _ = camera.stop_stream();
+ let mut ideal_formats = formats
+ .clone()
+ .into_iter()
+ .filter(|f| f.frame_rate() >= 30.0 && f.width() < 2000 && f.height() < 2000)
+ .collect::<Vec<_>>();
- info!("Camera feed stopping");
-}
+ if ideal_formats.is_empty() {
+ ideal_formats = formats;
+ };
-fn buffer_to_ffvideo(buffer: nokhwa::Buffer) -> FFVideo {
- use ffmpeg::format::Pixel;
- let (format, load_data): (Pixel, fn(&mut FFVideo, &nokhwa::Buffer)) = {
- match buffer.source_frame_format() {
- FrameFormat::BGRA => (Pixel::BGRA, |frame, buffer| {
- let stride = frame.stride(0) as usize;
- let width = frame.width() as usize;
- let height = frame.height() as usize;
-
- for y in 0..height {
- let row_length = width * 4;
-
- frame.data_mut(0)[y * stride..(width * 4 * y + row_length)].copy_from_slice(
- &buffer.buffer()[width * 4 * y..width * 4 * y + row_length],
- );
- }
- }),
- FrameFormat::NV12 => (Pixel::NV12, |frame, buffer| {
- let width = frame.width() as usize;
- let height = frame.height() as usize;
-
- let stride = frame.stride(0) as usize;
- for y in 0..height {
- let row_length = width;
- frame.data_mut(0)[y * stride..(y * stride + row_length)]
- .copy_from_slice(&buffer.buffer()[width * y..width * y + row_length]);
- }
+ // Sort formats to prioritize:
+ // 1. Closest to 16:9 aspect ratio
+ // 2. Highest resolution (total pixels)
+ // 3. Highest frame rate
+ // Most relevant ends up in index 0
+ ideal_formats.sort_by(|a, b| {
+ let target_aspect_ratio = 16.0 / 9.0;
- let stride = frame.stride(1) as usize;
- for y in 0..height / 2 {
- let row_length = width;
- frame.data_mut(1)[y * stride..(y * stride + row_length)]
- .copy_from_slice(&buffer.buffer()[y * width..y * width + row_length]);
- }
- }),
- FrameFormat::YUYV => {
- // nokhwa moment
- let pix_fmt = if cfg!(windows) {
- tracing::debug!("Using YUYV422 format for Windows camera in buffer_to_ffvideo");
- Pixel::YUYV422 // This is correct for Windows
- } else {
- // let bytes = buffer.buffer().len() as f32;
- // let ratio = bytes / (buffer.resolution().x() * buffer.resolution().y()) as f32;
- // if ratio == 2.0
-
- // nokhwa merges yuvu420 and uyvy422 into the same format, we should probably distinguish them with the frame size
- Pixel::UYVY422
- };
+ let aspect_ratio_a = a.width() as f32 / a.height() as f32;
+ let aspect_ratio_b = b.width() as f32 / b.height() as f32;
- (pix_fmt, |frame, buffer| {
- let width = frame.width() as usize;
- let height = frame.height() as usize;
+ let aspect_cmp_a = (aspect_ratio_a - target_aspect_ratio).abs();
+ let aspect_cmp_b = (aspect_ratio_b - target_aspect_ratio).abs();
- let stride = frame.stride(0) as usize;
- for y in 0..height {
- let row_length = width * 2;
- frame.data_mut(0)[y * stride..(y * stride + row_length)].copy_from_slice(
- &buffer.buffer()[2 * width * y..2 * width * y + row_length],
- );
- }
- })
- }
- FrameFormat::MJPEG => (Pixel::RGB24, |frame, buffer| {
- let decoded = buffer
- .decode_image::<nokhwa::pixel_format::RgbFormat>()
- .unwrap();
+ let aspect_cmp = aspect_cmp_a.partial_cmp(&aspect_cmp_b);
+ let resolution_cmp = (a.width() * a.height()).cmp(&(b.width() * b.height()));
+ let fr_cmp = a.frame_rate().partial_cmp(&b.frame_rate());
- let bytes = decoded.into_raw();
+ aspect_cmp
+ .unwrap_or(Ordering::Equal)
+ .then(resolution_cmp.reverse())
+ .then(fr_cmp.unwrap_or(Ordering::Equal).reverse())
+ });
- let width = frame.width() as usize;
- let height = frame.height() as usize;
- let stride = frame.stride(0) as usize;
+ let format = ideal_formats.swap_remove(0);
+ let frame_rate = format.frame_rate() as u32;
- for y in 0..height {
- let row_length = width * 3;
+ let (ready_tx, ready_rx) = std::sync::mpsc::sync_channel(1);
+ let mut ready_signal = Some(ready_tx);
- frame.data_mut(0)[y * stride..(y * stride + row_length)]
- .copy_from_slice(&bytes[y * width * 3..y * width * 3 + row_length]);
- }
- }),
- _ => todo!("implement more camera formats"),
- }
- };
+ let (frame_tx, frame_rx) = mpsc::sync_channel(8);
- let mut frame = FFVideo::new(format, buffer.resolution().x(), buffer.resolution().y());
+ let capture_handle = camera.start_capturing(format.clone(), move |frame| {
+ let Ok(mut ff_frame) = frame.to_ffmpeg() else {
+ return;
+ };
+
+ ff_frame.set_pts(Some(frame.timestamp.as_micros() as i64));
- load_data(&mut frame, &buffer);
+ ready_signal.take().map(|signal| {
+ let video_info = VideoInfo::from_raw_ffmpeg(
+ ff_frame.format(),
+ ff_frame.width(),
+ ff_frame.height(),
+ frame_rate,
+ );
- frame
+ let _ = signal.send((video_info, frame.reference_time));
+ });
+
+ let _ = frame_tx.send(RawCameraFrame {
+ frame: ff_frame,
+ timestamp: frame.timestamp,
+ refrence_time: frame.reference_time,
+ });
+ })?;
+
+ let (video_info, reference_time) = ready_rx
+ .recv_timeout(CAMERA_INIT_TIMEOUT)
+ .map_err(SetupCameraError::Timeout)?;
+
+ Ok(SetupCameraState {
+ handle: capture_handle,
+ camera_info: camera,
+ video_info,
+ frame_rx,
+ reference_time,
+ })
}
diff --git a/crates/media/src/frame_ws.rs b/crates/media/src/frame_ws.rs
index d37d8df04..8ceab86e4 100644
--- a/crates/media/src/frame_ws.rs
+++ b/crates/media/src/frame_ws.rs
@@ -4,8 +4,6 @@ use flume::Receiver;
use tokio::sync::mpsc;
use tokio_util::sync::CancellationToken;
-use crate::feeds::RawCameraFrame;
-
pub struct WSFrame {
pub data: Vec<u8>,
pub width: u32,
diff --git a/crates/media/src/lib.rs b/crates/media/src/lib.rs
index c1391f7fe..fcdefff86 100644
--- a/crates/media/src/lib.rs
+++ b/crates/media/src/lib.rs
@@ -40,9 +40,6 @@ pub enum MediaError {
#[error("FFmpeg error: {0}")]
FFmpeg(#[from] ffmpeg::Error),
- #[error("Camera error: {0}")]
- Nokhwa(#[from] nokhwa::NokhwaError),
-
#[error("IO error: {0}")]
IO(#[from] std::io::Error),
diff --git a/crates/media/src/platform/macos.rs b/crates/media/src/platform/macos.rs
index b1cd783f4..e522ff7f2 100644
--- a/crates/media/src/platform/macos.rs
+++ b/crates/media/src/platform/macos.rs
@@ -16,7 +16,6 @@ use core_graphics::{
kCGWindowOwnerPID, CGWindowListCopyWindowInfo,
},
};
-pub use nokhwa_bindings_macos::{AVAuthorizationStatus, AVMediaType};
use std::{collections::HashMap, ffi::c_void};
use crate::platform::{Bounds, LogicalPosition, LogicalSize, Window};
diff --git a/crates/media/src/platform/win.rs b/crates/media/src/platform/win.rs
index 6ab448f24..80d44d2e2 100644
--- a/crates/media/src/platform/win.rs
+++ b/crates/media/src/platform/win.rs
@@ -6,26 +6,28 @@ use std::path::PathBuf;
use super::{Bounds, CursorShape, LogicalBounds, LogicalPosition, LogicalSize, Window};
use tracing::debug;
-use windows::core::{PCWSTR, PWSTR};
-use windows::Win32::Foundation::{CloseHandle, BOOL, FALSE, HWND, LPARAM, RECT, TRUE};
-use windows::Win32::Graphics::Dwm::{
- DwmGetWindowAttribute, DWMWA_CLOAKED, DWMWA_EXTENDED_FRAME_BOUNDS,
-};
-use windows::Win32::Graphics::Gdi::{
- EnumDisplayDevicesW, EnumDisplayMonitors, EnumDisplaySettingsW, GetMonitorInfoW,
- MonitorFromWindow, DEVMODEW, DISPLAY_DEVICEW, HDC, HMONITOR, MONITORINFO, MONITORINFOEXW,
- MONITOR_DEFAULTTONULL,
-};
-use windows::Win32::System::Threading::{
- OpenProcess, QueryFullProcessImageNameW, PROCESS_NAME_FORMAT, PROCESS_QUERY_LIMITED_INFORMATION,
-};
-use windows::Win32::UI::HiDpi::GetDpiForWindow;
-use windows::Win32::UI::WindowsAndMessaging::{DrawIconEx, GetIconInfo, DI_NORMAL, ICONINFO};
-use windows::Win32::UI::WindowsAndMessaging::{
- EnumWindows, GetCursorInfo, GetWindowTextLengthW, GetWindowTextW, GetWindowThreadProcessId,
- IsWindowVisible, LoadCursorW, SetForegroundWindow, CURSORINFO, IDC_APPSTARTING, IDC_ARROW,
- IDC_CROSS, IDC_HAND, IDC_HELP, IDC_IBEAM, IDC_NO, IDC_PERSON, IDC_PIN, IDC_SIZEALL,
- IDC_SIZENESW, IDC_SIZENS, IDC_SIZENWSE, IDC_SIZEWE, IDC_UPARROW, IDC_WAIT,
+use windows::core::{BOOL, PCWSTR, PWSTR};
+use windows::Win32::{
+ Foundation::{CloseHandle, FALSE, HWND, LPARAM, RECT, TRUE},
+ Graphics::{
+ Dwm::{DwmGetWindowAttribute, DWMWA_CLOAKED, DWMWA_EXTENDED_FRAME_BOUNDS},
+ Gdi::{
+ EnumDisplayDevicesW, EnumDisplayMonitors, EnumDisplaySettingsW, GetMonitorInfoW,
+ MonitorFromWindow, DEVMODEW, DISPLAY_DEVICEW, HDC, HMONITOR, MONITORINFO,
+ MONITORINFOEXW, MONITOR_DEFAULTTONULL,
+ },
+ },
+ System::Threading::{
+ OpenProcess, QueryFullProcessImageNameW, PROCESS_NAME_FORMAT,
+ PROCESS_QUERY_LIMITED_INFORMATION,
+ },
+ UI::HiDpi::GetDpiForWindow,
+ UI::WindowsAndMessaging::{
+ EnumWindows, GetCursorInfo, GetWindowTextLengthW, GetWindowTextW, GetWindowThreadProcessId,
+ IsWindowVisible, LoadCursorW, SetForegroundWindow, CURSORINFO, IDC_APPSTARTING, IDC_ARROW,
+ IDC_CROSS, IDC_HAND, IDC_HELP, IDC_IBEAM, IDC_NO, IDC_PERSON, IDC_PIN, IDC_SIZEALL,
+ IDC_SIZENESW, IDC_SIZENS, IDC_SIZENWSE, IDC_SIZEWE, IDC_UPARROW, IDC_WAIT,
+ },
};
#[inline]
@@ -115,7 +117,7 @@ impl Default for DefaultCursors {
}
unsafe fn pid_to_exe_path(pid: u32) -> Result<PathBuf, windows::core::Error> {
- let handle = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, pid)?;
+ let handle = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, false, pid)?;
if handle.is_invalid() {
tracing::error!("Invalid PID {}", pid);
}
diff --git a/crates/media/src/sources/camera.rs b/crates/media/src/sources/camera.rs
index 8d2945a1f..daf5142db 100644
--- a/crates/media/src/sources/camera.rs
+++ b/crates/media/src/sources/camera.rs
@@ -1,6 +1,6 @@
use flume::{Receiver, Sender};
-use std::time::{Instant, SystemTime};
-use tracing::{error, info, warn};
+use std::time::{Duration, Instant};
+use tracing::{error, info};
use crate::{
data::{FFVideo, VideoInfo},
@@ -13,16 +13,20 @@ pub struct CameraSource {
feed_connection: CameraConnection,
video_info: VideoInfo,
output: Sender<(FFVideo, f64)>,
- start_time: SystemTime,
+ first_frame_instant: Option<Instant>,
+ first_frame_timestamp: Option<Duration>,
+ start_instant: Instant,
}
impl CameraSource {
- pub fn init(feed: &CameraFeed, output: Sender<(FFVideo, f64)>, start_time: SystemTime) -> Self {
+ pub fn init(feed: &CameraFeed, output: Sender<(FFVideo, f64)>, start_instant: Instant) -> Self {
Self {
feed_connection: feed.create_connection(),
video_info: feed.video_info(),
output,
- start_time,
+ first_frame_instant: None,
+ first_frame_timestamp: None,
+ start_instant,
}
}
@@ -30,33 +34,47 @@ impl CameraSource {
self.video_info
}
- fn process_frame(&self, camera_frame: RawCameraFrame) -> Result<(), MediaError> {
- let RawCameraFrame { frame, captured_at } = camera_frame;
- match captured_at.duration_since(self.start_time) {
- Ok(time) => {
- if let Err(_) = self.output.send((frame, time.as_secs_f64())) {
- return Err(MediaError::Any(
- "Pipeline is unreachable! Stopping capture".into(),
- ));
- }
- }
- Err(error) => {
- warn!(
- "Camera frame captured {} millis before start time",
- error.duration().as_millis()
- );
- }
+ fn process_frame(
+ &self,
+ camera_frame: RawCameraFrame,
+ first_frame_instant: Instant,
+ first_frame_timestamp: Duration,
+ ) -> Result<(), MediaError> {
+ let check_skip_send = || {
+ cap_fail::fail_err!("media::sources::camera::skip_send", ());
+
+ Ok::<(), ()>(())
+ };
+
+ if check_skip_send().is_err() {
+ return Ok(());
+ }
+
+ let relative_timestamp = camera_frame.timestamp - first_frame_timestamp;
+
+ if let Err(_) = self.output.send((
+ camera_frame.frame,
+ (first_frame_instant + relative_timestamp - self.start_instant).as_secs_f64(),
+ )) {
+ return Err(MediaError::Any(
+ "Pipeline is unreachable! Stopping capture".into(),
+ ));
}
Ok(())
}
- fn pause_and_drain_frames(&self, frames_rx: Receiver<RawCameraFrame>) {
+ fn pause_and_drain_frames(&mut self, frames_rx: Receiver<RawCameraFrame>) {
let frames: Vec<RawCameraFrame> = frames_rx.drain().collect();
drop(frames_rx);
for frame in frames {
- if let Err(error) = self.process_frame(frame) {
+ let first_frame_instant = *self.first_frame_instant.get_or_insert(frame.refrence_time);
+ let first_frame_timestamp = *self.first_frame_timestamp.get_or_insert(frame.timestamp);
+
+ if let Err(error) =
+ self.process_frame(frame, first_frame_instant, first_frame_timestamp)
+ {
eprintln!("{error}");
break;
}
@@ -86,7 +104,14 @@ impl PipelineSourceTask for CameraSource {
match control_signal.last() {
Some(Control::Play) => match frames.drain().last().or_else(|| frames.recv().ok()) {
Some(frame) => {
- if let Err(error) = self.process_frame(frame) {
+ let first_frame_instant =
+ *self.first_frame_instant.get_or_insert(frame.refrence_time);
+ let first_frame_timestamp =
+ *self.first_frame_timestamp.get_or_insert(frame.timestamp);
+
+ if let Err(error) =
+ self.process_frame(frame, first_frame_instant, first_frame_timestamp)
+ {
eprintln!("{error}");
break;
}
diff --git a/crates/media/src/sources/screen_capture.rs b/crates/media/src/sources/screen_capture.rs
index 4ba255680..d0ffcd276 100644
--- a/crates/media/src/sources/screen_capture.rs
+++ b/crates/media/src/sources/screen_capture.rs
@@ -12,6 +12,8 @@ use serde::{Deserialize, Serialize};
use specta::Type;
use std::{collections::HashMap, ops::ControlFlow, sync::Arc, time::SystemTime};
use tracing::{debug, error, info, trace, warn};
+#[cfg(target_os = "windows")]
+use windows::Win32::{Foundation::HWND, Graphics::Gdi::HMONITOR};
use crate::{
data::{AudioInfo, FFVideo, PlanarData, RawVideoFormat, VideoInfo},
@@ -934,9 +936,11 @@ pub fn get_target_fps(target: &scap::Target) -> Result<u32, String> {
}
#[cfg(target_os = "windows")]
match target {
- scap::Target::Display(display) => platform::get_display_refresh_rate(display.raw_handle),
+ scap::Target::Display(display) => {
+ platform::get_display_refresh_rate(HMONITOR(display.raw_handle.0))
+ }
scap::Target::Window(window) => platform::get_display_refresh_rate(
- platform::display_for_window(window.raw_handle)
+ platform::display_for_window(HWND(window.raw_handle.0))
.ok_or_else(|| "failed to get display for window".to_string())?,
),
}
@@ -961,9 +965,9 @@ fn display_for_target<'a>(
}
#[cfg(windows)]
{
- let id = platform::display_for_window(window.raw_handle)?;
+ let id = platform::display_for_window(HWND(window.raw_handle.0))?;
targets.iter().find(|t| match t {
- scap::Target::Display(d) => d.raw_handle == id,
+ scap::Target::Display(d) => d.raw_handle.0 == id.0,
_ => false,
})
}
diff --git a/crates/project/Cargo.toml b/crates/project/Cargo.toml
index 24e579be2..8c23f1023 100644
--- a/crates/project/Cargo.toml
+++ b/crates/project/Cargo.toml
@@ -9,7 +9,7 @@ workspace = true
[dependencies]
specta.workspace = true
-serde = { version = "1", features = ["derive"] }
+serde = { workspace = true }
serde_json = "1.0.127"
either = "1.13.0"
relative-path = { version = "1.9.3", features = ["serde"] }
diff --git a/crates/recording/Cargo.toml b/crates/recording/Cargo.toml
index 46da32cf2..e5ca02287 100644
--- a/crates/recording/Cargo.toml
+++ b/crates/recording/Cargo.toml
@@ -21,11 +21,11 @@ thiserror.workspace = true
ffmpeg = { workspace = true }
scap.workspace = true
-serde = { version = "1", features = ["derive"] }
+serde = { workspace = true }
serde_json = "1"
chrono = "0.4.38"
tracing.workspace = true
-device_query = "2.1.0"
+device_query = "4.0.1"
image = "0.25.2"
either = "1.13.0"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
diff --git a/crates/recording/src/cursor.rs b/crates/recording/src/cursor.rs
index bd03d9369..27dea0132 100644
--- a/crates/recording/src/cursor.rs
+++ b/crates/recording/src/cursor.rs
@@ -328,7 +328,7 @@ fn get_cursor_image_data() -> Option<CursorData> {
// Get icon info
let mut icon_info = ICONINFO::default();
- if GetIconInfo(cursor_info.hCursor, &mut icon_info).is_err() {
+ if GetIconInfo(cursor_info.hCursor.into(), &mut icon_info).is_err() {
return None;
}
@@ -341,24 +341,24 @@ fn get_cursor_image_data() -> Option<CursorData> {
};
if GetObjectA(
- bitmap_handle,
+ bitmap_handle.into(),
std::mem::size_of::<BITMAP>() as i32,
Some(&mut bitmap as *mut _ as *mut _),
) == 0
{
// Clean up handles
if !icon_info.hbmColor.is_invalid() {
- DeleteObject(icon_info.hbmColor);
+ DeleteObject(icon_info.hbmColor.into());
}
if !icon_info.hbmMask.is_invalid() {
- DeleteObject(icon_info.hbmMask);
+ DeleteObject(icon_info.hbmMask.into());
}
return None;
}
// Create DCs
- let screen_dc = GetDC(HWND::default());
- let mem_dc = CreateCompatibleDC(screen_dc);
+ let screen_dc = GetDC(Some(HWND::default()));
+ let mem_dc = CreateCompatibleDC(Some(screen_dc));
// Get cursor dimensions
let width = bitmap.bmWidth;
@@ -391,17 +391,24 @@ fn get_cursor_image_data() -> Option<CursorData> {
// Create DIB section
let mut bits: *mut std::ffi::c_void = std::ptr::null_mut();
- let dib = CreateDIBSection(mem_dc, &bitmap_info, DIB_RGB_COLORS, &mut bits, None, 0);
+ let dib = CreateDIBSection(
+ Some(mem_dc),
+ &bitmap_info,
+ DIB_RGB_COLORS,
+ &mut bits,
+ None,
+ 0,
+ );
if dib.is_err() {
// Clean up
DeleteDC(mem_dc);
- ReleaseDC(HWND::default(), screen_dc);
+ ReleaseDC(Some(HWND::default()), screen_dc);
if !icon_info.hbmColor.is_invalid() {
- DeleteObject(icon_info.hbmColor);
+ DeleteObject(icon_info.hbmColor.into());
}
if !icon_info.hbmMask.is_invalid() {
- DeleteObject(icon_info.hbmMask);
+ DeleteObject(icon_info.hbmMask.into());
}
return None;
}
@@ -409,14 +416,14 @@ fn get_cursor_image_data() -> Option<CursorData> {
let dib = dib.unwrap();
// Select DIB into DC
- let old_bitmap = SelectObject(mem_dc, dib);
+ let old_bitmap = SelectObject(mem_dc, dib.into());
// Draw the cursor onto our bitmap with transparency
if DrawIconEx(
mem_dc,
0,
0,
- cursor_info.hCursor,
+ cursor_info.hCursor.into(),
0, // Use actual size
0, // Use actual size
0,
@@ -427,14 +434,14 @@ fn get_cursor_image_data() -> Option<CursorData> {
{
// Clean up
SelectObject(mem_dc, old_bitmap);
- DeleteObject(dib);
+ DeleteObject(dib.into());
DeleteDC(mem_dc);
- ReleaseDC(HWND::default(), screen_dc);
+ ReleaseDC(Some(HWND::default()), screen_dc);
if !icon_info.hbmColor.is_invalid() {
- DeleteObject(icon_info.hbmColor);
+ DeleteObject(icon_info.hbmColor.into());
}
if !icon_info.hbmMask.is_invalid() {
- DeleteObject(icon_info.hbmMask);
+ DeleteObject(icon_info.hbmMask.into());
}
return None;
}
@@ -459,14 +466,14 @@ fn get_cursor_image_data() -> Option<CursorData> {
// Cleanup
SelectObject(mem_dc, old_bitmap);
- DeleteObject(dib);
+ DeleteObject(dib.into());
DeleteDC(mem_dc);
- ReleaseDC(HWND::default(), screen_dc);
+ ReleaseDC(Some(HWND::default()), screen_dc);
if !icon_info.hbmColor.is_invalid() {
- DeleteObject(icon_info.hbmColor);
+ DeleteObject(icon_info.hbmColor.into());
}
if !icon_info.hbmMask.is_invalid() {
- DeleteObject(icon_info.hbmMask);
+ DeleteObject(icon_info.hbmMask.into());
}
// Process the image data to ensure proper alpha channel
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rs
index 7e5b8e149..3869dcab8 100644
--- a/crates/recording/src/studio_recording.rs
+++ b/crates/recording/src/studio_recording.rs
@@ -54,7 +54,7 @@ pub struct StudioRecordingActor {
recording_dir: PathBuf,
fps: u32,
segments: Vec<StudioRecordingSegment>,
- start_time: SystemTime,
+ start_instant: Instant,
}
pub struct StudioRecordingSegment {
@@ -142,15 +142,15 @@ pub async fn spawn_studio_recording_actor<'a>(
let segments_dir = ensure_dir(&content_dir.join("segments"))?;
let cursors_dir = ensure_dir(&content_dir.join("cursors"))?;
+ // TODO: move everything to start_instant
let start_time = SystemTime::now();
-
- // let bounds = screen_source.get_bounds().clone();
+ let start_instant = Instant::now();
// debug!("screen capture: {screen_source:#?}");
if let Some(camera_feed) = &camera_feed {
let camera_feed = camera_feed.lock().await;
- debug!("camera device info: {:#?}", camera_feed.camera_info());
+ // debug!("camera device info: {:#?}", camera_feed.camera_info());
debug!("camera video info: {:#?}", camera_feed.video_info());
}
@@ -168,6 +168,7 @@ pub async fn spawn_studio_recording_actor<'a>(
camera_feed,
custom_cursor_capture,
start_time,
+ start_instant,
);
let index = 0;
@@ -194,7 +195,7 @@ pub async fn spawn_studio_recording_actor<'a>(
recording_dir,
fps,
segments: Vec::new(),
- start_time,
+ start_instant,
};
let mut state = StudioRecordingActorState::Recording {
@@ -556,6 +557,7 @@ struct SegmentPipelineFactory {
camera_feed: Option<Arc<Mutex<CameraFeed>>>,
custom_cursor_capture: bool,
start_time: SystemTime,
+ start_instant: Instant,
index: u32,
}
@@ -569,6 +571,7 @@ impl SegmentPipelineFactory {
camera_feed: Option<Arc<Mutex<CameraFeed>>>,
custom_cursor_capture: bool,
start_time: SystemTime,
+ start_instant: Instant,
) -> Self {
Self {
segments_dir,
@@ -579,6 +582,7 @@ impl SegmentPipelineFactory {
camera_feed,
custom_cursor_capture,
start_time,
+ start_instant,
index: 0,
}
}
@@ -605,7 +609,8 @@ impl SegmentPipelineFactory {
cursors,
next_cursors_id,
self.custom_cursor_capture,
- self.start_time.clone(),
+ self.start_time,
+ self.start_instant,
)
.await?;
@@ -628,6 +633,7 @@ async fn create_segment_pipeline(
next_cursors_id: u32,
custom_cursor_capture: bool,
start_time: SystemTime,
+ start_instant: Instant,
) -> Result<
(
StudioRecordingPipeline,
@@ -781,7 +787,7 @@ async fn create_segment_pipeline(
let camera = if let Some(camera_feed) = camera_feed {
let (tx, rx) = flume::bounded(8);
- let camera_source = CameraSource::init(camera_feed, tx, start_time);
+ let camera_source = CameraSource::init(camera_feed, tx, start_instant);
let camera_config = camera_source.info();
let output_path = dir.join("camera.mp4");
diff --git a/crates/rendering/Cargo.toml b/crates/rendering/Cargo.toml
index 186f25cb3..be9653265 100644
--- a/crates/rendering/Cargo.toml
+++ b/crates/rendering/Cargo.toml
@@ -20,7 +20,7 @@ futures = "0.3.30"
futures-intrusive = "0.5.0"
image = "0.25.2"
log = "0.4"
-serde = "1.0.209"
+serde = { workspace = true }
specta.workspace = true
thiserror.workspace = true
wgpu.workspace = true
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs
index e26df109e..d82d5b076 100644
--- a/crates/rendering/src/lib.rs
+++ b/crates/rendering/src/lib.rs
@@ -996,6 +996,7 @@ impl RendererLayers {
label: Some("Render Pass"),
color_attachments: &[Some(wgpu::RenderPassColorAttachment {
view: $view,
+ depth_slice: None,
resolve_target: None,
ops: wgpu::Operations {
load: $load,
diff --git a/crates/utils/Cargo.toml b/crates/utils/Cargo.toml
index 891cb98a4..2ff6ffe0b 100644
--- a/crates/utils/Cargo.toml
+++ b/crates/utils/Cargo.toml
@@ -22,7 +22,7 @@ windows-sys = "0.52.0"
futures = "0.3.31"
tokio = { workspace = true, features = ["net", "io-util"] }
uuid = "1.11.0"
-serde = { version = "1.0", features = ["derive"] }
+serde = { workspace = true }
serde_json = "1.0"
flume = "0.11.0"
tracing.workspace = true
diff --git a/packages/ui-solid/src/auto-imports.d.ts b/packages/ui-solid/src/auto-imports.d.ts
index d20fda030..6d1f4abd4 100644
--- a/packages/ui-solid/src/auto-imports.d.ts
+++ b/packages/ui-solid/src/auto-imports.d.ts
@@ -8,34 +8,26 @@ export {}
declare global {
const IconCapArrows: typeof import('~icons/cap/arrows.jsx')['default']
const IconCapAudioOn: typeof import('~icons/cap/audio-on.jsx')['default']
- const IconCapAuto: typeof import("~icons/cap/auto.jsx")["default"]
const IconCapBgBlur: typeof import('~icons/cap/bg-blur.jsx')['default']
- const IconCapBlur: typeof import("~icons/cap/blur.jsx")["default"]
const IconCapCamera: typeof import('~icons/cap/camera.jsx')['default']
const IconCapCaptions: typeof import('~icons/cap/captions.jsx')['default']
- const IconCapCheck: typeof import("~icons/cap/check.jsx")["default"]
const IconCapChevronDown: typeof import('~icons/cap/chevron-down.jsx')['default']
const IconCapCircle: typeof import('~icons/cap/circle.jsx')['default']
const IconCapCircleCheck: typeof import('~icons/cap/circle-check.jsx')['default']
const IconCapCirclePlus: typeof import('~icons/cap/circle-plus.jsx')['default']
const IconCapCircleX: typeof import('~icons/cap/circle-x.jsx')['default']
- const IconCapClock: typeof import("~icons/cap/clock.jsx")["default"]
const IconCapCopy: typeof import('~icons/cap/copy.jsx')['default']
const IconCapCorners: typeof import('~icons/cap/corners.jsx')['default']
const IconCapCrop: typeof import('~icons/cap/crop.jsx')['default']
const IconCapCursor: typeof import('~icons/cap/cursor.jsx')['default']
- const IconCapDownload: typeof import('~icons/cap/download.jsx')['default']
const IconCapEditor: typeof import('~icons/cap/editor.jsx')['default']
const IconCapEnlarge: typeof import('~icons/cap/enlarge.jsx')['default']
const IconCapFile: typeof import('~icons/cap/file.jsx')['default']
const IconCapFilmCut: typeof import('~icons/cap/film-cut.jsx')['default']
- const IconCapFrameFirst: typeof import("~icons/cap/frame-first.jsx")["default"]
- const IconCapFrameLast: typeof import("~icons/cap/frame-last.jsx")["default"]
const IconCapGauge: typeof import('~icons/cap/gauge.jsx')['default']
const IconCapHotkeys: typeof import('~icons/cap/hotkeys.jsx')['default']
const IconCapImage: typeof import('~icons/cap/image.jsx')['default']
const IconCapInfo: typeof import('~icons/cap/info.jsx')['default']
- const IconCapInset: typeof import("~icons/cap/inset.jsx")["default"]
const IconCapInstant: typeof import('~icons/cap/instant.jsx')['default']
const IconCapLayout: typeof import('~icons/cap/layout.jsx')['default']
const IconCapLink: typeof import('~icons/cap/link.jsx')['default']
@@ -45,8 +37,6 @@ declare global {
const IconCapMessageBubble: typeof import('~icons/cap/message-bubble.jsx')['default']
const IconCapMicrophone: typeof import('~icons/cap/microphone.jsx')['default']
const IconCapMoreVertical: typeof import('~icons/cap/more-vertical.jsx')['default']
- const IconCapMoveLeft: typeof import("~icons/cap/move-left.jsx")["default"]
- const IconCapMoveRight: typeof import("~icons/cap/move-right.jsx")["default"]
const IconCapNext: typeof import('~icons/cap/next.jsx')['default']
const IconCapPadding: typeof import('~icons/cap/padding.jsx')['default']
const IconCapPause: typeof import('~icons/cap/pause.jsx')['default']
@@ -56,30 +46,21 @@ declare global {
const IconCapPresets: typeof import('~icons/cap/presets.jsx')['default']
const IconCapPrev: typeof import('~icons/cap/prev.jsx')['default']
const IconCapRedo: typeof import('~icons/cap/redo.jsx')['default']
- const IconCapRefresh: typeof import('~icons/cap/refresh.jsx')['default']
const IconCapRestart: typeof import('~icons/cap/restart.jsx')['default']
const IconCapScissors: typeof import('~icons/cap/scissors.jsx')['default']
const IconCapSettings: typeof import('~icons/cap/settings.jsx')['default']
const IconCapShadow: typeof import('~icons/cap/shadow.jsx')['default']
- const IconCapSize: typeof import("~icons/cap/size.jsx")["default"]
const IconCapSquare: typeof import('~icons/cap/square.jsx')['default']
- const IconCapStop: typeof import("~icons/cap/stop.jsx")["default"]
const IconCapStopCircle: typeof import('~icons/cap/stop-circle.jsx')['default']
const IconCapTrash: typeof import('~icons/cap/trash.jsx')['default']
const IconCapUndo: typeof import('~icons/cap/undo.jsx')['default']
const IconCapUpload: typeof import('~icons/cap/upload.jsx')['default']
- const IconCapWindow: typeof import('~icons/cap/window.jsx')['default']
- const IconCapX: typeof import('~icons/cap/x.jsx')['default']
const IconCapZoomIn: typeof import('~icons/cap/zoom-in.jsx')['default']
const IconCapZoomOut: typeof import('~icons/cap/zoom-out.jsx')['default']
const IconHugeiconsEaseCurveControlPoints: typeof import('~icons/hugeicons/ease-curve-control-points.jsx')['default']
- const IconIcBaselineMonitor: typeof import("~icons/ic/baseline-monitor.jsx")["default"]
- const IconIcRoundSearch: typeof import("~icons/ic/round-search.jsx")["default"]
const IconLucideBell: typeof import('~icons/lucide/bell.jsx')['default']
const IconLucideBug: typeof import('~icons/lucide/bug.jsx')['default']
- const IconLucideCamera: typeof import("~icons/lucide/camera.jsx")["default"]
const IconLucideCheck: typeof import('~icons/lucide/check.jsx')['default']
- const IconLucideChevronDown: typeof import("~icons/lucide/chevron-down.jsx")["default"]
const IconLucideClock: typeof import('~icons/lucide/clock.jsx')['default']
const IconLucideDatabase: typeof import('~icons/lucide/database.jsx')['default']
const IconLucideEdit: typeof import('~icons/lucide/edit.jsx')['default']
@@ -87,25 +68,16 @@ declare global {
const IconLucideFolder: typeof import('~icons/lucide/folder.jsx')['default']
const IconLucideGift: typeof import('~icons/lucide/gift.jsx')['default']
const IconLucideHardDrive: typeof import('~icons/lucide/hard-drive.jsx')['default']
- const IconLucideLayoutGrid: typeof import("~icons/lucide/layout-grid.jsx")["default"]
const IconLucideLoaderCircle: typeof import('~icons/lucide/loader-circle.jsx')['default']
- const IconLucideMessageCircle: typeof import("~icons/lucide/message-circle.jsx")["default"]
- const IconLucideMessageSquare: typeof import("~icons/lucide/message-square.jsx")["default"]
const IconLucideMessageSquarePlus: typeof import('~icons/lucide/message-square-plus.jsx')['default']
const IconLucideMicOff: typeof import('~icons/lucide/mic-off.jsx')['default']
const IconLucideMonitor: typeof import('~icons/lucide/monitor.jsx')['default']
- const IconLucideRabbit: typeof import("~icons/lucide/rabbit.jsx")["default"]
- const IconLucideRectangle: typeof import('~icons/lucide/rectangle.jsx')['default']
const IconLucideRectangleHorizontal: typeof import('~icons/lucide/rectangle-horizontal.jsx')['default']
- const IconLucideRectangleSquare: typeof import('~icons/lucide/rectangle-square.jsx')['default']
const IconLucideRotateCcw: typeof import('~icons/lucide/rotate-ccw.jsx')['default']
const IconLucideSearch: typeof import('~icons/lucide/search.jsx')['default']
const IconLucideSquarePlay: typeof import('~icons/lucide/square-play.jsx')['default']
const IconLucideUnplug: typeof import('~icons/lucide/unplug.jsx')['default']
- const IconLucideVideo: typeof import("~icons/lucide/video.jsx")["default"]
const IconLucideVolume2: typeof import('~icons/lucide/volume2.jsx')['default']
const IconLucideVolumeX: typeof import('~icons/lucide/volume-x.jsx')['default']
- const IconLucideX: typeof import('~icons/lucide/x.jsx')['default']
- const IconMdiMonitor: typeof import("~icons/mdi/monitor.jsx")["default"]
const IconPhMonitorBold: typeof import('~icons/ph/monitor-bold.jsx')['default']
}