diff --git a/.gitignore b/.gitignore
index bf4ca84..41e108c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,8 @@
.sqlx
.env
data.db
+/flamegraph.svg
+/.zed/
+/perf.data
+/perf.data.old
+.aider*
diff --git a/Cargo.lock b/Cargo.lock
index 9de55f7..c671c99 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "ab_glyph"
-version = "0.2.31"
+version = "0.2.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e074464580a518d16a7126262fffaaa47af89d4099d4cb403f8ed938ba12ee7d"
+checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2"
dependencies = [
"ab_glyph_rasterizer",
"owned_ttf_parser",
@@ -21,12 +21,12 @@ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
[[package]]
name = "accesskit"
version = "0.16.0"
-source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13#956955342dadab7e588e21be726817fca39510f3"
+source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13-rc#c46afc041b1968a5af0186fa6aba3ea9cf24c8c3"
[[package]]
name = "accesskit_atspi_common"
version = "0.9.0"
-source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13#956955342dadab7e588e21be726817fca39510f3"
+source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13-rc#c46afc041b1968a5af0186fa6aba3ea9cf24c8c3"
dependencies = [
"accesskit",
"accesskit_consumer",
@@ -39,7 +39,7 @@ dependencies = [
[[package]]
name = "accesskit_consumer"
version = "0.24.0"
-source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13#956955342dadab7e588e21be726817fca39510f3"
+source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13-rc#c46afc041b1968a5af0186fa6aba3ea9cf24c8c3"
dependencies = [
"accesskit",
"immutable-chunkmap",
@@ -48,7 +48,7 @@ dependencies = [
[[package]]
name = "accesskit_macos"
version = "0.17.0"
-source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13#956955342dadab7e588e21be726817fca39510f3"
+source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13-rc#c46afc041b1968a5af0186fa6aba3ea9cf24c8c3"
dependencies = [
"accesskit",
"accesskit_consumer",
@@ -61,7 +61,7 @@ dependencies = [
[[package]]
name = "accesskit_unix"
version = "0.12.0"
-source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13#956955342dadab7e588e21be726817fca39510f3"
+source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13-rc#c46afc041b1968a5af0186fa6aba3ea9cf24c8c3"
dependencies = [
"accesskit",
"accesskit_atspi_common",
@@ -76,7 +76,7 @@ dependencies = [
[[package]]
name = "accesskit_windows"
version = "0.22.0"
-source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13#956955342dadab7e588e21be726817fca39510f3"
+source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13-rc#c46afc041b1968a5af0186fa6aba3ea9cf24c8c3"
dependencies = [
"accesskit",
"accesskit_consumer",
@@ -88,7 +88,7 @@ dependencies = [
[[package]]
name = "accesskit_winit"
version = "0.22.0"
-source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13#956955342dadab7e588e21be726817fca39510f3"
+source = "git+https://github.com/wash2/accesskit?tag=iced-xdg-surface-0.13-rc#c46afc041b1968a5af0186fa6aba3ea9cf24c8c3"
dependencies = [
"accesskit",
"accesskit_macos",
@@ -100,9 +100,9 @@ dependencies = [
[[package]]
name = "addr2line"
-version = "0.24.2"
+version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
+checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b"
dependencies = [
"gimli",
]
@@ -141,6 +141,15 @@ version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd"
+[[package]]
+name = "aligned-vec"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b"
+dependencies = [
+ "equator",
+]
+
[[package]]
name = "allocator-api2"
version = "0.2.21"
@@ -160,7 +169,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed7572b7ba83a31e20d1b48970ee402d2e3e0537dcfe0a3ff4d6eb7508617d43"
dependencies = [
"alsa-sys",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cfg-if",
"libc",
]
@@ -182,14 +191,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef6978589202a00cd7e118380c448a08b6ed394c3a8df3a430d0898e3a42d046"
dependencies = [
"android-properties",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cc",
"cesu8",
"jni",
"jni-sys",
"libc",
"log",
- "ndk 0.9.0",
+ "ndk",
"ndk-context",
"ndk-sys 0.6.0+11769913",
"num_enum",
@@ -202,12 +211,6 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
-[[package]]
-name = "android-tzdata"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
-
[[package]]
name = "android_system_properties"
version = "0.1.5"
@@ -219,9 +222,9 @@ dependencies = [
[[package]]
name = "anstream"
-version = "0.6.20"
+version = "0.6.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192"
+checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
dependencies = [
"anstyle",
"anstyle-parse",
@@ -234,9 +237,9 @@ dependencies = [
[[package]]
name = "anstyle"
-version = "1.0.11"
+version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd"
+checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
[[package]]
name = "anstyle-parse"
@@ -267,6 +270,12 @@ dependencies = [
"windows-sys 0.60.2",
]
+[[package]]
+name = "anyhow"
+version = "1.0.100"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
+
[[package]]
name = "apply"
version = "0.3.0"
@@ -282,6 +291,29 @@ dependencies = [
"num-traits",
]
+[[package]]
+name = "arbitrary"
+version = "1.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
+
+[[package]]
+name = "arc-swap"
+version = "1.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457"
+
+[[package]]
+name = "arg_enum_proc_macro"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.106",
+]
+
[[package]]
name = "arrayref"
version = "0.3.9"
@@ -327,7 +359,27 @@ dependencies = [
"wayland-backend",
"wayland-client",
"wayland-protocols",
- "zbus 5.9.0",
+ "zbus 5.11.0",
+]
+
+[[package]]
+name = "ashpd"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da0986d5b4f0802160191ad75f8d33ada000558757db3defb70299ca95d9fcbd"
+dependencies = [
+ "enumflags2",
+ "futures-channel",
+ "futures-util",
+ "rand 0.9.2",
+ "serde",
+ "serde_repr",
+ "tokio",
+ "url",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "zbus 5.11.0",
]
[[package]]
@@ -366,9 +418,9 @@ dependencies = [
[[package]]
name = "async-executor"
-version = "1.13.2"
+version = "1.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb812ffb58524bdd10860d7d974e2f01cc0950c2438a74ee5ec2e2280c6c4ffa"
+checksum = "497c00e0fd83a72a79a39fcbd8e3e2f055d6f6c7e025f3b3d91f4f8e76527fb8"
dependencies = [
"async-task",
"concurrent-queue",
@@ -400,20 +452,20 @@ dependencies = [
[[package]]
name = "async-io"
-version = "2.5.0"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19634d6336019ef220f09fd31168ce5c184b295cbf80345437cc36094ef223ca"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
dependencies = [
- "async-lock 3.4.1",
+ "autocfg",
"cfg-if",
"concurrent-queue",
"futures-io",
"futures-lite 2.6.1",
"parking",
- "polling 3.10.0",
- "rustix 1.0.8",
+ "polling 3.11.0",
+ "rustix 1.1.2",
"slab",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -455,12 +507,12 @@ dependencies = [
[[package]]
name = "async-process"
-version = "2.4.0"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65daa13722ad51e6ab1a1b9c01299142bc75135b337923cfa10e79bbbd669f00"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
dependencies = [
"async-channel",
- "async-io 2.5.0",
+ "async-io 2.6.0",
"async-lock 3.4.1",
"async-signal",
"async-task",
@@ -468,7 +520,7 @@ dependencies = [
"cfg-if",
"event-listener 5.4.1",
"futures-lite 2.6.1",
- "rustix 1.0.8",
+ "rustix 1.1.2",
]
[[package]]
@@ -484,20 +536,20 @@ dependencies = [
[[package]]
name = "async-signal"
-version = "0.2.12"
+version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f567af260ef69e1d52c2b560ce0ea230763e6fbb9214a85d768760a920e3e3c1"
+checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c"
dependencies = [
- "async-io 2.5.0",
+ "async-io 2.6.0",
"async-lock 3.4.1",
"atomic-waker",
"cfg-if",
"futures-core",
"futures-io",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"signal-hook-registry",
"slab",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -615,10 +667,33 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
-name = "backtrace"
-version = "0.3.75"
+name = "av1-grain"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002"
+checksum = "4f3efb2ca85bc610acfa917b5aaa36f3fcbebed5b3182d7f877b02531c4b80c8"
+dependencies = [
+ "anyhow",
+ "arrayvec",
+ "log",
+ "nom",
+ "num-rational",
+ "v_frame",
+]
+
+[[package]]
+name = "avif-serialize"
+version = "0.8.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47c8fbc0f831f4519fe8b810b6a7a91410ec83031b8233f730a0480029f6a23f"
+dependencies = [
+ "arrayvec",
+]
+
+[[package]]
+name = "backtrace"
+version = "0.3.76"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6"
dependencies = [
"addr2line",
"cfg-if",
@@ -626,7 +701,7 @@ dependencies = [
"miniz_oxide",
"object",
"rustc-demangle",
- "windows-targets 0.52.6",
+ "windows-link",
]
[[package]]
@@ -657,12 +732,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55248b47b0caf0546f7988906588779981c43bb1bc9d0c44087278f80cdb44ba"
[[package]]
-name = "bindgen"
-version = "0.72.0"
+name = "basic-toml"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f72209734318d0b619a5e0f5129918b848c416e122a3c4ce054e03cb87b726f"
+checksum = "ba62675e8242a4c4e806d12f11d136e626e6c8361d6b829310732241652a178a"
dependencies = [
- "bitflags 2.9.2",
+ "serde",
+]
+
+[[package]]
+name = "bindgen"
+version = "0.71.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
+dependencies = [
+ "bitflags 2.9.4",
"cexpr",
"clang-sys",
"itertools 0.13.0",
@@ -689,6 +773,12 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2c54ff287cfc0a34f38a6b832ea1bd8e448a330b3e40a50859e6488bee07f22"
+[[package]]
+name = "bit_field"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
+
[[package]]
name = "bitflags"
version = "1.3.2"
@@ -697,13 +787,19 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
-version = "2.9.2"
+version = "2.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a65b545ab31d687cff52899d4890855fec459eb6afe0da6417b8a18da87aa29"
+checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
dependencies = [
"serde",
]
+[[package]]
+name = "bitstream-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6099cdc01846bc367c4e7dd630dc5966dccf36b652fae7a74e17b640411a91b2"
+
[[package]]
name = "block"
version = "0.1.6"
@@ -730,11 +826,11 @@ dependencies = [
[[package]]
name = "block2"
-version = "0.6.1"
+version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "340d2f0bdb2a43c1d3cd40513185b2bd7def0aa1052f956455114bc98f82dcf2"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
dependencies = [
- "objc2 0.6.2",
+ "objc2 0.6.3",
]
[[package]]
@@ -750,6 +846,23 @@ dependencies = [
"piper",
]
+[[package]]
+name = "bstr"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "234113d19d0d7d613b40e86fb654acf958910802bcceab913a4f9e7cda03b1a4"
+dependencies = [
+ "memchr",
+ "regex-automata",
+ "serde",
+]
+
+[[package]]
+name = "built"
+version = "0.7.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56ed6191a7e78c36abdb16ab65341eefd73d64d303fffccdbb00d51e4205967b"
+
[[package]]
name = "bumpalo"
version = "3.19.0"
@@ -764,18 +877,18 @@ checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06"
[[package]]
name = "bytemuck"
-version = "1.23.2"
+version = "1.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3995eaeebcdf32f91f980d360f78732ddc061097ab4e39991ae7a6ace9194677"
+checksum = "1fbdf580320f38b612e485521afda1ee26d10cc9884efaaa750d383e13e3c5f4"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
-version = "1.10.1"
+version = "1.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f154e572231cb6ba2bd1176980827e3d5dc04cc183a75dea38109fbdd672d29"
+checksum = "f9abbd1bc6865053c427f7198e6af43bfdedc55ab791faed4fbd361d789575ff"
dependencies = [
"proc-macro2",
"quote",
@@ -806,32 +919,58 @@ version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"log",
- "polling 3.10.0",
+ "polling 3.11.0",
"rustix 0.38.44",
"slab",
"thiserror 1.0.69",
]
+[[package]]
+name = "calloop"
+version = "0.14.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb9f6e1368bd4621d2c86baa7e37de77a938adf5221e5dd3d6133340101b309e"
+dependencies = [
+ "bitflags 2.9.4",
+ "polling 3.11.0",
+ "rustix 1.1.2",
+ "slab",
+ "tracing",
+]
+
[[package]]
name = "calloop-wayland-source"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
dependencies = [
- "calloop",
+ "calloop 0.13.0",
"rustix 0.38.44",
"wayland-backend",
"wayland-client",
]
[[package]]
-name = "cc"
-version = "1.2.33"
+name = "calloop-wayland-source"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ee0f8803222ba5a7e2777dd72ca451868909b1ac410621b676adf07280e9b5f"
+checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa"
dependencies = [
+ "calloop 0.14.3",
+ "rustix 1.1.2",
+ "wayland-backend",
+ "wayland-client",
+]
+
+[[package]]
+name = "cc"
+version = "1.2.41"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac9fe6cdbb24b6ade63616c0a0688e45bb56732262c158df3c0c4bea4ca47cb7"
+dependencies = [
+ "find-msvc-tools",
"jobserver",
"libc",
"shlex",
@@ -854,12 +993,22 @@ dependencies = [
[[package]]
name = "cfg-expr"
-version = "0.20.2"
+version = "0.15.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8d458d63f0f0f482c8da9b7c8b76c21bd885a02056cc94c6404d861ca2b8206"
+checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"
dependencies = [
"smallvec",
- "target-lexicon",
+ "target-lexicon 0.12.16",
+]
+
+[[package]]
+name = "cfg-expr"
+version = "0.20.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a2c5f3bf25ec225351aa1c8e230d04d880d3bd89dea133537dafad4ae291e5c"
+dependencies = [
+ "smallvec",
+ "target-lexicon 0.13.2",
]
[[package]]
@@ -882,11 +1031,10 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "chrono"
-version = "0.4.41"
+version = "0.4.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d"
+checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
dependencies = [
- "android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
@@ -908,9 +1056,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.5.45"
+version = "4.5.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fc0e74a703892159f5ae7d3aac52c8e6c392f5ae5f359c70b5881d60aaac318"
+checksum = "f4512b90fa68d3a9932cea5184017c5d200f5921df706d45e853537dea51508f"
dependencies = [
"clap_builder",
"clap_derive",
@@ -918,9 +1066,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.5.44"
+version = "4.5.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3e7f4214277f3c7aa526a59dd3fbe306a370daee1f8b7b8c987069cd8e888a8"
+checksum = "0025e98baa12e766c67ba13ff4695a887a1eba19569aad00a472546795bd6730"
dependencies = [
"anstream",
"anstyle",
@@ -931,9 +1079,9 @@ dependencies = [
[[package]]
name = "clap_derive"
-version = "4.5.45"
+version = "4.5.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14cb31bb0a7d536caef2639baa7fad459e15c3144efefa6dbd1c84562c4739f6"
+checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671"
dependencies = [
"heck 0.5.0",
"proc-macro2",
@@ -943,15 +1091,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.7.5"
+version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675"
-
-[[package]]
-name = "claxon"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4bfbf56724aa9eca8afa4fcfadeb479e722935bb2a0900c2d37e0cc477af0688"
+checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
[[package]]
name = "clipboard-win"
@@ -1145,6 +1287,18 @@ dependencies = [
"libc",
]
+[[package]]
+name = "core-text"
+version = "20.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9d2790b5c08465d49f8dc05c8bcae9fea467855947db39b0f8145c091aaced5"
+dependencies = [
+ "core-foundation",
+ "core-graphics",
+ "foreign-types",
+ "libc",
+]
+
[[package]]
name = "core_maths"
version = "0.1.1"
@@ -1156,32 +1310,27 @@ dependencies = [
[[package]]
name = "coreaudio-rs"
-version = "0.11.3"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "321077172d79c662f64f5071a03120748d5bb652f5231570141be24cfcd2bace"
+checksum = "1aae284fbaf7d27aa0e292f7677dfbe26503b0d555026f702940805a630eac17"
dependencies = [
"bitflags 1.3.2",
- "core-foundation-sys",
- "coreaudio-sys",
-]
-
-[[package]]
-name = "coreaudio-sys"
-version = "0.2.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ceec7a6067e62d6f931a2baf6f3a751f4a892595bcec1461a3c94ef9949864b6"
-dependencies = [
- "bindgen",
+ "libc",
+ "objc2-audio-toolbox",
+ "objc2-core-audio",
+ "objc2-core-audio-types",
+ "objc2-core-foundation",
]
[[package]]
name = "cosmic-client-toolkit"
version = "0.1.0"
-source = "git+https://github.com/pop-os/cosmic-protocols?rev=178eb0b#178eb0b14a0e5c192f64f6dee6c40341a8e5ee51"
+source = "git+https://github.com/pop-os/cosmic-protocols?rev=d0e95be#d0e95be25e423cfe523b11111a3666ed7aaf0dc4"
dependencies = [
+ "bitflags 2.9.4",
"cosmic-protocols",
"libc",
- "smithay-client-toolkit",
+ "smithay-client-toolkit 0.20.0",
"wayland-client",
"wayland-protocols",
]
@@ -1189,7 +1338,7 @@ dependencies = [
[[package]]
name = "cosmic-config"
version = "0.1.0"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"atomicwrites",
"cosmic-config-derive",
@@ -1199,19 +1348,18 @@ dependencies = [
"iced_futures",
"known-folders",
"notify",
- "once_cell",
- "ron 0.9.0",
+ "ron 0.11.0",
"serde",
"tokio",
"tracing",
- "xdg",
- "zbus 5.9.0",
+ "xdg 3.0.0",
+ "zbus 5.11.0",
]
[[package]]
name = "cosmic-config-derive"
version = "0.1.0"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"quote",
"syn 2.0.106",
@@ -1224,18 +1372,18 @@ source = "git+https://github.com/pop-os/freedesktop-icons#8a05c322c482ff3c69cf34
dependencies = [
"dirs 5.0.1",
"ini_core",
- "memmap2 0.9.7",
- "thiserror 2.0.16",
+ "memmap2 0.9.8",
+ "thiserror 2.0.17",
"tracing",
- "xdg",
+ "xdg 2.5.2",
]
[[package]]
name = "cosmic-protocols"
version = "0.1.0"
-source = "git+https://github.com/pop-os/cosmic-protocols?rev=178eb0b#178eb0b14a0e5c192f64f6dee6c40341a8e5ee51"
+source = "git+https://github.com/pop-os/cosmic-protocols?rev=d0e95be#d0e95be25e423cfe523b11111a3666ed7aaf0dc4"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"wayland-backend",
"wayland-client",
"wayland-protocols",
@@ -1247,41 +1395,41 @@ dependencies = [
[[package]]
name = "cosmic-settings-config"
version = "0.1.0"
-source = "git+https://github.com/pop-os/cosmic-settings-daemon#19f10525ff00d76558147ea060bd856a87122353"
+source = "git+https://github.com/pop-os/cosmic-settings-daemon#68331387e4336c37ce2300bea8638257feab449a"
dependencies = [
"cosmic-config",
- "ron 0.9.0",
+ "ron 0.11.0",
"serde",
"serde_with",
- "thiserror 2.0.16",
"tracing",
- "xkbcommon",
+ "xkbcommon 0.9.0",
]
[[package]]
name = "cosmic-settings-daemon"
version = "0.1.0"
-source = "git+https://github.com/pop-os/dbus-settings-bindings#3b86984332be2c930a3536ab714b843c851fa8ca"
+source = "git+https://github.com/pop-os/dbus-settings-bindings#37cbe4e8c165428178be23a14bd37f19a19d3757"
dependencies = [
- "zbus 5.9.0",
+ "zbus 5.11.0",
]
[[package]]
name = "cosmic-text"
version = "0.14.2"
-source = "git+https://github.com/pop-os/cosmic-text.git#f7033bb0433f6a9ba109007027781ba46ea9ba27"
+source = "git+https://github.com/pop-os/cosmic-text.git#646e04389e1c2e03a85e61946ace06d8fada1fa1"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"fontdb 0.23.0",
+ "harfrust",
+ "linebender_resource_handle",
"log",
"rangemap",
"rustc-hash 1.1.0",
- "rustybuzz",
"self_cell",
+ "skrifa",
"smol_str",
"swash",
"sys-locale",
- "ttf-parser 0.21.1",
"unicode-bidi",
"unicode-linebreak",
"unicode-script",
@@ -1291,37 +1439,39 @@ dependencies = [
[[package]]
name = "cosmic-theme"
version = "0.1.0"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"almost",
"cosmic-config",
"csscolorparser",
"dirs 6.0.0",
- "lazy_static",
"palette",
- "ron 0.9.0",
+ "ron 0.11.0",
"serde",
"serde_json",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
]
[[package]]
name = "cpal"
-version = "0.15.3"
+version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "873dab07c8f743075e57f524c583985fbaf745602acbe916a01539364369a779"
+checksum = "cbd307f43cc2a697e2d1f8bc7a1d824b5269e052209e28883e5bc04d095aaa3f"
dependencies = [
"alsa",
- "core-foundation-sys",
"coreaudio-rs",
"dasp_sample",
"jni",
"js-sys",
"libc",
"mach2",
- "ndk 0.8.0",
+ "ndk",
"ndk-context",
- "oboe",
+ "num-derive",
+ "num-traits",
+ "objc2-audio-toolbox",
+ "objc2-core-audio",
+ "objc2-core-audio-types",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
@@ -1457,7 +1607,7 @@ version = "22.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bdbd1f579714e3c809ebd822c81ef148b1ceaeb3d535352afc73fd0c4c6a0017"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"libloading",
"winapi",
]
@@ -1468,8 +1618,18 @@ version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
dependencies = [
- "darling_core",
- "darling_macro",
+ "darling_core 0.20.11",
+ "darling_macro 0.20.11",
+]
+
+[[package]]
+name = "darling"
+version = "0.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0"
+dependencies = [
+ "darling_core 0.21.3",
+ "darling_macro 0.21.3",
]
[[package]]
@@ -1486,13 +1646,38 @@ dependencies = [
"syn 2.0.106",
]
+[[package]]
+name = "darling_core"
+version = "0.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4"
+dependencies = [
+ "fnv",
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 2.0.106",
+]
+
[[package]]
name = "darling_macro"
version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
dependencies = [
- "darling_core",
+ "darling_core 0.20.11",
+ "quote",
+ "syn 2.0.106",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81"
+dependencies = [
+ "darling_core 0.21.3",
"quote",
"syn 2.0.106",
]
@@ -1505,9 +1690,9 @@ checksum = "0c87e182de0887fd5361989c677c4e8f5000cd9491d6d563161a8f3a5519fc7f"
[[package]]
name = "data-url"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a"
+checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376"
[[package]]
name = "der"
@@ -1522,12 +1707,12 @@ dependencies = [
[[package]]
name = "deranged"
-version = "0.4.0"
+version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e"
+checksum = "a41953f86f8a05768a6cda24def994fd2f424b04ec5c719cf89989779f199071"
dependencies = [
"powerfmt",
- "serde",
+ "serde_core",
]
[[package]]
@@ -1547,7 +1732,7 @@ version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae5c625eda104c228c06ecaf988d1c60e542176bd7a490e60eeda3493244c0c9"
dependencies = [
- "darling",
+ "darling 0.20.11",
"proc-macro2",
"quote",
"syn 2.0.106",
@@ -1621,7 +1806,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.2",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1636,10 +1821,10 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
dependencies = [
- "bitflags 2.9.2",
- "block2 0.6.1",
+ "bitflags 2.9.4",
+ "block2 0.6.2",
"libc",
- "objc2 0.6.2",
+ "objc2 0.6.3",
]
[[package]]
@@ -1667,10 +1852,10 @@ name = "dnd"
version = "0.1.0"
source = "git+https://github.com/pop-os/window_clipboard.git?tag=pop-0.13-2#6b9faab87bea9cebec6ae036906fd67fed254f5f"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"mime 0.1.0",
"raw-window-handle",
- "smithay-client-toolkit",
+ "smithay-client-toolkit 0.19.2",
"smithay-clipboard",
]
@@ -1698,7 +1883,7 @@ checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
[[package]]
name = "dpi"
version = "0.1.1"
-source = "git+https://github.com/pop-os/winit.git?tag=iced-xdg-surface-0.13#1cc02bdab141072eaabad639d74b032fd0fcc62e"
+source = "git+https://github.com/pop-os/winit.git?tag=iced-xdg-surface-0.13-rc#8dfaba290f9a00d3e13be71f1e6f438889cf5546"
[[package]]
name = "drm"
@@ -1706,7 +1891,7 @@ version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0f8a69e60d75ae7dab4ef26a59ca99f2a89d4c142089b537775ae0c198bdcde"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"bytemuck",
"drm-ffi",
"drm-fourcc",
@@ -1739,6 +1924,18 @@ dependencies = [
"linux-raw-sys 0.6.5",
]
+[[package]]
+name = "dwrote"
+version = "0.11.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e1b35532432acc8b19ceed096e35dfa088d3ea037fe4f3c085f1f97f33b4d02"
+dependencies = [
+ "lazy_static",
+ "libc",
+ "winapi",
+ "wio",
+]
+
[[package]]
name = "dyn-clone"
version = "1.0.20"
@@ -1796,6 +1993,26 @@ dependencies = [
"syn 2.0.106",
]
+[[package]]
+name = "equator"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc"
+dependencies = [
+ "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.106",
+]
+
[[package]]
name = "equivalent"
version = "1.0.2"
@@ -1804,12 +2021,12 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
name = "errno"
-version = "0.3.13"
+version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1886,6 +2103,21 @@ dependencies = [
"pin-project-lite",
]
+[[package]]
+name = "exr"
+version = "1.73.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f83197f59927b46c04a183a619b7c29df34e63e63c7869320862268c0ef687e0"
+dependencies = [
+ "bit_field",
+ "half",
+ "lebe",
+ "miniz_oxide",
+ "rayon-core",
+ "smallvec",
+ "zune-inflate",
+]
+
[[package]]
name = "extended"
version = "0.1.0"
@@ -1913,6 +2145,26 @@ version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
+[[package]]
+name = "fax"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab"
+dependencies = [
+ "fax_derive",
+]
+
+[[package]]
+name = "fax_derive"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.106",
+]
+
[[package]]
name = "fd-lock"
version = "4.0.4"
@@ -1920,7 +2172,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ce92ff622d6dadf7349484f42c93271a0d49b7cc4d466a936405bacbe10aa78"
dependencies = [
"cfg-if",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"windows-sys 0.59.0",
]
@@ -1934,10 +2186,37 @@ dependencies = [
]
[[package]]
-name = "flate2"
-version = "1.1.2"
+name = "filetime"
+version = "0.2.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d"
+checksum = "bc0505cd1b6fa6580283f6bdf70a73fcf4aba1184038c90902b92b3dd0df63ed"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "libredox",
+ "windows-sys 0.60.2",
+]
+
+[[package]]
+name = "find-crate"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59a98bbaacea1c0eb6a0876280051b892eb73594fd90cf3b20e9c817029c57d2"
+dependencies = [
+ "toml 0.5.11",
+]
+
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127"
+
+[[package]]
+name = "flate2"
+version = "1.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc5a4e564e38c699f2880d3fda590bedc2e69f3f84cd48b457bd892ce61d0aa9"
dependencies = [
"crc32fast",
"miniz_oxide",
@@ -1949,12 +2228,63 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
+[[package]]
+name = "float-ord"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ce81f49ae8a0482e4c55ea62ebbd7e5a686af544c00b9d090bba3ff9be97b3d"
+
[[package]]
name = "float_next_after"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8"
+[[package]]
+name = "fluent"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8137a6d5a2c50d6b0ebfcb9aaa91a28154e0a70605f112d30cb0cd4a78670477"
+dependencies = [
+ "fluent-bundle",
+ "unic-langid",
+]
+
+[[package]]
+name = "fluent-bundle"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01203cb8918f5711e73891b347816d932046f95f54207710bda99beaeb423bf4"
+dependencies = [
+ "fluent-langneg",
+ "fluent-syntax",
+ "intl-memoizer",
+ "intl_pluralrules",
+ "rustc-hash 2.1.1",
+ "self_cell",
+ "smallvec",
+ "unic-langid",
+]
+
+[[package]]
+name = "fluent-langneg"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c4ad0989667548f06ccd0e306ed56b61bd4d35458d54df5ec7587c0e8ed5e94"
+dependencies = [
+ "unic-langid",
+]
+
+[[package]]
+name = "fluent-syntax"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "54f0d287c53ffd184d04d8677f590f4ac5379785529e5e08b1c8083acdd5c198"
+dependencies = [
+ "memchr",
+ "thiserror 2.0.17",
+]
+
[[package]]
name = "flume"
version = "0.11.1"
@@ -1979,10 +2309,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
[[package]]
-name = "font-types"
-version = "0.9.0"
+name = "font-kit"
+version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02a596f5713680923a2080d86de50fe472fb290693cf0f701187a1c8b36996b7"
+checksum = "2c7e611d49285d4c4b2e1727b72cf05353558885cc5252f93707b845dfcaf3d3"
+dependencies = [
+ "bitflags 2.9.4",
+ "byteorder",
+ "core-foundation",
+ "core-graphics",
+ "core-text",
+ "dirs 6.0.0",
+ "dwrote",
+ "float-ord",
+ "freetype-sys",
+ "lazy_static",
+ "libc",
+ "log",
+ "pathfinder_geometry",
+ "pathfinder_simd",
+ "walkdir",
+ "winapi",
+ "yeslogic-fontconfig-sys",
+]
+
+[[package]]
+name = "font-types"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "511e2c18a516c666d27867d2f9821f76e7d591f762e9fc41dd6cc5c90fe54b0b"
dependencies = [
"bytemuck",
]
@@ -2004,7 +2359,7 @@ checksum = "e32eac81c1135c1df01d4e6d4233c47ba11f6a6d07f33e0bba09d18797077770"
dependencies = [
"fontconfig-parser",
"log",
- "memmap2 0.9.7",
+ "memmap2 0.9.8",
"slotmap",
"tinyvec",
"ttf-parser 0.21.1",
@@ -2018,7 +2373,7 @@ checksum = "457e789b3d1202543297a350643cf459f836cade38934e7a4cf6a39e7cde2905"
dependencies = [
"fontconfig-parser",
"log",
- "memmap2 0.9.7",
+ "memmap2 0.9.8",
"slotmap",
"tinyvec",
"ttf-parser 0.25.1",
@@ -2053,25 +2408,37 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
-version = "1.2.1"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
dependencies = [
"percent-encoding",
]
[[package]]
name = "freedesktop-desktop-entry"
-version = "0.7.14"
+version = "0.7.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de88bb3b555a4b38372082c5ede431e1e0e14f32be1d02998c6366eb4d2682ed"
+checksum = "528df05c8ed0bfd569c7018914ba1995be2a133ba9ead17628ddb0ff94b86331"
dependencies = [
+ "bstr",
"gettext-rs",
"log",
"memchr",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
"unicase",
- "xdg",
+ "xdg 3.0.0",
+]
+
+[[package]]
+name = "freetype-sys"
+version = "0.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e7edc5b9669349acfda99533e9e0bcf26a51862ab43b08ee7745c55d28eb134"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
]
[[package]]
@@ -2134,7 +2501,7 @@ checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f"
dependencies = [
"futures-core",
"lock_api",
- "parking_lot 0.12.4",
+ "parking_lot 0.12.5",
]
[[package]]
@@ -2214,9 +2581,9 @@ dependencies = [
[[package]]
name = "generic-array"
-version = "0.14.7"
+version = "0.14.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
+checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2"
dependencies = [
"typenum",
"version_check",
@@ -2224,12 +2591,12 @@ dependencies = [
[[package]]
name = "gethostname"
-version = "0.4.3"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0176e0459c2e4a1fe232f984bca6890e681076abb9934f6cea7c326f3fc47818"
+checksum = "fc257fdb4038301ce4b9cd1b3b51704509692bb3ff716a410cbd07925d9dae55"
dependencies = [
- "libc",
- "windows-targets 0.48.5",
+ "rustix 1.1.2",
+ "windows-targets 0.52.6",
]
[[package]]
@@ -2252,14 +2619,14 @@ dependencies = [
"cfg-if",
"libc",
"r-efi",
- "wasi 0.14.2+wasi-0.2.4",
+ "wasi 0.14.7+wasi-0.2.4",
]
[[package]]
name = "gettext-rs"
-version = "0.7.2"
+version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a44e92f7dc08430aca7ed55de161253a22276dfd69c5526e5c5e95d1f7cf338a"
+checksum = "5d5857dc1b7f0fee86961de833f434e29494d72af102ce5355738c0664222bdf"
dependencies = [
"gettext-sys",
"locale_config",
@@ -2267,9 +2634,9 @@ dependencies = [
[[package]]
name = "gettext-sys"
-version = "0.22.5"
+version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb45773f5b8945f12aecd04558f545964f943dacda1b1155b3d738f5469ef661"
+checksum = "4ea859ab0dd7e70ff823032b3e077d03d39c965d68c6c10775add60e999d8ee9"
dependencies = [
"cc",
"temp-dir",
@@ -2287,9 +2654,9 @@ dependencies = [
[[package]]
name = "gimli"
-version = "0.31.1"
+version = "0.32.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
+checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
[[package]]
name = "gio-sys"
@@ -2300,7 +2667,7 @@ dependencies = [
"glib-sys",
"gobject-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
"windows-sys 0.59.0",
]
@@ -2327,7 +2694,7 @@ version = "0.20.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffc4b6e352d4716d84d7dde562dd9aee2a7d48beb872dd9ece7f2d1515b2d683"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"futures-channel",
"futures-core",
"futures-executor",
@@ -2349,7 +2716,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8084af62f09475a3f529b1629c10c429d7600ee1398ae12dd3bf175d74e7145"
dependencies = [
"heck 0.5.0",
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
"syn 2.0.106",
@@ -2362,7 +2729,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ab79e1ed126803a8fb827e3de0e2ff95191912b8db65cee467edb56fc4cc215"
dependencies = [
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2400,7 +2767,7 @@ checksum = "ec9aca94bb73989e3cfdbf8f2e0f1f6da04db4d291c431f444838925c4c63eda"
dependencies = [
"glib-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2409,7 +2776,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"gpu-alloc-types",
]
@@ -2419,7 +2786,7 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
]
[[package]]
@@ -2441,7 +2808,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"gpu-descriptor-types",
"hashbrown 0.15.5",
]
@@ -2452,14 +2819,14 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
]
[[package]]
name = "grid"
-version = "0.11.0"
+version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1df00eed8d1f0db937f6be10e46e8072b0671accb504cf0f959c5c52c679f5b9"
+checksum = "12101ecc8225ea6d675bc70263074eab6169079621c2186fe0c66590b2df9681"
[[package]]
name = "gstreamer"
@@ -2483,7 +2850,7 @@ dependencies = [
"paste",
"pin-project-lite",
"smallvec",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
]
[[package]]
@@ -2511,7 +2878,7 @@ dependencies = [
"gstreamer-base-sys",
"gstreamer-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2541,7 +2908,7 @@ dependencies = [
"gstreamer-base-sys",
"gstreamer-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2568,7 +2935,7 @@ dependencies = [
"gobject-sys",
"gstreamer-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2583,7 +2950,7 @@ dependencies = [
"gstreamer-pbutils-sys",
"gstreamer-video",
"libc",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
]
[[package]]
@@ -2598,7 +2965,7 @@ dependencies = [
"gstreamer-sys",
"gstreamer-video-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2610,7 +2977,7 @@ dependencies = [
"glib-sys",
"gobject-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2627,7 +2994,7 @@ dependencies = [
"gstreamer-video-sys",
"libc",
"once_cell",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
]
[[package]]
@@ -2641,7 +3008,7 @@ dependencies = [
"gstreamer-base-sys",
"gstreamer-sys",
"libc",
- "system-deps",
+ "system-deps 7.0.5",
]
[[package]]
@@ -2656,12 +3023,26 @@ dependencies = [
[[package]]
name = "half"
-version = "2.6.0"
+version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9"
+checksum = "e54c115d4f30f52c67202f079c5f9d8b49db4691f460fdb0b4c2e838261b2ba5"
dependencies = [
"cfg-if",
"crunchy",
+ "zerocopy",
+]
+
+[[package]]
+name = "harfrust"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1f3fd23d35c2d8bcf34a1f0e9ea8c0ad263f0c8a9a47108eee23aac76e71645a"
+dependencies = [
+ "bitflags 2.9.4",
+ "bytemuck",
+ "core_maths",
+ "read-fonts",
+ "smallvec",
]
[[package]]
@@ -2681,6 +3062,12 @@ dependencies = [
"foldhash",
]
+[[package]]
+name = "hashbrown"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
+
[[package]]
name = "hashlink"
version = "0.10.0"
@@ -2696,7 +3083,7 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af2a7e73e1f34c48da31fb668a907f250794837e08faa144fd24f0b8b741e890"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"com",
"libc",
"libloading",
@@ -2768,12 +3155,6 @@ dependencies = [
"windows-sys 0.59.0",
]
-[[package]]
-name = "hound"
-version = "3.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f"
-
[[package]]
name = "html-escape"
version = "0.2.13"
@@ -2784,10 +3165,77 @@ dependencies = [
]
[[package]]
-name = "iana-time-zone"
-version = "0.1.63"
+name = "i18n-config"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8"
+checksum = "3e06b90c8a0d252e203c94344b21e35a30f3a3a85dc7db5af8f8df9f3e0c63ef"
+dependencies = [
+ "basic-toml",
+ "log",
+ "serde",
+ "serde_derive",
+ "thiserror 1.0.69",
+ "unic-langid",
+]
+
+[[package]]
+name = "i18n-embed"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a217bbb075dcaefb292efa78897fc0678245ca67f265d12c351e42268fcb0305"
+dependencies = [
+ "arc-swap",
+ "fluent",
+ "fluent-langneg",
+ "fluent-syntax",
+ "i18n-embed-impl",
+ "intl-memoizer",
+ "log",
+ "parking_lot 0.12.5",
+ "rust-embed",
+ "sys-locale",
+ "thiserror 1.0.69",
+ "unic-langid",
+ "walkdir",
+]
+
+[[package]]
+name = "i18n-embed-fl"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e598ed73b67db92f61e04672e599eef2991a262a40e1666735b8a86d2e7e9f30"
+dependencies = [
+ "find-crate",
+ "fluent",
+ "fluent-syntax",
+ "i18n-config",
+ "i18n-embed",
+ "proc-macro-error2",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 2.0.106",
+ "unic-langid",
+]
+
+[[package]]
+name = "i18n-embed-impl"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0f2cc0e0523d1fe6fc2c6f66e5038624ea8091b3e7748b5e8e0c84b1698db6c2"
+dependencies = [
+ "find-crate",
+ "i18n-config",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.106",
+]
+
+[[package]]
+name = "iana-time-zone"
+version = "0.1.64"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
dependencies = [
"android_system_properties",
"core-foundation-sys",
@@ -2795,7 +3243,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.61.2",
+ "windows-core 0.62.2",
]
[[package]]
@@ -2810,7 +3258,7 @@ dependencies = [
[[package]]
name = "iced"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"dnd",
"iced_accessibility",
@@ -2828,7 +3276,7 @@ dependencies = [
[[package]]
name = "iced_accessibility"
version = "0.1.0"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"accesskit",
"accesskit_winit",
@@ -2837,10 +3285,11 @@ dependencies = [
[[package]]
name = "iced_core"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"bytes",
+ "cosmic-client-toolkit",
"dnd",
"glam",
"iced_accessibility",
@@ -2861,7 +3310,7 @@ dependencies = [
[[package]]
name = "iced_futures"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"futures",
"iced_core",
@@ -2887,9 +3336,9 @@ dependencies = [
[[package]]
name = "iced_graphics"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"bytemuck",
"cosmic-text",
"half",
@@ -2909,7 +3358,7 @@ dependencies = [
[[package]]
name = "iced_renderer"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"iced_graphics",
"iced_tiny_skia",
@@ -2921,9 +3370,10 @@ dependencies = [
[[package]]
name = "iced_runtime"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"bytes",
+ "cosmic-client-toolkit",
"dnd",
"iced_accessibility",
"iced_core",
@@ -2936,14 +3386,14 @@ dependencies = [
[[package]]
name = "iced_tiny_skia"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"bytemuck",
"cosmic-text",
"iced_graphics",
"kurbo 0.10.4",
"log",
- "resvg",
+ "resvg 0.42.0",
"rustc-hash 2.1.1",
"softbuffer",
"tiny-skia",
@@ -2969,10 +3419,10 @@ dependencies = [
[[package]]
name = "iced_wgpu"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"as-raw-xcb-connection",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"bytemuck",
"cosmic-client-toolkit",
"futures",
@@ -2984,7 +3434,7 @@ dependencies = [
"lyon",
"once_cell",
"raw-window-handle",
- "resvg",
+ "resvg 0.42.0",
"rustc-hash 2.1.1",
"rustix 0.38.44",
"thiserror 1.0.69",
@@ -3000,8 +3450,9 @@ dependencies = [
[[package]]
name = "iced_widget"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
+ "cosmic-client-toolkit",
"dnd",
"iced_accessibility",
"iced_renderer",
@@ -3019,24 +3470,31 @@ dependencies = [
[[package]]
name = "iced_winit"
version = "0.14.0-dev"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
+ "cosmic-client-toolkit",
"dnd",
"iced_accessibility",
"iced_futures",
"iced_graphics",
"iced_runtime",
"log",
+ "raw-window-handle",
"rustc-hash 2.1.1",
"rustix 0.38.44",
"thiserror 1.0.69",
"tracing",
"wasm-bindgen-futures",
+ "wayland-backend",
"wayland-client",
+ "wayland-protocols",
"web-sys",
"winapi",
"window_clipboard",
"winit",
+ "xkbcommon 0.7.0",
+ "xkbcommon-dl",
+ "xkeysym",
]
[[package]]
@@ -3133,9 +3591,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "idna"
-version = "1.0.3"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
dependencies = [
"idna_adapter",
"smallvec",
@@ -3154,18 +3612,38 @@ dependencies = [
[[package]]
name = "image"
-version = "0.25.6"
+version = "0.25.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db35664ce6b9810857a38a906215e75a9c879f0696556a39f59c62829710251a"
+checksum = "529feb3e6769d234375c4cf1ee2ce713682b8e76538cb13f9fc23e1400a591e7"
dependencies = [
"bytemuck",
"byteorder-lite",
+ "color_quant",
+ "exr",
+ "gif",
+ "image-webp",
+ "moxcms",
"num-traits",
- "png",
+ "png 0.18.0",
+ "qoi",
+ "ravif",
+ "rayon",
+ "rgb",
+ "tiff",
"zune-core",
"zune-jpeg",
]
+[[package]]
+name = "image-webp"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3"
+dependencies = [
+ "byteorder-lite",
+ "quick-error",
+]
+
[[package]]
name = "imagesize"
version = "0.12.0"
@@ -3173,10 +3651,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "029d73f573d8e8d63e6d5020011d3255b28c3ba85d6cf870a07184ed23de9284"
[[package]]
-name = "immutable-chunkmap"
-version = "2.0.6"
+name = "imagesize"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12f97096f508d54f8f8ab8957862eee2ccd628847b6217af1a335e1c44dee578"
+checksum = "edcd27d72f2f071c64249075f42e205ff93c9a4c5f6c6da53e79ed9f9832c285"
+
+[[package]]
+name = "imgref"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7c5cedc30da3a610cac6b4ba17597bdf7152cf974e8aab3afb3d54455e371c8"
+
+[[package]]
+name = "immutable-chunkmap"
+version = "2.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a3e98b1520e49e252237edc238a39869da9f3241f2ec19dc788c1d24694d1e4"
dependencies = [
"arrayvec",
]
@@ -3194,13 +3684,14 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.10.0"
+version = "2.11.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
+checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
dependencies = [
"equivalent",
- "hashbrown 0.15.5",
+ "hashbrown 0.16.0",
"serde",
+ "serde_core",
]
[[package]]
@@ -3218,7 +3709,7 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f37dccff2791ab604f9babef0ba14fbe0be30bd368dc541e2b08d07c8aa908f3"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"inotify-sys",
"libc",
]
@@ -3241,6 +3732,36 @@ dependencies = [
"cfg-if",
]
+[[package]]
+name = "interpolate_name"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.106",
+]
+
+[[package]]
+name = "intl-memoizer"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "310da2e345f5eb861e7a07ee182262e94975051db9e4223e909ba90f392f163f"
+dependencies = [
+ "type-map",
+ "unic-langid",
+]
+
+[[package]]
+name = "intl_pluralrules"
+version = "7.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "078ea7b7c29a2b4df841a7f6ac8775ff6074020c6776d48491ce2268e068f972"
+dependencies = [
+ "unic-langid",
+]
+
[[package]]
name = "io-lifetimes"
version = "1.0.11"
@@ -3254,11 +3775,11 @@ dependencies = [
[[package]]
name = "io-uring"
-version = "0.7.9"
+version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4"
+checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cfg-if",
"libc",
]
@@ -3275,6 +3796,15 @@ version = "1.70.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
+[[package]]
+name = "itertools"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
+dependencies = [
+ "either",
+]
+
[[package]]
name = "itertools"
version = "0.13.0"
@@ -3323,9 +3853,9 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
[[package]]
name = "jobserver"
-version = "0.1.33"
+version = "0.1.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a"
+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
dependencies = [
"getrandom 0.3.3",
"libc",
@@ -3339,9 +3869,9 @@ checksum = "00810f1d8b74be64b13dbf3db89ac67740615d6c891f0e7b6179326533011a07"
[[package]]
name = "js-sys"
-version = "0.3.77"
+version = "0.3.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
+checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305"
dependencies = [
"once_cell",
"wasm-bindgen",
@@ -3375,11 +3905,11 @@ checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
[[package]]
name = "known-folders"
-version = "1.3.1"
+version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c644f4623d1c55eb60a9dac35e0858a59f982fb87db6ce34c872372b0a5b728f"
+checksum = "d463f34ca3c400fde3a054da0e0b8c6ffa21e4590922f3e18281bb5eeef4cbdc"
dependencies = [
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3433,52 +3963,27 @@ dependencies = [
]
[[package]]
-name = "lewton"
-version = "0.10.2"
+name = "lebe"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "777b48df9aaab155475a83a7df3070395ea1ac6902f5cd062b8f2b028075c030"
-dependencies = [
- "byteorder",
- "ogg",
- "tinyvec",
-]
-
-[[package]]
-name = "lexpr"
-version = "0.2.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a84de6a9df442363b08f5dbf0cd5b92edc70097b89c4ce4bfea4679fe48bc67"
-dependencies = [
- "itoa",
- "lexpr-macros",
- "ryu",
-]
-
-[[package]]
-name = "lexpr-macros"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "36b5cb8bb985c81a8ac1a0f8b5c4865214f574ddd64397ef7a99c236e21f35bb"
-dependencies = [
- "proc-macro2",
- "quote",
-]
+checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8"
[[package]]
name = "libc"
-version = "0.2.175"
+version = "0.2.177"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
+checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
[[package]]
name = "libcosmic"
version = "0.1.0"
-source = "git+https://github.com/pop-os/libcosmic#29f38f83a38b550ae0de2b130fde9f2c36341fab"
+source = "git+https://github.com/pop-os/libcosmic#483fb2cdd103e44d3d6cfc7522455f683789b87e"
dependencies = [
"apply",
- "ashpd",
+ "ashpd 0.12.0",
"auto_enums",
"chrono",
+ "cosmic-client-toolkit",
"cosmic-config",
"cosmic-freedesktop-icons",
"cosmic-settings-config",
@@ -3488,6 +3993,8 @@ dependencies = [
"derive_setters",
"freedesktop-desktop-entry",
"futures",
+ "i18n-embed",
+ "i18n-embed-fl",
"iced",
"iced_accessibility",
"iced_core",
@@ -3499,33 +4006,43 @@ dependencies = [
"iced_widget",
"iced_winit",
"image",
- "lazy_static",
"libc",
"mime 0.3.17",
"palette",
"raw-window-handle",
"rfd",
- "rustix 1.0.8",
+ "rust-embed",
+ "rustix 1.1.2",
"serde",
"shlex",
"slotmap",
"taffy",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
"tokio",
"tracing",
"unicode-segmentation",
"url",
- "zbus 5.9.0",
+ "zbus 5.11.0",
+]
+
+[[package]]
+name = "libfuzzer-sys"
+version = "0.4.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5037190e1f70cbeef565bd267599242926f724d3b8a9f510fd7e0b540cfa4404"
+dependencies = [
+ "arbitrary",
+ "cc",
]
[[package]]
name = "libloading"
-version = "0.8.8"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
+checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
dependencies = [
"cfg-if",
- "windows-targets 0.53.3",
+ "windows-link",
]
[[package]]
@@ -3536,13 +4053,13 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de"
[[package]]
name = "libredox"
-version = "0.1.9"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "391290121bad3d37fbddad76d8f5d1c1c314cfc646d143d7e07a3086ddff0ce3"
+checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"libc",
- "redox_syscall 0.5.17",
+ "redox_syscall 0.5.18",
]
[[package]]
@@ -3556,6 +4073,12 @@ dependencies = [
"vcpkg",
]
+[[package]]
+name = "linebender_resource_handle"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
+
[[package]]
name = "linux-raw-sys"
version = "0.3.8"
@@ -3576,9 +4099,9 @@ checksum = "2a385b1be4e5c3e362ad2ffa73c392e53f031eaa5b7d648e64cd87f27f6063d7"
[[package]]
name = "linux-raw-sys"
-version = "0.9.4"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
+checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
[[package]]
name = "litemap"
@@ -3607,19 +4130,27 @@ dependencies = [
[[package]]
name = "lock_api"
-version = "0.4.13"
+version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
dependencies = [
- "autocfg",
"scopeguard",
]
[[package]]
name = "log"
-version = "0.4.27"
+version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
+checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
+
+[[package]]
+name = "loop9"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062"
+dependencies = [
+ "imgref",
+]
[[package]]
name = "lru"
@@ -3634,34 +4165,40 @@ dependencies = [
"clap",
"colors-transform",
"crisp",
- "dirs 5.0.1",
+ "dirs 6.0.0",
+ "fastrand 2.3.0",
"gstreamer",
"gstreamer-app",
"iced_video_player",
- "lexpr",
+ "image",
"libcosmic",
"miette",
+ "mupdf",
"pretty_assertions",
+ "rapidfuzz",
+ "rapidhash",
"rayon",
+ "resvg 0.45.1",
"rodio",
"ron 0.8.1",
"serde",
- "serde-lexpr",
"sqlx",
"strum",
"strum_macros",
+ "tar",
"tokio",
"tracing",
"tracing-log",
"tracing-subscriber",
"url",
+ "zstd",
]
[[package]]
name = "lyon"
-version = "1.0.1"
+version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91e7f9cda98b5430809e63ca5197b06c7d191bf7e26dfc467d5a3f0290e2a74f"
+checksum = "dbcb7d54d54c8937364c9d41902d066656817dce1e03a44e5533afebd1ef4352"
dependencies = [
"lyon_algorithms",
"lyon_tessellation",
@@ -3669,9 +4206,9 @@ dependencies = [
[[package]]
name = "lyon_algorithms"
-version = "1.0.5"
+version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f13c9be19d257c7d37e70608ed858e8eab4b2afcea2e3c9a622e892acbf43c08"
+checksum = "f4c0829e28c4f336396f250d850c3987e16ce6db057ffe047ce0dd54aab6b647"
dependencies = [
"lyon_path",
"num-traits",
@@ -3679,9 +4216,9 @@ dependencies = [
[[package]]
name = "lyon_geom"
-version = "1.0.6"
+version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8af69edc087272df438b3ee436c4bb6d7c04aa8af665cfd398feae627dbd8570"
+checksum = "4e16770d760c7848b0c1c2d209101e408207a65168109509f8483837a36cf2e7"
dependencies = [
"arrayvec",
"euclid",
@@ -3690,9 +4227,9 @@ dependencies = [
[[package]]
name = "lyon_path"
-version = "1.0.7"
+version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0047f508cd7a85ad6bad9518f68cce7b1bf6b943fb71f6da0ee3bc1e8cb75f25"
+checksum = "1aeca86bcfd632a15984ba029b539ffb811e0a70bf55e814ef8b0f54f506fdeb"
dependencies = [
"lyon_geom",
"num-traits",
@@ -3700,9 +4237,9 @@ dependencies = [
[[package]]
name = "lyon_tessellation"
-version = "1.0.15"
+version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "579d42360a4b09846eff2feef28f538696c7d6c7439bfa65874ff3cbe0951b2c"
+checksum = "f3f586142e1280335b1bc89539f7c97dd80f08fc43e9ab1b74ef0a42b04aa353"
dependencies = [
"float_next_after",
"lyon_path",
@@ -3729,11 +4266,21 @@ dependencies = [
[[package]]
name = "matchers"
-version = "0.1.0"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
+checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
dependencies = [
- "regex-automata 0.1.10",
+ "regex-automata",
+]
+
+[[package]]
+name = "maybe-rayon"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"
+dependencies = [
+ "cfg-if",
+ "rayon",
]
[[package]]
@@ -3748,9 +4295,9 @@ dependencies = [
[[package]]
name = "memchr"
-version = "2.7.5"
+version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
+checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
[[package]]
name = "memmap2"
@@ -3763,9 +4310,9 @@ dependencies = [
[[package]]
name = "memmap2"
-version = "0.9.7"
+version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "483758ad303d734cec05e5c12b41d7e93e6a6390c5e9dae6bdeb7c1259012d28"
+checksum = "843a98750cd611cc2965a8213b53b43e715f13c37a9e096c6408e69990961db7"
dependencies = [
"libc",
]
@@ -3794,7 +4341,7 @@ version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ecfd3296f8c56b7c1f6fbac3c71cefa9d78ce009850c45000015f206dc7fa21"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block",
"core-graphics-types",
"foreign-types",
@@ -3875,12 +4422,47 @@ dependencies = [
"windows-sys 0.59.0",
]
+[[package]]
+name = "moxcms"
+version = "0.7.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c588e11a3082784af229e23e8e4ecf5bcc6fbe4f69101e0421ce8d79da7f0b40"
+dependencies = [
+ "num-traits",
+ "pxfm",
+]
+
[[package]]
name = "muldiv"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "956787520e75e9bd233246045d19f42fb73242759cc57fba9611d940ae96d4b0"
+[[package]]
+name = "mupdf"
+version = "0.5.0"
+source = "git+https://github.com/messense/mupdf-rs?rev=2425c1405b326165b06834dcc1ca859015f92787#2425c1405b326165b06834dcc1ca859015f92787"
+dependencies = [
+ "bitflags 2.9.4",
+ "font-kit",
+ "mupdf-sys",
+ "num_enum",
+ "once_cell",
+ "zerocopy",
+]
+
+[[package]]
+name = "mupdf-sys"
+version = "0.5.0"
+source = "git+https://github.com/messense/mupdf-rs?rev=2425c1405b326165b06834dcc1ca859015f92787#2425c1405b326165b06834dcc1ca859015f92787"
+dependencies = [
+ "bindgen",
+ "cc",
+ "pkg-config",
+ "regex",
+ "zerocopy",
+]
+
[[package]]
name = "mutate_once"
version = "0.1.2"
@@ -3895,11 +4477,11 @@ checksum = "8bd5a652b6faf21496f2cfd88fc49989c8db0825d1f6746b1a71a6ede24a63ad"
dependencies = [
"arrayvec",
"bit-set",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cfg_aliases 0.1.1",
"codespan-reporting",
"hexf-parse",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"log",
"rustc-hash 1.1.0",
"spirv",
@@ -3908,27 +4490,13 @@ dependencies = [
"unicode-xid",
]
-[[package]]
-name = "ndk"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2076a31b7010b17a38c01907c45b945e8f11495ee4dd588309718901b1f7a5b7"
-dependencies = [
- "bitflags 2.9.2",
- "jni-sys",
- "log",
- "ndk-sys 0.5.0+25.2.9519653",
- "num_enum",
- "thiserror 1.0.69",
-]
-
[[package]]
name = "ndk"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"jni-sys",
"log",
"ndk-sys 0.6.0+11769913",
@@ -3961,6 +4529,12 @@ dependencies = [
"jni-sys",
]
+[[package]]
+name = "new_debug_unreachable"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+
[[package]]
name = "nibble_vec"
version = "0.1.0"
@@ -3988,7 +4562,7 @@ version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cfg-if",
"cfg_aliases 0.1.1",
"libc",
@@ -4000,7 +4574,7 @@ version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cfg-if",
"cfg_aliases 0.2.1",
"libc",
@@ -4017,13 +4591,19 @@ dependencies = [
"minimal-lexical",
]
+[[package]]
+name = "noop_proc_macro"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"
+
[[package]]
name = "notify"
version = "8.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d3d07927151ff8575b7087f245456e549fea62edf0ec4e565a5ee50c8402bc3"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"fsevent-sys",
"inotify",
"kqueue",
@@ -4043,12 +4623,21 @@ checksum = "5e0826a989adedc2a244799e823aece04662b66609d96af8dff7ac6df9a8925d"
[[package]]
name = "nu-ansi-term"
-version = "0.46.0"
+version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"
+checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "overload",
- "winapi",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "num-bigint"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
+dependencies = [
+ "num-integer",
+ "num-traits",
]
[[package]]
@@ -4111,6 +4700,7 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
dependencies = [
+ "num-bigint",
"num-integer",
"num-traits",
]
@@ -4151,7 +4741,7 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
"syn 2.0.106",
@@ -4204,9 +4794,9 @@ dependencies = [
[[package]]
name = "objc2"
-version = "0.6.2"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "561f357ba7f3a2a61563a186a163d0a3a5247e1089524a3981d49adb775078bc"
+checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05"
dependencies = [
"objc2-encode",
]
@@ -4217,7 +4807,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"libc",
"objc2 0.5.2",
@@ -4229,14 +4819,29 @@ dependencies = [
[[package]]
name = "objc2-app-kit"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6f29f568bec459b0ddff777cec4fe3fd8666d82d5a40ebd0ff7e66134f89bcc"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
dependencies = [
- "bitflags 2.9.2",
- "block2 0.6.1",
- "objc2 0.6.2",
- "objc2-foundation 0.3.1",
+ "bitflags 2.9.4",
+ "block2 0.6.2",
+ "objc2 0.6.3",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-audio-toolbox"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6948501a91121d6399b79abaa33a8aa4ea7857fe019f341b8c23ad6e81b79b08"
+dependencies = [
+ "bitflags 2.9.4",
+ "libc",
+ "objc2 0.6.3",
+ "objc2-core-audio",
+ "objc2-core-audio-types",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
]
[[package]]
@@ -4245,7 +4850,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-core-location",
@@ -4263,13 +4868,35 @@ dependencies = [
"objc2-foundation 0.2.2",
]
+[[package]]
+name = "objc2-core-audio"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1eebcea8b0dbff5f7c8504f3107c68fc061a3eb44932051c8cf8a68d969c3b2"
+dependencies = [
+ "dispatch2",
+ "objc2 0.6.3",
+ "objc2-core-audio-types",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-core-audio-types"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c"
+dependencies = [
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
+]
+
[[package]]
name = "objc2-core-data"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -4277,13 +4904,13 @@ dependencies = [
[[package]]
name = "objc2-core-foundation"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c10c2894a6fed806ade6027bcd50662746363a9589d3ec9d9bef30a4e4bc166"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"dispatch2",
- "objc2 0.6.2",
+ "objc2 0.6.3",
]
[[package]]
@@ -4322,7 +4949,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"dispatch",
"libc",
@@ -4331,12 +4958,12 @@ dependencies = [
[[package]]
name = "objc2-foundation"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "900831247d2fe1a09a683278e5384cfb8c80c79fe6b166f9d14bfdde0ea1b03c"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
dependencies = [
- "bitflags 2.9.2",
- "objc2 0.6.2",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
"objc2-core-foundation",
]
@@ -4358,7 +4985,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -4370,7 +4997,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -4393,7 +5020,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-cloud-kit",
@@ -4425,7 +5052,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-core-location",
@@ -4443,45 +5070,13 @@ dependencies = [
[[package]]
name = "object"
-version = "0.36.7"
+version = "0.37.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
+checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe"
dependencies = [
"memchr",
]
-[[package]]
-name = "oboe"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8b61bebd49e5d43f5f8cc7ee2891c16e0f41ec7954d36bcb6c14c5e0de867fb"
-dependencies = [
- "jni",
- "ndk 0.8.0",
- "ndk-context",
- "num-derive",
- "num-traits",
- "oboe-sys",
-]
-
-[[package]]
-name = "oboe-sys"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c8bb09a4a2b1d668170cfe0a7d5bc103f8999fb316c98099b6a9939c9f2e79d"
-dependencies = [
- "cc",
-]
-
-[[package]]
-name = "ogg"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6951b4e8bf21c8193da321bcce9c9dd2e13c858fe078bf9054a288b419ae5d6e"
-dependencies = [
- "byteorder",
-]
-
[[package]]
name = "once_cell"
version = "1.21.3"
@@ -4552,12 +5147,6 @@ dependencies = [
"syn 2.0.106",
]
-[[package]]
-name = "overload"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
-
[[package]]
name = "owned_ttf_parser"
version = "0.25.1"
@@ -4569,9 +5158,9 @@ dependencies = [
[[package]]
name = "owo-colors"
-version = "4.2.2"
+version = "4.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48dd4f4a2c8405440fd0462561f0e5806bd0f77e86f51c761481bdd4018b545e"
+checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52"
[[package]]
name = "palette"
@@ -4617,12 +5206,12 @@ dependencies = [
[[package]]
name = "parking_lot"
-version = "0.12.4"
+version = "0.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
dependencies = [
"lock_api",
- "parking_lot_core 0.9.11",
+ "parking_lot_core 0.9.12",
]
[[package]]
@@ -4641,15 +5230,15 @@ dependencies = [
[[package]]
name = "parking_lot_core"
-version = "0.9.11"
+version = "0.9.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
dependencies = [
"cfg-if",
"libc",
- "redox_syscall 0.5.17",
+ "redox_syscall 0.5.18",
"smallvec",
- "windows-targets 0.52.6",
+ "windows-link",
]
[[package]]
@@ -4658,6 +5247,25 @@ version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
+[[package]]
+name = "pathfinder_geometry"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b7b7e7b4ea703700ce73ebf128e1450eb69c3a8329199ffbfb9b2a0418e5ad3"
+dependencies = [
+ "log",
+ "pathfinder_simd",
+]
+
+[[package]]
+name = "pathfinder_simd"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf9027960355bf3afff9841918474a81a5f972ac6d226d518060bba758b5ad57"
+dependencies = [
+ "rustc_version",
+]
+
[[package]]
name = "pem-rfc7468"
version = "0.7.0"
@@ -4669,9 +5277,9 @@ dependencies = [
[[package]]
name = "percent-encoding"
-version = "2.3.1"
+version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
[[package]]
name = "phf"
@@ -4804,6 +5412,19 @@ dependencies = [
"miniz_oxide",
]
+[[package]]
+name = "png"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0"
+dependencies = [
+ "bitflags 2.9.4",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide",
+]
+
[[package]]
name = "polling"
version = "2.8.0"
@@ -4822,16 +5443,16 @@ dependencies = [
[[package]]
name = "polling"
-version = "3.10.0"
+version = "3.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5bd19146350fe804f7cb2669c851c03d69da628803dab0d98018142aaa5d829"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
dependencies = [
"cfg-if",
"concurrent-queue",
"hermit-abi 0.5.2",
"pin-project-lite",
- "rustix 1.0.8",
- "windows-sys 0.60.2",
+ "rustix 1.1.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4842,9 +5463,9 @@ checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
[[package]]
name = "potential_utf"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585"
+checksum = "84df19adbe5b5a0782edcab45899906947ab039ccf4573713735ee7de1e6b08a"
dependencies = [
"zerovec",
]
@@ -4892,11 +5513,33 @@ dependencies = [
[[package]]
name = "proc-macro-crate"
-version = "3.3.0"
+version = "3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35"
+checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983"
dependencies = [
- "toml_edit 0.22.27",
+ "toml_edit 0.23.7",
+]
+
+[[package]]
+name = "proc-macro-error-attr2"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5"
+dependencies = [
+ "proc-macro2",
+ "quote",
+]
+
+[[package]]
+name = "proc-macro-error2"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802"
+dependencies = [
+ "proc-macro-error-attr2",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.106",
]
[[package]]
@@ -4926,6 +5569,43 @@ name = "profiling"
version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773"
+dependencies = [
+ "profiling-procmacros",
+]
+
+[[package]]
+name = "profiling-procmacros"
+version = "1.0.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b"
+dependencies = [
+ "quote",
+ "syn 2.0.106",
+]
+
+[[package]]
+name = "pxfm"
+version = "0.1.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3cbdf373972bf78df4d3b518d07003938e2c7d1fb5891e55f9cb6df57009d84"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "qoi"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "quick-error"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
[[package]]
name = "quick-xml"
@@ -4938,9 +5618,9 @@ dependencies = [
[[package]]
name = "quote"
-version = "1.0.40"
+version = "1.0.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
+checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
dependencies = [
"proc-macro2",
]
@@ -5032,6 +5712,71 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f93e7e49bb0bf967717f7bd674458b3d6b0c5f48ec7e3038166026a69fc22223"
+[[package]]
+name = "rapidfuzz"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "270e04e5ea61d40841942bb15e451c29ee1618637bcf97fc7ede5dd4a9b1601b"
+
+[[package]]
+name = "rapidhash"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "164772177ee16e3b074e6019c63cd92cb3cecf38e8c40d097675958b86dd8084"
+dependencies = [
+ "rustversion",
+]
+
+[[package]]
+name = "rav1e"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd87ce80a7665b1cce111f8a16c1f3929f6547ce91ade6addf4ec86a8dda5ce9"
+dependencies = [
+ "arbitrary",
+ "arg_enum_proc_macro",
+ "arrayvec",
+ "av1-grain",
+ "bitstream-io",
+ "built",
+ "cfg-if",
+ "interpolate_name",
+ "itertools 0.12.1",
+ "libc",
+ "libfuzzer-sys",
+ "log",
+ "maybe-rayon",
+ "new_debug_unreachable",
+ "noop_proc_macro",
+ "num-derive",
+ "num-traits",
+ "once_cell",
+ "paste",
+ "profiling",
+ "rand 0.8.5",
+ "rand_chacha 0.3.1",
+ "simd_helpers",
+ "system-deps 6.2.2",
+ "thiserror 1.0.69",
+ "v_frame",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "ravif"
+version = "0.11.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5825c26fddd16ab9f515930d49028a630efec172e903483c94796cfe31893e6b"
+dependencies = [
+ "avif-serialize",
+ "imgref",
+ "loop9",
+ "quick-error",
+ "rav1e",
+ "rayon",
+ "rgb",
+]
+
[[package]]
name = "raw-window-handle"
version = "0.6.2"
@@ -5060,11 +5805,12 @@ dependencies = [
[[package]]
name = "read-fonts"
-version = "0.29.3"
+version = "0.35.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04ca636dac446b5664bd16c069c00a9621806895b8bb02c2dc68542b23b8f25d"
+checksum = "6717cf23b488adf64b9d711329542ba34de147df262370221940dfabc2c91358"
dependencies = [
"bytemuck",
+ "core_maths",
"font-types",
]
@@ -5079,20 +5825,11 @@ dependencies = [
[[package]]
name = "redox_syscall"
-version = "0.4.1"
+version = "0.5.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
dependencies = [
- "bitflags 1.3.2",
-]
-
-[[package]]
-name = "redox_syscall"
-version = "0.5.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77"
-dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
]
[[package]]
@@ -5114,23 +5851,23 @@ checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
dependencies = [
"getrandom 0.2.16",
"libredox",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
]
[[package]]
name = "ref-cast"
-version = "1.0.24"
+version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf"
+checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d"
dependencies = [
"ref-cast-impl",
]
[[package]]
name = "ref-cast-impl"
-version = "1.0.24"
+version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7"
+checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da"
dependencies = [
"proc-macro2",
"quote",
@@ -5139,47 +5876,32 @@ dependencies = [
[[package]]
name = "regex"
-version = "1.11.1"
+version = "1.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
+checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
dependencies = [
"aho-corasick",
"memchr",
- "regex-automata 0.4.9",
- "regex-syntax 0.8.5",
+ "regex-automata",
+ "regex-syntax",
]
[[package]]
name = "regex-automata"
-version = "0.1.10"
+version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
-dependencies = [
- "regex-syntax 0.6.29",
-]
-
-[[package]]
-name = "regex-automata"
-version = "0.4.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
+checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
dependencies = [
"aho-corasick",
"memchr",
- "regex-syntax 0.8.5",
+ "regex-syntax",
]
[[package]]
name = "regex-syntax"
-version = "0.6.29"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
-
-[[package]]
-name = "regex-syntax"
-version = "0.8.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
+checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
[[package]]
name = "renderdoc-sys"
@@ -5200,7 +5922,24 @@ dependencies = [
"rgb",
"svgtypes",
"tiny-skia",
- "usvg",
+ "usvg 0.42.0",
+]
+
+[[package]]
+name = "resvg"
+version = "0.45.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8928798c0a55e03c9ca6c4c6846f76377427d2c1e1f7e6de3c06ae57942df43"
+dependencies = [
+ "gif",
+ "image-webp",
+ "log",
+ "pico-args",
+ "rgb",
+ "svgtypes",
+ "tiny-skia",
+ "usvg 0.45.1",
+ "zune-jpeg",
]
[[package]]
@@ -5209,15 +5948,15 @@ version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef2bee61e6cffa4635c72d7d81a84294e28f0930db0ddcb0f66d10244674ebed"
dependencies = [
- "ashpd",
- "block2 0.6.1",
+ "ashpd 0.11.0",
+ "block2 0.6.2",
"dispatch2",
"js-sys",
"log",
- "objc2 0.6.2",
- "objc2-app-kit 0.3.1",
+ "objc2 0.6.3",
+ "objc2-app-kit 0.3.2",
"objc2-core-foundation",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"pollster",
"raw-window-handle",
"urlencoding",
@@ -5238,14 +5977,13 @@ dependencies = [
[[package]]
name = "rodio"
-version = "0.20.1"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7ceb6607dd738c99bc8cb28eff249b7cd5c8ec88b9db96c0608c1480d140fb1"
+checksum = "e40ecf59e742e03336be6a3d53755e789fd05a059fa22dfa0ed624722319e183"
dependencies = [
- "claxon",
"cpal",
- "hound",
- "lewton",
+ "dasp_sample",
+ "num-rational",
"symphonia",
"tracing",
]
@@ -5257,19 +5995,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b91f7eff05f748767f183df4320a63d6936e9c6107d97c9e6bdd9784f4289c94"
dependencies = [
"base64 0.21.7",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"serde",
"serde_derive",
]
[[package]]
name = "ron"
-version = "0.9.0"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63f3aa105dea217ef30d89581b65a4d527a19afc95ef5750be3890e8d3c5b837"
+checksum = "db09040cc89e461f1a265139777a2bde7f8d8c67c4936f700c63ce3e2904d468"
dependencies = [
"base64 0.22.1",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"serde",
"serde_derive",
"unicode-ident",
@@ -5301,6 +6039,40 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "rust-embed"
+version = "8.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "025908b8682a26ba8d12f6f2d66b987584a4a87bc024abc5bbc12553a8cd178a"
+dependencies = [
+ "rust-embed-impl",
+ "rust-embed-utils",
+ "walkdir",
+]
+
+[[package]]
+name = "rust-embed-impl"
+version = "8.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6065f1a4392b71819ec1ea1df1120673418bf386f50de1d6f54204d836d4349c"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rust-embed-utils",
+ "syn 2.0.106",
+ "walkdir",
+]
+
+[[package]]
+name = "rust-embed-utils"
+version = "8.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6cc0c81648b20b70c491ff8cce00c1c3b223bb8ed2b5d41f0e54c6c4c0a3594"
+dependencies = [
+ "sha2",
+ "walkdir",
+]
+
[[package]]
name = "rustc-demangle"
version = "0.1.26"
@@ -5319,6 +6091,15 @@ version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
+[[package]]
+name = "rustc_version"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+dependencies = [
+ "semver",
+]
+
[[package]]
name = "rustix"
version = "0.37.28"
@@ -5339,7 +6120,7 @@ version = "0.38.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"errno",
"libc",
"linux-raw-sys 0.4.15",
@@ -5348,15 +6129,15 @@ dependencies = [
[[package]]
name = "rustix"
-version = "1.0.8"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8"
+checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"errno",
"libc",
- "linux-raw-sys 0.9.4",
- "windows-sys 0.60.2",
+ "linux-raw-sys 0.11.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5371,13 +6152,30 @@ version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfb9cf8877777222e4a3bc7eb247e398b56baba500c38c1c46842431adc8b55c"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"bytemuck",
- "libm",
"smallvec",
"ttf-parser 0.21.1",
- "unicode-bidi-mirroring",
- "unicode-ccc",
+ "unicode-bidi-mirroring 0.2.0",
+ "unicode-ccc 0.2.0",
+ "unicode-properties",
+ "unicode-script",
+]
+
+[[package]]
+name = "rustybuzz"
+version = "0.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd3c7c96f8a08ee34eff8857b11b49b07d71d1c3f4e88f8a88d4c9e9f90b1702"
+dependencies = [
+ "bitflags 2.9.4",
+ "bytemuck",
+ "core_maths",
+ "log",
+ "smallvec",
+ "ttf-parser 0.25.1",
+ "unicode-bidi-mirroring 0.4.0",
+ "unicode-ccc 0.4.0",
"unicode-properties",
"unicode-script",
]
@@ -5388,7 +6186,7 @@ version = "14.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7803e8936da37efd9b6d4478277f4b2b9bb5cdb37a113e8d63222e58da647e63"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cfg-if",
"clipboard-win",
"fd-lock",
@@ -5463,8 +6261,8 @@ checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec"
dependencies = [
"ab_glyph",
"log",
- "memmap2 0.9.7",
- "smithay-client-toolkit",
+ "memmap2 0.9.8",
+ "smithay-client-toolkit 0.19.2",
"tiny-skia",
]
@@ -5475,29 +6273,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f7d95a54511e0c7be3f51e8867aa8cf35148d7b9445d44de2f943e2b206e749"
[[package]]
-name = "serde"
-version = "1.0.219"
+name = "semver"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
+checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
+
+[[package]]
+name = "serde"
+version = "1.0.228"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
+dependencies = [
+ "serde_core",
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_core"
+version = "1.0.228"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
dependencies = [
"serde_derive",
]
-[[package]]
-name = "serde-lexpr"
-version = "0.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb4cda13396159f59e7946118cdac0beadeecfb7cf76b197f4147e546f4ead6f"
-dependencies = [
- "lexpr",
- "serde",
-]
-
[[package]]
name = "serde_derive"
-version = "1.0.219"
+version = "1.0.228"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
+checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
dependencies = [
"proc-macro2",
"quote",
@@ -5506,15 +6310,16 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.143"
+version = "1.0.145"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a"
+checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
dependencies = [
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"itoa",
"memchr",
"ryu",
"serde",
+ "serde_core",
]
[[package]]
@@ -5551,19 +6356,18 @@ dependencies = [
[[package]]
name = "serde_with"
-version = "3.14.0"
+version = "3.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2c45cd61fefa9db6f254525d46e392b852e0e61d9a1fd36e5bd183450a556d5"
+checksum = "6093cd8c01b25262b84927e0f7151692158fab02d961e04c979d3903eba7ecc5"
dependencies = [
"base64 0.22.1",
"chrono",
"hex",
"indexmap 1.9.3",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"schemars 0.9.0",
"schemars 1.0.4",
- "serde",
- "serde_derive",
+ "serde_core",
"serde_json",
"serde_with_macros",
"time",
@@ -5571,11 +6375,11 @@ dependencies = [
[[package]]
name = "serde_with_macros"
-version = "3.14.0"
+version = "3.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de90945e6565ce0d9a25098082ed4ee4002e047cb59892c318d66821e14bb30f"
+checksum = "a7e6c180db0816026a61afa1cff5344fb7ebded7e4d3062772179f2501481c27"
dependencies = [
- "darling",
+ "darling 0.21.3",
"proc-macro2",
"quote",
"syn 2.0.106",
@@ -5643,6 +6447,15 @@ version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
+[[package]]
+name = "simd_helpers"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6"
+dependencies = [
+ "quote",
+]
+
[[package]]
name = "simplecss"
version = "0.2.2"
@@ -5660,9 +6473,9 @@ checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
[[package]]
name = "skrifa"
-version = "0.31.3"
+version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dbeb4ca4399663735553a09dd17ce7e49a0a0203f03b706b39628c4d913a8607"
+checksum = "8c31071dedf532758ecf3fed987cdb4bd9509f900e026ab684b4ecb81ea49841"
dependencies = [
"bytemuck",
"read-fonts",
@@ -5698,15 +6511,13 @@ version = "0.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
dependencies = [
- "bitflags 2.9.2",
- "bytemuck",
- "calloop",
- "calloop-wayland-source",
+ "bitflags 2.9.4",
+ "calloop 0.13.0",
+ "calloop-wayland-source 0.3.0",
"cursor-icon",
"libc",
"log",
- "memmap2 0.9.7",
- "pkg-config",
+ "memmap2 0.9.8",
"rustix 0.38.44",
"thiserror 1.0.69",
"wayland-backend",
@@ -5716,7 +6527,36 @@ dependencies = [
"wayland-protocols",
"wayland-protocols-wlr",
"wayland-scanner",
- "xkbcommon",
+ "xkeysym",
+]
+
+[[package]]
+name = "smithay-client-toolkit"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"
+dependencies = [
+ "bitflags 2.9.4",
+ "bytemuck",
+ "calloop 0.14.3",
+ "calloop-wayland-source 0.4.1",
+ "cursor-icon",
+ "libc",
+ "log",
+ "memmap2 0.9.8",
+ "pkg-config",
+ "rustix 1.1.2",
+ "thiserror 2.0.17",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-csd-frame",
+ "wayland-cursor",
+ "wayland-protocols",
+ "wayland-protocols-experimental",
+ "wayland-protocols-misc",
+ "wayland-protocols-wlr",
+ "wayland-scanner",
+ "xkbcommon 0.8.0",
"xkeysym",
]
@@ -5727,7 +6567,7 @@ source = "git+https://github.com/pop-os/smithay-clipboard?tag=pop-dnd-5#5a3007de
dependencies = [
"libc",
"raw-window-handle",
- "smithay-client-toolkit",
+ "smithay-client-toolkit 0.19.2",
"wayland-backend",
]
@@ -5752,18 +6592,18 @@ dependencies = [
[[package]]
name = "socket2"
-version = "0.6.0"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
+checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
name = "softbuffer"
version = "0.4.1"
-source = "git+https://github.com/pop-os/softbuffer?tag=cosmic-4.0#6e75b1ad7e98397d37cb187886d05969bc480995"
+source = "git+https://github.com/pop-os/softbuffer?tag=cosmic-4.0#a3f77e251e7422803f693df6e3fc313c010c4dcb"
dependencies = [
"as-raw-xcb-connection",
"bytemuck",
@@ -5775,10 +6615,10 @@ dependencies = [
"foreign-types",
"js-sys",
"log",
- "memmap2 0.9.7",
+ "memmap2 0.9.8",
"objc",
"raw-window-handle",
- "redox_syscall 0.4.1",
+ "redox_syscall 0.5.18",
"rustix 0.38.44",
"tiny-xlib",
"wasm-bindgen",
@@ -5805,7 +6645,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.2",
+ "bitflags 2.9.4",
]
[[package]]
@@ -5849,7 +6689,7 @@ dependencies = [
"futures-util",
"hashbrown 0.15.5",
"hashlink",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"log",
"memchr",
"once_cell",
@@ -5858,7 +6698,7 @@ dependencies = [
"serde_json",
"sha2",
"smallvec",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
"tokio",
"tokio-stream",
"tracing",
@@ -5911,7 +6751,7 @@ checksum = "aa003f0038df784eb8fecbbac13affe3da23b45194bd57dba231c8f48199c526"
dependencies = [
"atoi",
"base64 0.22.1",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"byteorder",
"bytes",
"crc",
@@ -5940,7 +6780,7 @@ dependencies = [
"smallvec",
"sqlx-core",
"stringprep",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
"tracing",
"whoami",
]
@@ -5953,7 +6793,7 @@ checksum = "db58fcd5a53cf07c184b154801ff91347e4c30d17a3562a635ff028ad5deda46"
dependencies = [
"atoi",
"base64 0.22.1",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"byteorder",
"crc",
"dotenvy",
@@ -5977,7 +6817,7 @@ dependencies = [
"smallvec",
"sqlx-core",
"stringprep",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
"tracing",
"whoami",
]
@@ -6001,16 +6841,16 @@ dependencies = [
"serde",
"serde_urlencoded",
"sqlx-core",
- "thiserror 2.0.16",
+ "thiserror 2.0.17",
"tracing",
"url",
]
[[package]]
name = "stable_deref_trait"
-version = "1.2.0"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
[[package]]
name = "static_assertions"
@@ -6108,9 +6948,9 @@ dependencies = [
[[package]]
name = "swash"
-version = "0.2.5"
+version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f745de914febc7c9ab4388dfaf94bbc87e69f57bb41133a9b0c84d4be49856f3"
+checksum = "47846491253e976bdd07d0f9cc24b7daf24720d11309302ccbbc6e6b6e53550a"
dependencies = [
"skrifa",
"yazi",
@@ -6119,28 +6959,32 @@ dependencies = [
[[package]]
name = "symphonia"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "815c942ae7ee74737bb00f965fa5b5a2ac2ce7b6c01c0cc169bbeaf7abd5f5a9"
+checksum = "5773a4c030a19d9bfaa090f49746ff35c75dfddfa700df7a5939d5e076a57039"
dependencies = [
"lazy_static",
"symphonia-bundle-flac",
"symphonia-bundle-mp3",
"symphonia-codec-aac",
"symphonia-codec-adpcm",
+ "symphonia-codec-alac",
"symphonia-codec-pcm",
"symphonia-codec-vorbis",
"symphonia-core",
+ "symphonia-format-caf",
"symphonia-format-isomp4",
+ "symphonia-format-mkv",
+ "symphonia-format-ogg",
"symphonia-format-riff",
"symphonia-metadata",
]
[[package]]
name = "symphonia-bundle-flac"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72e34f34298a7308d4397a6c7fbf5b84c5d491231ce3dd379707ba673ab3bd97"
+checksum = "c91565e180aea25d9b80a910c546802526ffd0072d0b8974e3ebe59b686c9976"
dependencies = [
"log",
"symphonia-core",
@@ -6150,9 +6994,9 @@ dependencies = [
[[package]]
name = "symphonia-bundle-mp3"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c01c2aae70f0f1fb096b6f0ff112a930b1fb3626178fba3ae68b09dce71706d4"
+checksum = "4872dd6bb56bf5eac799e3e957aa1981086c3e613b27e0ac23b176054f7c57ed"
dependencies = [
"lazy_static",
"log",
@@ -6162,9 +7006,9 @@ dependencies = [
[[package]]
name = "symphonia-codec-aac"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdbf25b545ad0d3ee3e891ea643ad115aff4ca92f6aec472086b957a58522f70"
+checksum = "4c263845aa86881416849c1729a54c7f55164f8b96111dba59de46849e73a790"
dependencies = [
"lazy_static",
"log",
@@ -6173,9 +7017,19 @@ dependencies = [
[[package]]
name = "symphonia-codec-adpcm"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c94e1feac3327cd616e973d5be69ad36b3945f16b06f19c6773fc3ac0b426a0f"
+checksum = "2dddc50e2bbea4cfe027441eece77c46b9f319748605ab8f3443350129ddd07f"
+dependencies = [
+ "log",
+ "symphonia-core",
+]
+
+[[package]]
+name = "symphonia-codec-alac"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8413fa754942ac16a73634c9dfd1500ed5c61430956b33728567f667fdd393ab"
dependencies = [
"log",
"symphonia-core",
@@ -6183,9 +7037,9 @@ dependencies = [
[[package]]
name = "symphonia-codec-pcm"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f395a67057c2ebc5e84d7bb1be71cce1a7ba99f64e0f0f0e303a03f79116f89b"
+checksum = "4e89d716c01541ad3ebe7c91ce4c8d38a7cf266a3f7b2f090b108fb0cb031d95"
dependencies = [
"log",
"symphonia-core",
@@ -6193,9 +7047,9 @@ dependencies = [
[[package]]
name = "symphonia-codec-vorbis"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a98765fb46a0a6732b007f7e2870c2129b6f78d87db7987e6533c8f164a9f30"
+checksum = "f025837c309cd69ffef572750b4a2257b59552c5399a5e49707cc5b1b85d1c73"
dependencies = [
"log",
"symphonia-core",
@@ -6204,9 +7058,9 @@ dependencies = [
[[package]]
name = "symphonia-core"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "798306779e3dc7d5231bd5691f5a813496dc79d3f56bf82e25789f2094e022c3"
+checksum = "ea00cc4f79b7f6bb7ff87eddc065a1066f3a43fe1875979056672c9ef948c2af"
dependencies = [
"arrayvec",
"bitflags 1.3.2",
@@ -6216,10 +7070,21 @@ dependencies = [
]
[[package]]
-name = "symphonia-format-isomp4"
-version = "0.5.4"
+name = "symphonia-format-caf"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abfdf178d697e50ce1e5d9b982ba1b94c47218e03ec35022d9f0e071a16dc844"
+checksum = "b8faf379316b6b6e6bbc274d00e7a592e0d63ff1a7e182ce8ba25e24edd3d096"
+dependencies = [
+ "log",
+ "symphonia-core",
+ "symphonia-metadata",
+]
+
+[[package]]
+name = "symphonia-format-isomp4"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "243739585d11f81daf8dac8d9f3d18cc7898f6c09a259675fc364b382c30e0a5"
dependencies = [
"encoding_rs",
"log",
@@ -6229,10 +7094,35 @@ dependencies = [
]
[[package]]
-name = "symphonia-format-riff"
-version = "0.5.4"
+name = "symphonia-format-mkv"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05f7be232f962f937f4b7115cbe62c330929345434c834359425e043bfd15f50"
+checksum = "122d786d2c43a49beb6f397551b4a050d8229eaa54c7ddf9ee4b98899b8742d0"
+dependencies = [
+ "lazy_static",
+ "log",
+ "symphonia-core",
+ "symphonia-metadata",
+ "symphonia-utils-xiph",
+]
+
+[[package]]
+name = "symphonia-format-ogg"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b4955c67c1ed3aa8ae8428d04ca8397fbef6a19b2b051e73b5da8b1435639cb"
+dependencies = [
+ "log",
+ "symphonia-core",
+ "symphonia-metadata",
+ "symphonia-utils-xiph",
+]
+
+[[package]]
+name = "symphonia-format-riff"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2d7c3df0e7d94efb68401d81906eae73c02b40d5ec1a141962c592d0f11a96f"
dependencies = [
"extended",
"log",
@@ -6242,9 +7132,9 @@ dependencies = [
[[package]]
name = "symphonia-metadata"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc622b9841a10089c5b18e99eb904f4341615d5aa55bbf4eedde1be721a4023c"
+checksum = "36306ff42b9ffe6e5afc99d49e121e0bd62fe79b9db7b9681d48e29fa19e6b16"
dependencies = [
"encoding_rs",
"lazy_static",
@@ -6254,9 +7144,9 @@ dependencies = [
[[package]]
name = "symphonia-utils-xiph"
-version = "0.5.4"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "484472580fa49991afda5f6550ece662237b00c6f562c7d9638d1b086ed010fe"
+checksum = "ee27c85ab799a338446b68eec77abf42e1a6f1bb490656e121c6e27bfbab9f16"
dependencies = [
"symphonia-core",
"symphonia-metadata",
@@ -6304,30 +7194,61 @@ dependencies = [
"libc",
]
+[[package]]
+name = "system-deps"
+version = "6.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"
+dependencies = [
+ "cfg-expr 0.15.8",
+ "heck 0.5.0",
+ "pkg-config",
+ "toml 0.8.23",
+ "version-compare",
+]
+
[[package]]
name = "system-deps"
version = "7.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4be53aa0cba896d2dc615bd42bbc130acdcffa239e0a2d965ea5b3b2a86ffdb"
dependencies = [
- "cfg-expr",
+ "cfg-expr 0.20.3",
"heck 0.5.0",
"pkg-config",
- "toml",
+ "toml 0.8.23",
"version-compare",
]
[[package]]
name = "taffy"
-version = "0.3.11"
-source = "git+https://github.com/DioxusLabs/taffy?rev=7781c70#7781c70241f7f572130c13106f2a869a9cf80885"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b25026fb8cc9ab51ab9fdabe5d11706796966f6d1c78e19871ef63be2b8f0644"
dependencies = [
"arrayvec",
"grid",
- "num-traits",
+ "serde",
"slotmap",
]
+[[package]]
+name = "tar"
+version = "0.4.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a"
+dependencies = [
+ "filetime",
+ "libc",
+ "xattr",
+]
+
+[[package]]
+name = "target-lexicon"
+version = "0.12.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
+
[[package]]
name = "target-lexicon"
version = "0.13.2"
@@ -6342,15 +7263,15 @@ checksum = "83176759e9416cf81ee66cb6508dbfe9c96f20b8b56265a39917551c23c70964"
[[package]]
name = "tempfile"
-version = "3.21.0"
+version = "3.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "15b61f8f20e3a6f7e0649d825294eaf317edce30f82cf6026e7e4cb9222a7d1e"
+checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16"
dependencies = [
"fastrand 2.3.0",
"getrandom 0.3.3",
"once_cell",
- "rustix 1.0.8",
- "windows-sys 0.60.2",
+ "rustix 1.1.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6368,7 +7289,7 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0"
dependencies = [
- "rustix 1.0.8",
+ "rustix 1.1.2",
"windows-sys 0.60.2",
]
@@ -6379,7 +7300,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057"
dependencies = [
"unicode-linebreak",
- "unicode-width 0.2.1",
+ "unicode-width 0.2.2",
]
[[package]]
@@ -6393,11 +7314,11 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "2.0.16"
+version = "2.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0"
+checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
dependencies = [
- "thiserror-impl 2.0.16",
+ "thiserror-impl 2.0.17",
]
[[package]]
@@ -6413,9 +7334,9 @@ dependencies = [
[[package]]
name = "thiserror-impl"
-version = "2.0.16"
+version = "2.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960"
+checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
dependencies = [
"proc-macro2",
"quote",
@@ -6432,10 +7353,24 @@ dependencies = [
]
[[package]]
-name = "time"
-version = "0.3.41"
+name = "tiff"
+version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40"
+checksum = "af9605de7fee8d9551863fd692cce7637f548dbd9db9180fcc07ccc6d26c336f"
+dependencies = [
+ "fax",
+ "flate2",
+ "half",
+ "quick-error",
+ "weezl",
+ "zune-jpeg",
+]
+
+[[package]]
+name = "time"
+version = "0.3.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d"
dependencies = [
"deranged",
"itoa",
@@ -6450,15 +7385,15 @@ dependencies = [
[[package]]
name = "time-core"
-version = "0.1.4"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c"
+checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b"
[[package]]
name = "time-macros"
-version = "0.2.22"
+version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49"
+checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3"
dependencies = [
"num-conv",
"time-core",
@@ -6475,7 +7410,7 @@ dependencies = [
"bytemuck",
"cfg-if",
"log",
- "png",
+ "png 0.17.16",
"tiny-skia-path",
]
@@ -6542,7 +7477,7 @@ dependencies = [
"pin-project-lite",
"signal-hook-registry",
"slab",
- "socket2 0.6.0",
+ "socket2 0.6.1",
"tokio-macros",
"tracing",
"windows-sys 0.59.0",
@@ -6570,6 +7505,15 @@ dependencies = [
"tokio",
]
+[[package]]
+name = "toml"
+version = "0.5.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
+dependencies = [
+ "serde",
+]
+
[[package]]
name = "toml"
version = "0.8.23"
@@ -6578,7 +7522,7 @@ checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
dependencies = [
"serde",
"serde_spanned",
- "toml_datetime",
+ "toml_datetime 0.6.11",
"toml_edit 0.22.27",
]
@@ -6591,14 +7535,23 @@ dependencies = [
"serde",
]
+[[package]]
+name = "toml_datetime"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2cdb639ebbc97961c51720f858597f7f24c4fc295327923af55b74c3c724533"
+dependencies = [
+ "serde_core",
+]
+
[[package]]
name = "toml_edit"
version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.10.0",
- "toml_datetime",
+ "indexmap 2.11.4",
+ "toml_datetime 0.6.11",
"winnow 0.5.40",
]
@@ -6608,11 +7561,32 @@ version = "0.22.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
dependencies = [
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"serde",
"serde_spanned",
- "toml_datetime",
- "winnow 0.7.12",
+ "toml_datetime 0.6.11",
+ "winnow 0.7.13",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.23.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6485ef6d0d9b5d0ec17244ff7eb05310113c3f316f2d14200d4de56b3cb98f8d"
+dependencies = [
+ "indexmap 2.11.4",
+ "toml_datetime 0.7.3",
+ "toml_parser",
+ "winnow 0.7.13",
+]
+
+[[package]]
+name = "toml_parser"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0cbe268d35bdb4bb5a56a2de88d0ad0eb70af5384a99d648cd4b3d04039800e"
+dependencies = [
+ "winnow 0.7.13",
]
[[package]]
@@ -6661,15 +7635,15 @@ dependencies = [
[[package]]
name = "tracing-subscriber"
-version = "0.3.19"
+version = "0.3.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008"
+checksum = "2054a14f5307d601f88daf0553e1cbf472acc4f2c51afab632431cdcd72124d5"
dependencies = [
"chrono",
"matchers",
"nu-ansi-term",
"once_cell",
- "regex",
+ "regex-automata",
"sharded-slab",
"smallvec",
"thread_local",
@@ -6695,10 +7669,19 @@ dependencies = [
]
[[package]]
-name = "typenum"
-version = "1.18.0"
+name = "type-map"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f"
+checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90"
+dependencies = [
+ "rustc-hash 2.1.1",
+]
+
+[[package]]
+name = "typenum"
+version = "1.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
[[package]]
name = "uds_windows"
@@ -6711,6 +7694,25 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "unic-langid"
+version = "0.9.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a28ba52c9b05311f4f6e62d5d9d46f094bd6e84cb8df7b3ef952748d752a7d05"
+dependencies = [
+ "unic-langid-impl",
+]
+
+[[package]]
+name = "unic-langid-impl"
+version = "0.9.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dce1bf08044d4b7a94028c93786f8566047edc11110595914de93362559bc658"
+dependencies = [
+ "serde",
+ "tinystr",
+]
+
[[package]]
name = "unicase"
version = "2.8.1"
@@ -6729,6 +7731,12 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23cb788ffebc92c5948d0e997106233eeb1d8b9512f93f41651f52b6c5f5af86"
+[[package]]
+name = "unicode-bidi-mirroring"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5dfa6e8c60bb66d49db113e0125ee8711b7647b5579dc7f5f19c42357ed039fe"
+
[[package]]
name = "unicode-ccc"
version = "0.2.0"
@@ -6736,10 +7744,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1df77b101bcc4ea3d78dafc5ad7e4f58ceffe0b2b16bf446aeb50b6cb4157656"
[[package]]
-name = "unicode-ident"
-version = "1.0.18"
+name = "unicode-ccc"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
+checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e"
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
[[package]]
name = "unicode-linebreak"
@@ -6788,9 +7802,9 @@ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
[[package]]
name = "unicode-width"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c"
+checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
[[package]]
name = "unicode-xid"
@@ -6800,9 +7814,9 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
[[package]]
name = "url"
-version = "2.5.4"
+version = "2.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
+checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"
dependencies = [
"form_urlencoded",
"idna",
@@ -6826,12 +7840,39 @@ dependencies = [
"data-url",
"flate2",
"fontdb 0.18.0",
- "imagesize",
+ "imagesize 0.12.0",
"kurbo 0.11.3",
"log",
"pico-args",
"roxmltree",
- "rustybuzz",
+ "rustybuzz 0.14.1",
+ "simplecss",
+ "siphasher",
+ "strict-num",
+ "svgtypes",
+ "tiny-skia-path",
+ "unicode-bidi",
+ "unicode-script",
+ "unicode-vo",
+ "xmlwriter",
+]
+
+[[package]]
+name = "usvg"
+version = "0.45.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80be9b06fbae3b8b303400ab20778c80bbaf338f563afe567cf3c9eea17b47ef"
+dependencies = [
+ "base64 0.22.1",
+ "data-url",
+ "flate2",
+ "fontdb 0.23.0",
+ "imagesize 0.13.0",
+ "kurbo 0.11.3",
+ "log",
+ "pico-args",
+ "roxmltree",
+ "rustybuzz 0.20.1",
"simplecss",
"siphasher",
"strict-num",
@@ -6861,6 +7902,17 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+[[package]]
+name = "v_frame"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2"
+dependencies = [
+ "aligned-vec",
+ "num-traits",
+ "wasm-bindgen",
+]
+
[[package]]
name = "valuable"
version = "0.1.1"
@@ -6909,11 +7961,20 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
name = "wasi"
-version = "0.14.2+wasi-0.2.4"
+version = "0.14.7+wasi-0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3"
+checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c"
dependencies = [
- "wit-bindgen-rt",
+ "wasip2",
+]
+
+[[package]]
+name = "wasip2"
+version = "1.0.1+wasi-0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
+dependencies = [
+ "wit-bindgen",
]
[[package]]
@@ -6924,21 +7985,22 @@ checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b"
[[package]]
name = "wasm-bindgen"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
+checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d"
dependencies = [
"cfg-if",
"once_cell",
"rustversion",
"wasm-bindgen-macro",
+ "wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
+checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19"
dependencies = [
"bumpalo",
"log",
@@ -6950,9 +8012,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.50"
+version = "0.4.54"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
+checksum = "7e038d41e478cc73bae0ff9b36c60cff1c98b8f38f8d7e8061e79ee63608ac5c"
dependencies = [
"cfg-if",
"js-sys",
@@ -6963,9 +8025,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
+checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -6973,9 +8035,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
+checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7"
dependencies = [
"proc-macro2",
"quote",
@@ -6986,9 +8048,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
+checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1"
dependencies = [
"unicode-ident",
]
@@ -7016,7 +8078,7 @@ checksum = "673a33c33048a5ade91a6b139580fa174e19fb0d23f396dca9fa15f2e1e49b35"
dependencies = [
"cc",
"downcast-rs",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"scoped-tls",
"smallvec",
"wayland-sys",
@@ -7028,8 +8090,8 @@ version = "0.31.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c66a47e840dc20793f2264eb4b3e4ecb4b75d91c0dd4af04b456128e0bdd449d"
dependencies = [
- "bitflags 2.9.2",
- "rustix 1.0.8",
+ "bitflags 2.9.4",
+ "rustix 1.1.2",
"wayland-backend",
"wayland-scanner",
]
@@ -7040,7 +8102,7 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cursor-icon",
"wayland-backend",
]
@@ -7051,7 +8113,7 @@ version = "0.31.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "447ccc440a881271b19e9989f75726d60faa09b95b0200a9b7eb5cc47c3eeb29"
dependencies = [
- "rustix 1.0.8",
+ "rustix 1.1.2",
"wayland-client",
"xcursor",
]
@@ -7062,20 +8124,46 @@ version = "0.32.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efa790ed75fbfd71283bd2521a1cfdc022aabcc28bdcff00851f9e4ae88d9901"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"wayland-backend",
"wayland-client",
"wayland-scanner",
"wayland-server",
]
+[[package]]
+name = "wayland-protocols-experimental"
+version = "20250721.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1"
+dependencies = [
+ "bitflags 2.9.4",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-misc"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2dfe33d551eb8bffd03ff067a8b44bb963919157841a99957151299a6307d19c"
+dependencies = [
+ "bitflags 2.9.4",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
[[package]]
name = "wayland-protocols-plasma"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a07a14257c077ab3279987c4f8bb987851bf57081b93710381daea94f2c2c032"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"wayland-backend",
"wayland-client",
"wayland-protocols",
@@ -7088,7 +8176,7 @@ version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efd94963ed43cf9938a090ca4f7da58eb55325ec8200c3848963e98dc25b78ec"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"wayland-backend",
"wayland-client",
"wayland-protocols",
@@ -7113,9 +8201,9 @@ version = "0.31.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcbd4f3aba6c9fba70445ad2a484c0ef0356c1a9459b1e8e435bedc1971a6222"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"downcast-rs",
- "rustix 1.0.8",
+ "rustix 1.1.2",
"wayland-backend",
"wayland-scanner",
]
@@ -7134,9 +8222,9 @@ dependencies = [
[[package]]
name = "web-sys"
-version = "0.3.77"
+version = "0.3.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
+checksum = "9367c417a924a74cae129e6a2ae3b47fabb1f8995595ab474029da749a8be120"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -7170,7 +8258,7 @@ dependencies = [
"js-sys",
"log",
"naga",
- "parking_lot 0.12.4",
+ "parking_lot 0.12.5",
"profiling",
"raw-window-handle",
"smallvec",
@@ -7191,14 +8279,14 @@ checksum = "0348c840d1051b8e86c3bcd31206080c5e71e5933dabd79be1ce732b0b2f089a"
dependencies = [
"arrayvec",
"bit-vec",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"cfg_aliases 0.1.1",
"document-features",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"log",
"naga",
"once_cell",
- "parking_lot 0.12.4",
+ "parking_lot 0.12.5",
"profiling",
"raw-window-handle",
"rustc-hash 1.1.0",
@@ -7218,7 +8306,7 @@ dependencies = [
"arrayvec",
"ash",
"bit-set",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block",
"cfg_aliases 0.1.1",
"core-graphics-types",
@@ -7239,7 +8327,7 @@ dependencies = [
"ndk-sys 0.5.0+25.2.9519653",
"objc",
"once_cell",
- "parking_lot 0.12.4",
+ "parking_lot 0.12.5",
"profiling",
"range-alloc",
"raw-window-handle",
@@ -7259,7 +8347,7 @@ version = "22.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc9d91f0e2c4b51434dfa6db77846f2793149d8e73f800fa2e41f52b8eac3c5d"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"js-sys",
"web-sys",
]
@@ -7276,9 +8364,9 @@ dependencies = [
[[package]]
name = "widestring"
-version = "1.2.0"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd7cf3379ca1aac9eea11fba24fd7e315d621f8dfe35c8d7d2be8b793726e07d"
+checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471"
[[package]]
name = "winapi"
@@ -7298,11 +8386,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
-version = "0.1.10"
+version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0978bf7171b3d90bac376700cb56d606feb40f251a475a5d6634613564460b22"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7369,14 +8457,14 @@ dependencies = [
[[package]]
name = "windows-core"
-version = "0.61.2"
+version = "0.62.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
dependencies = [
- "windows-implement 0.60.0",
- "windows-interface 0.59.1",
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
"windows-link",
- "windows-result 0.3.4",
+ "windows-result 0.4.1",
"windows-strings",
]
@@ -7393,9 +8481,9 @@ dependencies = [
[[package]]
name = "windows-implement"
-version = "0.60.0"
+version = "0.60.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
dependencies = [
"proc-macro2",
"quote",
@@ -7415,9 +8503,9 @@ dependencies = [
[[package]]
name = "windows-interface"
-version = "0.59.1"
+version = "0.59.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
dependencies = [
"proc-macro2",
"quote",
@@ -7426,9 +8514,9 @@ dependencies = [
[[package]]
name = "windows-link"
-version = "0.1.3"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
[[package]]
name = "windows-result"
@@ -7441,18 +8529,18 @@ dependencies = [
[[package]]
name = "windows-result"
-version = "0.3.4"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
dependencies = [
"windows-link",
]
[[package]]
name = "windows-strings"
-version = "0.4.2"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
dependencies = [
"windows-link",
]
@@ -7499,7 +8587,16 @@ version = "0.60.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
dependencies = [
- "windows-targets 0.53.3",
+ "windows-targets 0.53.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
]
[[package]]
@@ -7550,19 +8647,19 @@ dependencies = [
[[package]]
name = "windows-targets"
-version = "0.53.3"
+version = "0.53.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
dependencies = [
"windows-link",
- "windows_aarch64_gnullvm 0.53.0",
- "windows_aarch64_msvc 0.53.0",
- "windows_i686_gnu 0.53.0",
- "windows_i686_gnullvm 0.53.0",
- "windows_i686_msvc 0.53.0",
- "windows_x86_64_gnu 0.53.0",
- "windows_x86_64_gnullvm 0.53.0",
- "windows_x86_64_msvc 0.53.0",
+ "windows_aarch64_gnullvm 0.53.1",
+ "windows_aarch64_msvc 0.53.1",
+ "windows_i686_gnu 0.53.1",
+ "windows_i686_gnullvm 0.53.1",
+ "windows_i686_msvc 0.53.1",
+ "windows_x86_64_gnu 0.53.1",
+ "windows_x86_64_gnullvm 0.53.1",
+ "windows_x86_64_msvc 0.53.1",
]
[[package]]
@@ -7585,9 +8682,9 @@ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
[[package]]
name = "windows_aarch64_gnullvm"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
[[package]]
name = "windows_aarch64_msvc"
@@ -7609,9 +8706,9 @@ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
[[package]]
name = "windows_aarch64_msvc"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
[[package]]
name = "windows_i686_gnu"
@@ -7633,9 +8730,9 @@ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
[[package]]
name = "windows_i686_gnu"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3"
+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
[[package]]
name = "windows_i686_gnullvm"
@@ -7645,9 +8742,9 @@ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
[[package]]
name = "windows_i686_gnullvm"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
[[package]]
name = "windows_i686_msvc"
@@ -7669,9 +8766,9 @@ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
[[package]]
name = "windows_i686_msvc"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
[[package]]
name = "windows_x86_64_gnu"
@@ -7693,9 +8790,9 @@ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
[[package]]
name = "windows_x86_64_gnu"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
[[package]]
name = "windows_x86_64_gnullvm"
@@ -7717,9 +8814,9 @@ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
[[package]]
name = "windows_x86_64_gnullvm"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
[[package]]
name = "windows_x86_64_msvc"
@@ -7741,22 +8838,22 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "windows_x86_64_msvc"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
[[package]]
name = "winit"
version = "0.30.5"
-source = "git+https://github.com/pop-os/winit.git?tag=iced-xdg-surface-0.13#1cc02bdab141072eaabad639d74b032fd0fcc62e"
+source = "git+https://github.com/pop-os/winit.git?tag=iced-xdg-surface-0.13-rc#8dfaba290f9a00d3e13be71f1e6f438889cf5546"
dependencies = [
"ahash",
"android-activity",
"atomic-waker",
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"block2 0.5.1",
"bytemuck",
- "calloop",
+ "calloop 0.13.0",
"cfg_aliases 0.2.1",
"concurrent-queue",
"core-foundation",
@@ -7765,8 +8862,8 @@ dependencies = [
"dpi",
"js-sys",
"libc",
- "memmap2 0.9.7",
- "ndk 0.9.0",
+ "memmap2 0.9.8",
+ "ndk",
"objc2 0.5.2",
"objc2-app-kit 0.2.2",
"objc2-foundation 0.2.2",
@@ -7775,10 +8872,10 @@ dependencies = [
"percent-encoding",
"pin-project",
"raw-window-handle",
- "redox_syscall 0.4.1",
+ "redox_syscall 0.5.18",
"rustix 0.38.44",
"sctk-adwaita",
- "smithay-client-toolkit",
+ "smithay-client-toolkit 0.19.2",
"smol_str",
"tracing",
"unicode-segmentation",
@@ -7807,22 +8904,28 @@ dependencies = [
[[package]]
name = "winnow"
-version = "0.7.12"
+version = "0.7.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95"
+checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
dependencies = [
"memchr",
]
[[package]]
-name = "wit-bindgen-rt"
-version = "0.39.0"
+name = "wio"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
+checksum = "5d129932f4644ac2396cb456385cbf9e63b5b30c6e8dc4820bdca4eb082037a5"
dependencies = [
- "bitflags 2.9.2",
+ "winapi",
]
+[[package]]
+name = "wit-bindgen"
+version = "0.46.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
+
[[package]]
name = "writeable"
version = "0.6.1"
@@ -7842,24 +8945,35 @@ dependencies = [
[[package]]
name = "x11rb"
-version = "0.13.1"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d91ffca73ee7f68ce055750bf9f6eca0780b8c85eff9bc046a3b0da41755e12"
+checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
dependencies = [
"as-raw-xcb-connection",
"gethostname",
"libc",
"libloading",
"once_cell",
- "rustix 0.38.44",
+ "rustix 1.1.2",
"x11rb-protocol",
+ "xcursor",
]
[[package]]
name = "x11rb-protocol"
-version = "0.13.1"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec107c4503ea0b4a98ef47356329af139c0a4f7750e621cf2973cd3385ebcb3d"
+checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
+
+[[package]]
+name = "xattr"
+version = "1.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
+dependencies = [
+ "libc",
+ "rustix 1.1.2",
+]
[[package]]
name = "xcursor"
@@ -7873,6 +8987,12 @@ version = "2.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "213b7324336b53d2414b2db8537e56544d981803139155afa84f76eeebb7a546"
+[[package]]
+name = "xdg"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2fb433233f2df9344722454bc7e96465c9d03bff9d77c248f9e7523fe79585b5"
+
[[package]]
name = "xdg-home"
version = "1.3.0"
@@ -7894,13 +9014,35 @@ dependencies = [
"xkeysym",
]
+[[package]]
+name = "xkbcommon"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d66ca9352cbd4eecbbc40871d8a11b4ac8107cfc528a6e14d7c19c69d0e1ac9"
+dependencies = [
+ "libc",
+ "memmap2 0.9.8",
+ "xkeysym",
+]
+
+[[package]]
+name = "xkbcommon"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7a974f48060a14e95705c01f24ad9c3345022f4d97441b8a36beb7ed5c4a02d"
+dependencies = [
+ "libc",
+ "memmap2 0.9.8",
+ "xkeysym",
+]
+
[[package]]
name = "xkbcommon-dl"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5"
dependencies = [
- "bitflags 2.9.2",
+ "bitflags 2.9.4",
"dlib",
"log",
"once_cell",
@@ -7940,6 +9082,17 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5"
+[[package]]
+name = "yeslogic-fontconfig-sys"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "503a066b4c037c440169d995b869046827dbc71263f6e8f3be6d77d4f3229dbd"
+dependencies = [
+ "dlib",
+ "once_cell",
+ "pkg-config",
+]
+
[[package]]
name = "yoke"
version = "0.8.0"
@@ -8002,15 +9155,15 @@ dependencies = [
[[package]]
name = "zbus"
-version = "5.9.0"
+version = "5.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4bb4f9a464286d42851d18a605f7193b8febaf5b0919d71c6399b7b26e5b0aad"
+checksum = "2d07e46d035fb8e375b2ce63ba4e4ff90a7f73cf2ffb0138b29e1158d2eaadf7"
dependencies = [
"async-broadcast 0.7.2",
"async-executor",
- "async-io 2.5.0",
+ "async-io 2.6.0",
"async-lock 3.4.1",
- "async-process 2.4.0",
+ "async-process 2.5.0",
"async-recursion",
"async-task",
"async-trait",
@@ -8027,11 +9180,11 @@ dependencies = [
"tokio",
"tracing",
"uds_windows",
- "windows-sys 0.59.0",
- "winnow 0.7.12",
- "zbus_macros 5.9.0",
+ "windows-sys 0.60.2",
+ "winnow 0.7.13",
+ "zbus_macros 5.11.0",
"zbus_names 4.2.0",
- "zvariant 5.6.0",
+ "zvariant 5.7.0",
]
[[package]]
@@ -8050,17 +9203,17 @@ dependencies = [
[[package]]
name = "zbus_macros"
-version = "5.9.0"
+version = "5.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef9859f68ee0c4ee2e8cde84737c78e3f4c54f946f2a38645d0d4c7a95327659"
+checksum = "57e797a9c847ed3ccc5b6254e8bcce056494b375b511b3d6edcec0aeb4defaca"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
"syn 2.0.106",
"zbus_names 4.2.0",
- "zvariant 5.6.0",
- "zvariant_utils 3.2.0",
+ "zvariant 5.7.0",
+ "zvariant_utils 3.2.1",
]
[[package]]
@@ -8082,8 +9235,8 @@ checksum = "7be68e64bf6ce8db94f63e72f0c7eb9a60d733f7e0499e628dfab0f84d6bcb97"
dependencies = [
"serde",
"static_assertions",
- "winnow 0.7.12",
- "zvariant 5.6.0",
+ "winnow 0.7.13",
+ "zvariant 5.7.0",
]
[[package]]
@@ -8094,18 +9247,18 @@ checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524"
[[package]]
name = "zerocopy"
-version = "0.8.26"
+version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f"
+checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.26"
+version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181"
+checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"
dependencies = [
"proc-macro2",
"quote",
@@ -8135,9 +9288,9 @@ dependencies = [
[[package]]
name = "zeroize"
-version = "1.8.1"
+version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
+checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
[[package]]
name = "zerotrie"
@@ -8172,6 +9325,34 @@ dependencies = [
"syn 2.0.106",
]
+[[package]]
+name = "zstd"
+version = "0.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"
+dependencies = [
+ "zstd-safe",
+]
+
+[[package]]
+name = "zstd-safe"
+version = "7.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d"
+dependencies = [
+ "zstd-sys",
+]
+
+[[package]]
+name = "zstd-sys"
+version = "2.0.16+zstd.1.5.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748"
+dependencies = [
+ "cc",
+ "pkg-config",
+]
+
[[package]]
name = "zune-core"
version = "0.4.12"
@@ -8179,10 +9360,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a"
[[package]]
-name = "zune-jpeg"
-version = "0.4.20"
+name = "zune-inflate"
+version = "0.2.54"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc1f7e205ce79eb2da3cd71c5f55f3589785cb7c79f6a03d1c8d1491bda5d089"
+checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"
+dependencies = [
+ "simd-adler32",
+]
+
+[[package]]
+name = "zune-jpeg"
+version = "0.4.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713"
dependencies = [
"zune-core",
]
@@ -8203,17 +9393,17 @@ dependencies = [
[[package]]
name = "zvariant"
-version = "5.6.0"
+version = "5.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d91b3680bb339216abd84714172b5138a4edac677e641ef17e1d8cb1b3ca6e6f"
+checksum = "999dd3be73c52b1fccd109a4a81e4fcd20fab1d3599c8121b38d04e1419498db"
dependencies = [
"endi",
"enumflags2",
"serde",
"url",
- "winnow 0.7.12",
- "zvariant_derive 5.6.0",
- "zvariant_utils 3.2.0",
+ "winnow 0.7.13",
+ "zvariant_derive 5.7.0",
+ "zvariant_utils 3.2.1",
]
[[package]]
@@ -8231,15 +9421,15 @@ dependencies = [
[[package]]
name = "zvariant_derive"
-version = "5.6.0"
+version = "5.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a8c68501be459a8dbfffbe5d792acdd23b4959940fc87785fb013b32edbc208"
+checksum = "6643fd0b26a46d226bd90d3f07c1b5321fe9bb7f04673cb37ac6d6883885b68e"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
"syn 2.0.106",
- "zvariant_utils 3.2.0",
+ "zvariant_utils 3.2.1",
]
[[package]]
@@ -8255,14 +9445,13 @@ dependencies = [
[[package]]
name = "zvariant_utils"
-version = "3.2.0"
+version = "3.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e16edfee43e5d7b553b77872d99bc36afdda75c223ca7ad5e3fbecd82ca5fc34"
+checksum = "c6949d142f89f6916deca2232cf26a8afacf2b9fdc35ce766105e104478be599"
dependencies = [
"proc-macro2",
"quote",
"serde",
- "static_assertions",
"syn 2.0.106",
- "winnow 0.7.12",
+ "winnow 0.7.13",
]
diff --git a/Cargo.toml b/Cargo.toml
index 4f5c510..88b7cef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,12 +8,9 @@ description = "A cli presentation system"
[dependencies]
clap = { version = "4.5.20", features = ["debug", "derive"] }
-libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, features = ["debug", "winit", "desktop", "winit_wgpu", "winit_tokio", "tokio", "rfd", "dbus-config", "a11y", "wgpu", "multi-window"] }
-lexpr = "0.2.7"
miette = { version = "7.2.0", features = ["fancy"] }
pretty_assertions = "1.4.1"
serde = { version = "1.0.213", features = ["derive"] }
-serde-lexpr = "0.1.3"
tracing = "0.1.40"
tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.18", features = ["fmt", "std", "chrono", "time", "local-time", "env-filter"] }
@@ -21,10 +18,10 @@ strum = "0.26.3"
strum_macros = "0.26.4"
ron = "0.8.1"
sqlx = { version = "0.8.2", features = ["sqlite", "runtime-tokio"] }
-dirs = "5.0.1"
+dirs = "6.0.0"
tokio = "1.41.1"
crisp = { git = "https://git.tfcconnection.org/chris/crisp", version = "0.1.3" }
-rodio = { version = "0.20.1", features = ["symphonia-all", "tracing"] }
+rodio = { version = "0.21.1", features = ["symphonia-all", "tracing"] }
gstreamer = "0.23"
gstreamer-app = "0.23"
# gstreamer-video = "0.23"
@@ -33,11 +30,25 @@ gstreamer-app = "0.23"
url = "2"
colors-transform = "0.2.11"
rayon = "1.11.0"
-# resvg = "0.45.1"
+resvg = "0.45.1"
+image = "0.25.8"
+rapidhash = "4.0.0"
+rapidfuzz = "0.5.0"
+# dragking = { git = "https://github.com/airstrike/dragking" }
# femtovg = { version = "0.16.0", features = ["wgpu"] }
# wgpu = "26.0.1"
# mupdf = "0.5.0"
-# rfd = { version = "0.12.1", features = ["xdg-portal"], default-features = false }
+mupdf = { version = "0.5.0", git = "https://github.com/messense/mupdf-rs", rev="2425c1405b326165b06834dcc1ca859015f92787"}
+tar = "0.4.44"
+zstd = "0.13.3"
+fastrand = "2.3.0"
+
+# rfd = { version = "0.15.4", default-features = false, features = ["xdg-portal"] }
+
+[dependencies.libcosmic]
+git = "https://github.com/pop-os/libcosmic"
+default-features = false
+features = ["debug", "winit", "desktop", "winit_wgpu", "winit_tokio", "tokio", "wayland", "rfd", "dbus-config", "a11y", "wgpu", "multi-window", "process"]
[dependencies.iced_video_player]
git = "https://github.com/jackpot51/iced_video_player.git"
diff --git a/flake.lock b/flake.lock
index d20281c..d60478a 100644
--- a/flake.lock
+++ b/flake.lock
@@ -6,11 +6,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
- "lastModified": 1755585599,
- "narHash": "sha256-tl/0cnsqB/Yt7DbaGMel2RLa7QG5elA8lkaOXli6VdY=",
+ "lastModified": 1759214609,
+ "narHash": "sha256-+V3SeMjAMd9j9JTECk9oc0gWhtsk79rFEbYf/tHjywo=",
"owner": "nix-community",
"repo": "fenix",
- "rev": "6ed03ef4c8ec36d193c18e06b9ecddde78fb7e42",
+ "rev": "f93a2d7225bc7a93d3379acff8fe722e21d97852",
"type": "github"
},
"original": {
@@ -80,11 +80,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1755186698,
- "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
+ "lastModified": 1759036355,
+ "narHash": "sha256-0m27AKv6ka+q270dw48KflE0LwQYrO7Fm4/2//KCVWg=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
+ "rev": "e9f00bd893984bc8ce46c895c3bf7cac95331127",
"type": "github"
},
"original": {
@@ -112,11 +112,11 @@
},
"nixpkgs_3": {
"locked": {
- "lastModified": 1755615617,
- "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
+ "lastModified": 1759036355,
+ "narHash": "sha256-0m27AKv6ka+q270dw48KflE0LwQYrO7Fm4/2//KCVWg=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "20075955deac2583bb12f07151c2df830ef346b4",
+ "rev": "e9f00bd893984bc8ce46c895c3bf7cac95331127",
"type": "github"
},
"original": {
@@ -137,11 +137,11 @@
"rust-analyzer-src": {
"flake": false,
"locked": {
- "lastModified": 1755504847,
- "narHash": "sha256-VX0B9hwhJypCGqncVVLC+SmeMVd/GAYbJZ0MiiUn2Pk=",
+ "lastModified": 1759134797,
+ "narHash": "sha256-YPi+jL3tx/yC5J5l7/OB7Lnlr9BMTzYnZtm7tRJzUNg=",
"owner": "rust-lang",
"repo": "rust-analyzer",
- "rev": "a905e3b21b144d77e1b304e49f3264f6f8d4db75",
+ "rev": "062ac7a5451e8e92a32e22a60d86882d6a034f3f",
"type": "github"
},
"original": {
diff --git a/flake.nix b/flake.nix
index 97f77af..ebcd5e0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -8,95 +8,116 @@
fenix.url = "github:nix-community/fenix";
};
- outputs = inputs: with inputs;
- flake-utils.lib.eachDefaultSystem
- (system:
- let
- pkgs = import nixpkgs {
- inherit system;
- overlays = [fenix.overlays.default];
- # overlays = [cargo2nix.overlays.default];
- };
- naersk' = pkgs.callPackage naersk {};
- nbi = with pkgs; [
- # Rust tools
- alejandra
- (pkgs.fenix.stable.withComponents [
- "cargo"
- "clippy"
- "rust-src"
- "rustc"
- "rustfmt"
- ])
- rust-analyzer
- vulkan-loader
- wayland
- wayland-protocols
- libxkbcommon
- pkg-config
- sccache
- ];
+ outputs =
+ inputs:
+ with inputs;
+ flake-utils.lib.eachDefaultSystem (
+ system:
+ let
+ pkgs = import nixpkgs {
+ inherit system;
+ overlays = [ fenix.overlays.default ];
+ # overlays = [cargo2nix.overlays.default];
+ };
+ naersk' = pkgs.callPackage naersk { };
+ nbi = with pkgs; [
+ # Rust tools
+ alejandra
+ (pkgs.fenix.stable.withComponents [
+ "cargo"
+ "clippy"
+ "rust-src"
+ "rustc"
+ "rustfmt"
+ ])
+ rust-analyzer
+ vulkan-loader
+ wayland
+ wayland-protocols
+ libxkbcommon
+ pkg-config
+ sccache
+ ];
- bi = with pkgs; [
- gcc
- stdenv
- gnumake
- gdb
- lldb
- cmake
- makeWrapper
- vulkan-headers
- vulkan-loader
- vulkan-tools
- libGL
- cargo-flamegraph
+ bi = with pkgs; [
+ gcc
+ stdenv
+ gnumake
+ gdb
+ lldb
+ cmake
+ clang
+ libclang
+ makeWrapper
+ vulkan-headers
+ vulkan-loader
+ vulkan-tools
+ libGL
+ cargo-flamegraph
+ bacon
- fontconfig
- glib
- alsa-lib
- gst_all_1.gst-libav
- gst_all_1.gst-plugins-bad
- gst_all_1.gst-plugins-good
- gst_all_1.gst-plugins-ugly
- gst_all_1.gst-plugins-base
- gst_all_1.gst-plugins-rs
- gst_all_1.gst-vaapi
- gst_all_1.gstreamer
- # podofo
- # mpv
- ffmpeg-full
- # yt-dlp
+ fontconfig
+ glib
+ alsa-lib
+ gst_all_1.gst-libav
+ gst_all_1.gst-plugins-bad
+ gst_all_1.gst-plugins-good
+ gst_all_1.gst-plugins-ugly
+ gst_all_1.gst-plugins-base
+ gst_all_1.gst-plugins-rs
+ gst_all_1.gst-vaapi
+ gst_all_1.gstreamer
+ ffmpeg-full
+ mupdf
+ # yt-dlp
- just
- sqlx-cli
- cargo-watch
- ];
- in rec
- {
- devShell = pkgs.mkShell.override {
- # stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
- } {
- nativeBuildInputs = nbi;
- buildInputs = bi;
- LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${
- with pkgs;
- pkgs.lib.makeLibraryPath [
- pkgs.vulkan-loader
- pkgs.wayland
- pkgs.wayland-protocols
- pkgs.libxkbcommon
- ]
- }";
- DATABASE_URL = "sqlite:///home/chris/.local/share/lumina/library-db.sqlite3";
- };
- defaultPackage = naersk'.buildPackage {
+ just
+ sqlx-cli
+ cargo-watch
+ ];
+ in
+ rec {
+ devShell =
+ pkgs.mkShell.override
+ {
+ # stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
+ }
+ {
+ nativeBuildInputs = nbi;
+ buildInputs = bi;
+ LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${
+ with pkgs;
+ pkgs.lib.makeLibraryPath [
+ pkgs.alsa-lib
+ pkgs.gst_all_1.gst-libav
+ pkgs.gst_all_1.gstreamer
+ pkgs.gst_all_1.gst-plugins-bad
+ pkgs.gst_all_1.gst-plugins-good
+ pkgs.gst_all_1.gst-plugins-ugly
+ pkgs.gst_all_1.gst-plugins-base
+ pkgs.gst_all_1.gst-plugins-rs
+ pkgs.gst_all_1.gst-vaapi
+ pkgs.glib
+ pkgs.fontconfig
+ pkgs.vulkan-loader
+ pkgs.wayland
+ pkgs.wayland-protocols
+ pkgs.libxkbcommon
+ pkgs.mupdf
+ pkgs.libclang
+ ]
+ }";
+ # LIBCLANG_PATH = "${pkgs.clang}";
+ DATABASE_URL = "sqlite:///home/chris/.local/share/lumina/library-db.sqlite3";
+ };
+ defaultPackage = naersk'.buildPackage {
+ src = ./.;
+ };
+ packages = {
+ default = naersk'.buildPackage {
src = ./.;
};
- packages = {
- default = naersk'.buildPackage {
- src = ./.;
- };
- };
- }
- );
+ };
+ }
+ );
}
diff --git a/justfile b/justfile
index 8eb74f5..1da1804 100644
--- a/justfile
+++ b/justfile
@@ -8,6 +8,8 @@ build:
sbuild:
RUST_LOG=debug sccache cargo build
run:
+ RUST_LOG=debug cargo run -- {{ui}}
+run-file:
RUST_LOG=debug cargo run -- {{ui}} {{file}}
srun:
RUST_LOG=debug sccache cargo run -- {{ui}} {{file}}
@@ -20,5 +22,6 @@ profile:
alias b := build
alias r := run
+alias rf := run-file
alias sr := srun
alias c := clean
diff --git a/migrations/20250925190420_Remove_the_page_count_column_in_presentations_table.sql b/migrations/20250925190420_Remove_the_page_count_column_in_presentations_table.sql
new file mode 100644
index 0000000..b1a6d30
--- /dev/null
+++ b/migrations/20250925190420_Remove_the_page_count_column_in_presentations_table.sql
@@ -0,0 +1,3 @@
+-- Add migration script here
+ALTER TABLE presentations
+DROP COLUMN pageCount;
diff --git a/migrations/20251020184333_add_starting_index_and_ending_index_to_presentations_table.sql b/migrations/20251020184333_add_starting_index_and_ending_index_to_presentations_table.sql
new file mode 100644
index 0000000..abf000f
--- /dev/null
+++ b/migrations/20251020184333_add_starting_index_and_ending_index_to_presentations_table.sql
@@ -0,0 +1,6 @@
+-- Add migration script here
+ALTER TABLE presentations
+ADD COLUMN starting_index INTEGER;
+
+ALTER TABLE presentations
+ADD COLUMN ending_index INTEGER;
diff --git a/readme.org b/readme.org
index 7f7470c..e378379 100644
--- a/readme.org
+++ b/readme.org
@@ -4,14 +4,12 @@
Lumina is a presentation app that works from a cli or a UI. The goal is that through a simple text file, you can describe an entire presentation and then load and control it either from the command line, or a UI. The UI also provides user friendly ways of creating the presentation to allow for flexibility for users to make something that works for regular folk as well as developers and nerds.
* Why build this?
-Well for one, I want more experience developing things and I don't have a good tool for this kind of thing on Linux.
-
Primarily, I don't think there is a good tool for this kind of thing on Linux. On Windows and Mac there is ProPresenter or Proclaim. Both amazing presentation software built for churches or worship centers and can be used by others for other things too, but incredible tools. I want to have a similar tool on Linux. The available tools out there now are often old, broken, or very difficult to use. I want something incredibly easy, with very sane or at least very customizable keyboard controls that allow me to quickly build a presentation and make it VERY easy to run it too.
** Features (planned are in parentheses)
- Presents songs lyrics with image and video backgrounds
- Simple song creation with a powerful text parser
-- Present Slides (PDF, PowerPoint, and Impress are in not implemented yet)
+- Present Slides. PDF works. (PowerPoint, and Impress are in not implemented yet)
- (Present Reveal.js slides)
- (Custom slide builder)
- (an intuitive UI) - Still needs A LOT of polish
diff --git a/res/chad.png b/res/chad.png
new file mode 100644
index 0000000..44f21f3
Binary files /dev/null and b/res/chad.png differ
diff --git a/res/list-add-above.svg b/res/list-add-above.svg
new file mode 100644
index 0000000..27f02ba
--- /dev/null
+++ b/res/list-add-above.svg
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/res/list-add-below.svg b/res/list-add-below.svg
new file mode 100644
index 0000000..99adb9e
--- /dev/null
+++ b/res/list-add-below.svg
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/res/split-above.svg b/res/split-above.svg
new file mode 100644
index 0000000..b105436
--- /dev/null
+++ b/res/split-above.svg
@@ -0,0 +1,54 @@
+
+
+
+
diff --git a/res/split-below.svg b/res/split-below.svg
new file mode 100644
index 0000000..072feb7
--- /dev/null
+++ b/res/split-below.svg
@@ -0,0 +1,60 @@
+
+
+
+
diff --git a/res/text-outline.svg b/res/text-outline.svg
new file mode 100644
index 0000000..4c12366
--- /dev/null
+++ b/res/text-outline.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/rustfmt.toml b/rustfmt.toml
index 0f2a39c..91b451d 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,3 +1,3 @@
max_width = 70
-# style_edition = "2018"
+style_edition = "2024"
# version = "Two"
\ No newline at end of file
diff --git a/src/core/file.rs b/src/core/file.rs
index e3d5c8f..5b8f917 100644
--- a/src/core/file.rs
+++ b/src/core/file.rs
@@ -1,356 +1,408 @@
-use tar::{Archive, Builder};
+use crate::core::{
+ kinds::ServiceItemKind, service_items::ServiceItem,
+ slide::Background,
+};
+use miette::{IntoDiagnostic, Result};
+use std::{
+ fs::{self, File},
+ io::Write,
+ iter,
+ path::{Path, PathBuf},
+};
+use tar::Builder;
use tracing::error;
use zstd::Encoder;
-use std::{fs::{self, File}, iter, path::{Path, PathBuf}};
-use color_eyre::eyre::{eyre, Context, Result};
-use serde_json::Value;
-use sqlx::{query, query_as, FromRow, SqliteConnection};
-use crate::{images::{get_image_from_db, Image}, kinds::ServiceItemKind, model::get_db, presentations::{get_presentation_from_db, PresKind, Presentation}, service_items::ServiceItem, slides::Background, songs::{get_song_from_db, Song}, videos::{get_video_from_db, Video}};
-pub async fn save(list: Vec, path: impl AsRef) -> Result<()> {
+pub async fn save(
+ list: Vec,
+ path: impl AsRef,
+) -> Result<()> {
let path = path.as_ref();
- let save_file = File::create(path)?;
- let mut db = get_db().await;
- let json = process_service_items(&list, &mut db).await?;
- let archive = store_service_items(&list, &mut db, &save_file, &json).await?;
- Ok(())
-}
+ let save_file = File::create(path).into_diagnostic()?;
+ let ron = process_service_items(&list).await?;
-async fn store_service_items(items: &Vec, db: &mut SqliteConnection, save_file: &File, json: &Value) -> Result<()> {
let encoder = Encoder::new(save_file, 3).unwrap();
let mut tar = Builder::new(encoder);
let mut temp_dir = dirs::data_dir().unwrap();
temp_dir.push("lumina");
let mut s: String =
- iter::repeat_with(fastrand::alphanumeric)
- .take(5)
- .collect();
+ iter::repeat_with(fastrand::alphanumeric).take(5).collect();
s.insert_str(0, "temp_");
temp_dir.push(s);
- fs::create_dir_all(&temp_dir)?;
- let service_file = temp_dir.join("serviceitems.json");
- fs::File::create(&service_file)?;
- match fs::File::options().read(true).write(true).open(service_file) {
- Ok(f) => {
- serde_json::to_writer_pretty(f, json)?;
- },
- Err(e) => error!("There were problems making a file i guess: {e}"),
+ fs::create_dir_all(&temp_dir).into_diagnostic()?;
+ let service_file = temp_dir.join("serviceitems.ron");
+ fs::File::create(&service_file).into_diagnostic()?;
+ match fs::File::options()
+ .read(true)
+ .write(true)
+ .open(service_file)
+ {
+ Ok(mut f) => {
+ f.write(ron.as_bytes()).into_diagnostic()?;
+ }
+ Err(e) => {
+ error!("There were problems making a file i guess: {e}")
+ }
};
- for item in items {
+ // let list list.iter_mut().map(|item| {
+ // match item.kind {
+ // ServiceItemKind::Song(mut song) => {
+ // song.background
+ // }
+ // }
+ // }).collect();
+ for item in list {
let background;
let audio: Option;
- match item.kind {
- ServiceItemKind::Song => {
- let song = get_song_from_db(item.database_id, db).await?;
- background = song.background;
- audio = song.audio;
- },
- ServiceItemKind::Image => {
- let image = get_image_from_db(item.database_id, db).await?;
- background = Some(Background::try_from(image.path)?);
+ match &item.kind {
+ ServiceItemKind::Song(song) => {
+ background = song.background.clone();
+ audio = song.audio.clone();
+ }
+ ServiceItemKind::Image(image) => {
+ background = Some(
+ Background::try_from(image.path.clone())
+ .into_diagnostic()?,
+ );
audio = None;
- },
- ServiceItemKind::Video => {
- let video = get_video_from_db(item.database_id, db).await?;
- background = Some(Background::try_from(video.path)?);
+ }
+ ServiceItemKind::Video(video) => {
+ background = Some(
+ Background::try_from(video.path.clone())
+ .into_diagnostic()?,
+ );
audio = None;
- },
- ServiceItemKind::Presentation(_) => {
- let presentation = get_presentation_from_db(item.database_id, db).await?;
- background = Some(Background::try_from(presentation.path)?);
+ }
+ ServiceItemKind::Presentation(presentation) => {
+ background = Some(
+ Background::try_from(presentation.path.clone())
+ .into_diagnostic()?,
+ );
audio = None;
- },
- ServiceItemKind::Content => {
+ }
+ ServiceItemKind::Content(_slide) => {
todo!()
- },
+ }
};
if let Some(file) = audio {
- let audio_file = temp_dir.join(file.file_name().expect("Audio file couldn't be added to temp_dir"));
+ let audio_file =
+ temp_dir.join(file.file_name().expect(
+ "Audio file couldn't be added to temp_dir",
+ ));
if let Ok(file) = file.strip_prefix("file://") {
- fs::File::create(&audio_file).wrap_err("Couldn't create audio file")?;
- fs::copy(file, audio_file).wrap_err("Audio file could not be copied, the source file doesn't exist not be found");
+ fs::File::create(&audio_file).into_diagnostic()?;
+ fs::copy(file, audio_file).into_diagnostic()?;
} else {
- fs::File::create(&audio_file).wrap_err("Couldn't create audio file")?;
- fs::copy(file, audio_file).wrap_err("Audio file could not be copied, the source file doesn't exist not be found");
+ fs::File::create(&audio_file).into_diagnostic()?;
+ fs::copy(file, audio_file).into_diagnostic()?;
}
};
if let Some(file) = background {
- let background_file = temp_dir.join(file.path.file_name().expect("Background file couldn't be added to temp_dir"));
+ let background_file =
+ temp_dir.join(file.path.file_name().expect(
+ "Background file couldn't be added to temp_dir",
+ ));
if let Ok(file) = file.path.strip_prefix("file://") {
- fs::File::create(&background_file).wrap_err("Couldn't create background file")?;
- fs::copy(file, background_file).wrap_err("Background file could not be copied, the source file doesn't exist not be found");
+ fs::File::create(&background_file)
+ .into_diagnostic()?;
+ fs::copy(file, background_file).into_diagnostic()?;
} else {
- fs::File::create(&background_file).wrap_err("Couldn't create background file")?;
- fs::copy(file.path, background_file).wrap_err("Background file could not be copied, the source file doesn't exist not be found");
+ fs::File::create(&background_file)
+ .into_diagnostic()?;
+ fs::copy(file.path, background_file)
+ .into_diagnostic()?;
}
}
}
- Ok(())
+ tar.append_dir_all(path, temp_dir).into_diagnostic()?;
+ tar.finish().into_diagnostic()
}
async fn clear_temp_dir(temp_dir: &Path) -> Result<()> {
todo!()
}
-async fn process_service_items(items: &Vec, db: &mut SqliteConnection) -> Result {
- let mut values: Vec = vec![];
- for item in items {
- match item.kind {
- ServiceItemKind::Song => {
- let value = process_song(item.database_id, db).await?;
- values.push(value);
- },
- ServiceItemKind::Image => {
- let value = process_image(item.database_id, db).await?;
- values.push(value);
- },
- ServiceItemKind::Video => {
- let value = process_video(item.database_id, db).await?;
- values.push(value);
- },
- ServiceItemKind::Presentation(_) => {
- let value = process_presentation(item.database_id, db).await?;
- values.push(value);
- },
- ServiceItemKind::Content => {
- todo!()
- },
- }
- }
- let json = Value::from(values);
- Ok(json)
+async fn process_service_items(
+ items: &Vec,
+) -> Result {
+ Ok(items
+ .into_iter()
+ .filter_map(|item| {
+ let ron = ron::ser::to_string(item);
+ ron.ok()
+ })
+ .collect())
}
-async fn process_song(database_id: i32, db: &mut SqliteConnection) -> Result {
- let song = get_song_from_db(database_id, db).await?;
- let song_json = serde_json::to_value(&song)?;
- let kind_json = serde_json::to_value(ServiceItemKind::Song)?;
- let json = serde_json::json!({"item": song_json, "kind": kind_json});
- Ok(json)
-}
+// async fn process_song(
+// database_id: i32,
+// db: &mut SqliteConnection,
+// ) -> Result {
+// let song = get_song_from_db(database_id, db).await?;
+// let song_ron = ron::to_value(&song)?;
+// let kind_ron = ron::to_value(ServiceItemKind::Song)?;
+// let json =
+// serde_json::json!({"item": song_json, "kind": kind_json});
+// Ok(json)
+// }
-async fn process_image(database_id: i32, db: &mut SqliteConnection) -> Result {
- let image = get_image_from_db(database_id, db).await?;
- let image_json = serde_json::to_value(&image)?;
- let kind_json = serde_json::to_value(ServiceItemKind::Image)?;
- let json = serde_json::json!({"item": image_json, "kind": kind_json});
- Ok(json)
-}
+// async fn process_image(
+// database_id: i32,
+// db: &mut SqliteConnection,
+// ) -> Result {
+// let image = get_image_from_db(database_id, db).await?;
+// let image_json = serde_json::to_value(&image)?;
+// let kind_json = serde_json::to_value(ServiceItemKind::Image)?;
+// let json =
+// serde_json::json!({"item": image_json, "kind": kind_json});
+// Ok(json)
+// }
-async fn process_video(database_id: i32, db: &mut SqliteConnection) -> Result {
- let video = get_video_from_db(database_id, db).await?;
- let video_json = serde_json::to_value(&video)?;
- let kind_json = serde_json::to_value(ServiceItemKind::Video)?;
- let json = serde_json::json!({"item": video_json, "kind": kind_json});
- Ok(json)
-}
+// async fn process_video(
+// database_id: i32,
+// db: &mut SqliteConnection,
+// ) -> Result {
+// let video = get_video_from_db(database_id, db).await?;
+// let video_json = serde_json::to_value(&video)?;
+// let kind_json = serde_json::to_value(ServiceItemKind::Video)?;
+// let json =
+// serde_json::json!({"item": video_json, "kind": kind_json});
+// Ok(json)
+// }
-async fn process_presentation(database_id: i32, db: &mut SqliteConnection) -> Result {
- let presentation = get_presentation_from_db(database_id, db).await?;
- let presentation_json = serde_json::to_value(&presentation)?;
- let kind_json = match presentation.kind {
- PresKind::Html => serde_json::to_value(ServiceItemKind::Presentation(PresKind::Html))?,
- PresKind::Pdf => serde_json::to_value(ServiceItemKind::Presentation(PresKind::Pdf))?,
- PresKind::Generic => serde_json::to_value(ServiceItemKind::Presentation(PresKind::Generic))?,
- };
- let json = serde_json::json!({"item": presentation_json, "kind": kind_json});
- Ok(json)
-}
+// async fn process_presentation(
+// database_id: i32,
+// db: &mut SqliteConnection,
+// ) -> Result {
+// let presentation =
+// get_presentation_from_db(database_id, db).await?;
+// let presentation_json = serde_json::to_value(&presentation)?;
+// let kind_json = match presentation.kind {
+// PresKind::Html => serde_json::to_value(
+// ServiceItemKind::Presentation(PresKind::Html),
+// )?,
+// PresKind::Pdf => serde_json::to_value(
+// ServiceItemKind::Presentation(PresKind::Pdf),
+// )?,
+// PresKind::Generic => serde_json::to_value(
+// ServiceItemKind::Presentation(PresKind::Generic),
+// )?,
+// };
+// let json = serde_json::json!({"item": presentation_json, "kind": kind_json});
+// Ok(json)
+// }
-#[cfg(test)]
-mod test {
- use std::path::PathBuf;
+// #[cfg(test)]
+// mod test {
+// use std::path::PathBuf;
- use fs::canonicalize;
- use sqlx::Connection;
- use pretty_assertions::assert_eq;
- use tracing::debug;
- use super::*;
+// use super::*;
+// use fs::canonicalize;
+// use pretty_assertions::assert_eq;
+// use sqlx::Connection;
+// use tracing::debug;
- async fn get_db() -> SqliteConnection {
- let mut data = dirs::data_local_dir().unwrap();
- data.push("lumina");
- data.push("library-db.sqlite3");
- let mut db_url = String::from("sqlite://");
- db_url.push_str(data.to_str().unwrap());
- SqliteConnection::connect(&db_url)
- .await
- .expect("problems")
- }
+// async fn get_db() -> SqliteConnection {
+// let mut data = dirs::data_local_dir().unwrap();
+// data.push("lumina");
+// data.push("library-db.sqlite3");
+// let mut db_url = String::from("sqlite://");
+// db_url.push_str(data.to_str().unwrap());
+// SqliteConnection::connect(&db_url).await.expect("problems")
+// }
- #[tokio::test(flavor = "current_thread")]
- async fn test_process_song() {
- let mut db = get_db().await;
- let result = process_song(7, &mut db).await;
- let json_song_file = PathBuf::from("./test/test_song.json");
- if let Ok(path) = canonicalize(json_song_file) {
- debug!(file = ?&path);
- if let Ok(s) = fs::read_to_string(path) {
- debug!(s);
- match result {
- Ok(json) => assert_eq!(json.to_string(), s),
- Err(e) => panic!("There was an error in processing the song: {e}"),
- }
- } else {
- panic!("String wasn't read from file");
- }
- } else {
- panic!("Cannot find absolute path to test_song.json");
- }
- }
+// #[tokio::test(flavor = "current_thread")]
+// async fn test_process_song() {
+// let mut db = get_db().await;
+// let result = process_song(7, &mut db).await;
+// let json_song_file = PathBuf::from("./test/test_song.json");
+// if let Ok(path) = canonicalize(json_song_file) {
+// debug!(file = ?&path);
+// if let Ok(s) = fs::read_to_string(path) {
+// debug!(s);
+// match result {
+// Ok(json) => assert_eq!(json.to_string(), s),
+// Err(e) => panic!(
+// "There was an error in processing the song: {e}"
+// ),
+// }
+// } else {
+// panic!("String wasn't read from file");
+// }
+// } else {
+// panic!("Cannot find absolute path to test_song.json");
+// }
+// }
- #[tokio::test(flavor = "current_thread")]
- async fn test_process_image() {
- let mut db = get_db().await;
- let result = process_image(3, &mut db).await;
- let json_image_file = PathBuf::from("./test/test_image.json");
- if let Ok(path) = canonicalize(json_image_file) {
- debug!(file = ?&path);
- if let Ok(s) = fs::read_to_string(path) {
- debug!(s);
- match result {
- Ok(json) => assert_eq!(json.to_string(), s),
- Err(e) => panic!("There was an error in processing the image: {e}"),
- }
- } else {
- panic!("String wasn't read from file");
- }
- } else {
- panic!("Cannot find absolute path to test_image.json");
- }
- }
+// #[tokio::test(flavor = "current_thread")]
+// async fn test_process_image() {
+// let mut db = get_db().await;
+// let result = process_image(3, &mut db).await;
+// let json_image_file = PathBuf::from("./test/test_image.json");
+// if let Ok(path) = canonicalize(json_image_file) {
+// debug!(file = ?&path);
+// if let Ok(s) = fs::read_to_string(path) {
+// debug!(s);
+// match result {
+// Ok(json) => assert_eq!(json.to_string(), s),
+// Err(e) => panic!(
+// "There was an error in processing the image: {e}"
+// ),
+// }
+// } else {
+// panic!("String wasn't read from file");
+// }
+// } else {
+// panic!("Cannot find absolute path to test_image.json");
+// }
+// }
- #[tokio::test(flavor = "current_thread")]
- async fn test_process_video() {
- let mut db = get_db().await;
- let result = process_video(73, &mut db).await;
- let json_video_file = PathBuf::from("./test/test_video.json");
- if let Ok(path) = canonicalize(json_video_file) {
- debug!(file = ?&path);
- if let Ok(s) = fs::read_to_string(path) {
- debug!(s);
- match result {
- Ok(json) => assert_eq!(json.to_string(), s),
- Err(e) => panic!("There was an error in processing the video: {e}"),
- }
- } else {
- panic!("String wasn't read from file");
- }
- } else {
- panic!("Cannot find absolute path to test_video.json");
- }
- }
+// #[tokio::test(flavor = "current_thread")]
+// async fn test_process_video() {
+// let mut db = get_db().await;
+// let result = process_video(73, &mut db).await;
+// let json_video_file = PathBuf::from("./test/test_video.json");
+// if let Ok(path) = canonicalize(json_video_file) {
+// debug!(file = ?&path);
+// if let Ok(s) = fs::read_to_string(path) {
+// debug!(s);
+// match result {
+// Ok(json) => assert_eq!(json.to_string(), s),
+// Err(e) => panic!(
+// "There was an error in processing the video: {e}"
+// ),
+// }
+// } else {
+// panic!("String wasn't read from file");
+// }
+// } else {
+// panic!("Cannot find absolute path to test_video.json");
+// }
+// }
- #[tokio::test(flavor = "current_thread")]
- async fn test_process_presentation() {
- let mut db = get_db().await;
- let result = process_presentation(54, &mut db).await;
- let json_presentation_file = PathBuf::from("./test/test_presentation.json");
- if let Ok(path) = canonicalize(json_presentation_file) {
- debug!(file = ?&path);
- if let Ok(s) = fs::read_to_string(path) {
- debug!(s);
- match result {
- Ok(json) => assert_eq!(json.to_string(), s),
- Err(e) => panic!("There was an error in processing the presentation: {e}"),
- }
- } else {
- panic!("String wasn't read from file");
- }
- } else {
- panic!("Cannot find absolute path to test_presentation.json");
- }
- }
+// #[tokio::test(flavor = "current_thread")]
+// async fn test_process_presentation() {
+// let mut db = get_db().await;
+// let result = process_presentation(54, &mut db).await;
+// let json_presentation_file =
+// PathBuf::from("./test/test_presentation.json");
+// if let Ok(path) = canonicalize(json_presentation_file) {
+// debug!(file = ?&path);
+// if let Ok(s) = fs::read_to_string(path) {
+// debug!(s);
+// match result {
+// Ok(json) => assert_eq!(json.to_string(), s),
+// Err(e) => panic!(
+// "There was an error in processing the presentation: {e}"
+// ),
+// }
+// } else {
+// panic!("String wasn't read from file");
+// }
+// } else {
+// panic!(
+// "Cannot find absolute path to test_presentation.json"
+// );
+// }
+// }
- fn get_items() -> Vec {
- let items = vec![
- ServiceItem {
- database_id: 7,
- kind: ServiceItemKind::Song,
- id: 0,
- },
- ServiceItem {
- database_id: 54,
- kind: ServiceItemKind::Presentation(PresKind::Html),
- id: 0,
- },
- ServiceItem {
- database_id: 73,
- kind: ServiceItemKind::Video,
- id: 0,
- },
- ];
- items
- }
+// fn get_items() -> Vec {
+// let items = vec![
+// ServiceItem {
+// database_id: 7,
+// kind: ServiceItemKind::Song,
+// id: 0,
+// },
+// ServiceItem {
+// database_id: 54,
+// kind: ServiceItemKind::Presentation(PresKind::Html),
+// id: 0,
+// },
+// ServiceItem {
+// database_id: 73,
+// kind: ServiceItemKind::Video,
+// id: 0,
+// },
+// ];
+// items
+// }
- #[tokio::test]
- async fn test_service_items() {
- let mut db = get_db().await;
- let items = get_items();
- let json_item_file = PathBuf::from("./test/test_service_items.json");
- let result = process_service_items(&items, &mut db).await;
- if let Ok(path) = canonicalize(json_item_file) {
- if let Ok(s) = fs::read_to_string(path) {
- match result {
- Ok(strings) => assert_eq!(strings.to_string(), s),
- Err(e) => panic!("There was an error: {e}"),
- }
- }
- }
- }
+// #[tokio::test]
+// async fn test_service_items() {
+// let mut db = get_db().await;
+// let items = get_items();
+// let json_item_file =
+// PathBuf::from("./test/test_service_items.json");
+// let result = process_service_items(&items, &mut db).await;
+// if let Ok(path) = canonicalize(json_item_file) {
+// if let Ok(s) = fs::read_to_string(path) {
+// match result {
+// Ok(strings) => assert_eq!(strings.to_string(), s),
+// Err(e) => panic!("There was an error: {e}"),
+// }
+// }
+// }
+// }
- // #[tokio::test]
- // async fn test_save() {
- // let path = PathBuf::from("~/dev/lumina/src/rust/core/test.pres");
- // let list = get_items();
- // match save(list, path).await {
- // Ok(_) => assert!(true),
- // Err(e) => panic!("There was an error: {e}"),
- // }
- // }
+// // #[tokio::test]
+// // async fn test_save() {
+// // let path = PathBuf::from("~/dev/lumina/src/rust/core/test.pres");
+// // let list = get_items();
+// // match save(list, path).await {
+// // Ok(_) => assert!(true),
+// // Err(e) => panic!("There was an error: {e}"),
+// // }
+// // }
- #[tokio::test]
- async fn test_store() {
- let path = PathBuf::from("/home/chris/dev/lumina/src/rust/core/test.pres");
- let save_file = match File::create(path) {
- Ok(f) => f,
- Err(e) => panic!("Couldn't create save_file: {e}"),
- };
- let mut db = get_db().await;
- let list = get_items();
- if let Ok(json) = process_service_items(&list, &mut db).await {
- println!("{:?}", json);
- match store_service_items(&list, &mut db, &save_file, &json).await {
- Ok(_) => assert!(true),
- Err(e) => panic!("There was an error: {e}"),
- }
- } else {
- panic!("There was an error getting the json value");
- }
- }
+// #[tokio::test]
+// async fn test_store() {
+// let path = PathBuf::from(
+// "/home/chris/dev/lumina/src/rust/core/test.pres",
+// );
+// let save_file = match File::create(path) {
+// Ok(f) => f,
+// Err(e) => panic!("Couldn't create save_file: {e}"),
+// };
+// let mut db = get_db().await;
+// let list = get_items();
+// if let Ok(json) = process_service_items(&list, &mut db).await
+// {
+// println!("{:?}", json);
+// match store_service_items(
+// &list, &mut db, &save_file, &json,
+// )
+// .await
+// {
+// Ok(_) => assert!(true),
+// Err(e) => panic!("There was an error: {e}"),
+// }
+// } else {
+// panic!("There was an error getting the json value");
+// }
+// }
- // #[tokio::test]
- // async fn test_things() {
- // let mut temp_dir = dirs::data_dir().unwrap();
- // temp_dir.push("lumina");
- // let mut s: String =
- // iter::repeat_with(fastrand::alphanumeric)
- // .take(5)
- // .collect();
- // s.insert_str(0, "temp_");
- // temp_dir.push(s);
- // let _ = fs::create_dir_all(&temp_dir);
- // let mut db = get_db().await;
- // let service_file = temp_dir.join("serviceitems.json");
- // let list = get_items();
- // if let Ok(json) = process_service_items(&list, &mut db).await {
- // let _ = fs::File::create(&service_file);
- // match fs::write(service_file, json.to_string()) {
- // Ok(_) => assert!(true),
- // Err(e) => panic!("There was an error: {e}"),
- // }
- // } else {
- // panic!("There was an error getting the json value");
- // }
- // }
-}
+// // #[tokio::test]
+// // async fn test_things() {
+// // let mut temp_dir = dirs::data_dir().unwrap();
+// // temp_dir.push("lumina");
+// // let mut s: String =
+// // iter::repeat_with(fastrand::alphanumeric)
+// // .take(5)
+// // .collect();
+// // s.insert_str(0, "temp_");
+// // temp_dir.push(s);
+// // let _ = fs::create_dir_all(&temp_dir);
+// // let mut db = get_db().await;
+// // let service_file = temp_dir.join("serviceitems.json");
+// // let list = get_items();
+// // if let Ok(json) = process_service_items(&list, &mut db).await {
+// // let _ = fs::File::create(&service_file);
+// // match fs::write(service_file, json.to_string()) {
+// // Ok(_) => assert!(true),
+// // Err(e) => panic!("There was an error: {e}"),
+// // }
+// // } else {
+// // panic!("There was an error getting the json value");
+// // }
+// // }
+// }
diff --git a/src/core/images.rs b/src/core/images.rs
index beba760..7e37607 100644
--- a/src/core/images.rs
+++ b/src/core/images.rs
@@ -10,14 +10,14 @@ use crisp::types::{Keyword, Symbol, Value};
use miette::{IntoDiagnostic, Result};
use serde::{Deserialize, Serialize};
use sqlx::{
- pool::PoolConnection, query, query_as, Sqlite, SqliteConnection,
- SqlitePool,
+ Sqlite, SqliteConnection, SqlitePool, pool::PoolConnection,
+ query, query_as,
};
-use std::path::PathBuf;
-use tracing::error;
+use std::path::{Path, PathBuf};
+use tracing::{debug, error};
#[derive(
- Clone, Debug, Default, PartialEq, Serialize, Deserialize,
+ Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize,
)]
pub struct Image {
pub id: i32,
@@ -25,6 +25,28 @@ pub struct Image {
pub path: PathBuf,
}
+impl From for Image {
+ fn from(value: PathBuf) -> Self {
+ let title = value
+ .file_name()
+ .unwrap_or_default()
+ .to_str()
+ .unwrap_or_default()
+ .to_string();
+ Self {
+ id: 0,
+ title,
+ path: value.canonicalize().unwrap_or(value),
+ }
+ }
+}
+
+impl From<&Path> for Image {
+ fn from(value: &Path) -> Self {
+ Self::from(value.to_owned())
+ }
+}
+
impl From<&Image> for Value {
fn from(value: &Image) -> Self {
Self::List(vec![Self::Symbol(Symbol("image".into()))])
@@ -52,8 +74,9 @@ impl Content for Image {
if self.path.exists() {
self.path
.file_name()
- .map(|f| f.to_string_lossy().to_string())
- .unwrap_or("Missing image".into())
+ .map_or("Missing image".into(), |f| {
+ f.to_string_lossy().to_string()
+ })
} else {
"Missing image".into()
}
@@ -85,7 +108,7 @@ impl From<&Value> for Image {
let path =
p.to_str().unwrap_or_default().to_string();
let title =
- path.rsplit_once("/").unwrap_or_default().1;
+ path.rsplit_once('/').unwrap_or_default().1;
title.to_string()
});
Self {
@@ -154,17 +177,51 @@ impl Model {
.await;
match result {
Ok(v) => {
- for image in v.into_iter() {
+ for image in v {
let _ = self.add_item(image);
}
}
Err(e) => {
- error!("There was an error in converting images: {e}")
+ error!(
+ "There was an error in converting images: {e}"
+ );
}
- };
+ }
}
}
+pub async fn remove_from_db(
+ db: PoolConnection,
+ id: i32,
+) -> Result<()> {
+ query!("DELETE FROM images WHERE id = $1", id)
+ .execute(&mut db.detach())
+ .await
+ .into_diagnostic()
+ .map(|_| ())
+}
+
+pub async fn add_image_to_db(
+ image: Image,
+ db: PoolConnection,
+) -> Result<()> {
+ let path = image
+ .path
+ .to_str()
+ .map(std::string::ToString::to_string)
+ .unwrap_or_default();
+ let mut db = db.detach();
+ query!(
+ r#"INSERT INTO images (title, file_path) VALUES ($1, $2)"#,
+ image.title,
+ path,
+ )
+ .execute(&mut db)
+ .await
+ .into_diagnostic()?;
+ Ok(())
+}
+
pub async fn update_image_in_db(
image: Image,
db: PoolConnection,
@@ -172,19 +229,29 @@ pub async fn update_image_in_db(
let path = image
.path
.to_str()
- .map(|s| s.to_string())
+ .map(std::string::ToString::to_string)
.unwrap_or_default();
- query!(
+ let mut db = db.detach();
+ debug!(?image, "should be been updated");
+ let result = query!(
r#"UPDATE images SET title = $2, file_path = $3 WHERE id = $1"#,
image.id,
image.title,
path,
)
- .execute(&mut db.detach())
- .await
- .into_diagnostic()?;
+ .execute(&mut db)
+ .await.into_diagnostic();
- Ok(())
+ match result {
+ Ok(_) => {
+ debug!("should have been updated");
+ Ok(())
+ }
+ Err(e) => {
+ error! {?e};
+ Err(e)
+ }
+ }
}
pub async fn get_image_from_db(
diff --git a/src/core/kinds.rs b/src/core/kinds.rs
index b366997..9aa3768 100644
--- a/src/core/kinds.rs
+++ b/src/core/kinds.rs
@@ -1,8 +1,11 @@
-use std::{error::Error, fmt::Display};
+use std::{error::Error, fmt::Display, path::PathBuf};
use serde::{Deserialize, Serialize};
-use crate::Slide;
+use crate::{
+ Slide,
+ core::{content::Content, service_items::ServiceItem},
+};
use super::{
images::Image, presentations::Presentation, songs::Song,
@@ -18,14 +21,65 @@ pub enum ServiceItemKind {
Content(Slide),
}
+impl TryFrom for ServiceItemKind {
+ type Error = miette::Error;
+
+ fn try_from(path: PathBuf) -> Result {
+ let ext = path
+ .extension()
+ .map(|ext| ext.to_str())
+ .flatten()
+ .ok_or(miette::miette!(
+ "There isn't an extension on this file"
+ ))?;
+ match ext {
+ "png" | "jpg" | "jpeg" => {
+ Ok(Self::Image(Image::from(path)))
+ }
+ "mp4" | "mkv" | "webm" => {
+ Ok(Self::Video(Video::from(path)))
+ }
+ _ => Err(miette::miette!("Unknown item")),
+ }
+ }
+}
+
+impl ServiceItemKind {
+ pub fn title(&self) -> String {
+ match self {
+ ServiceItemKind::Song(song) => song.title.to_string(),
+ ServiceItemKind::Video(video) => video.title.to_string(),
+ ServiceItemKind::Image(image) => image.title.to_string(),
+ ServiceItemKind::Presentation(presentation) => {
+ presentation.title.to_string()
+ }
+ ServiceItemKind::Content(slide) => todo!(),
+ }
+ }
+
+ pub fn to_service_item(&self) -> ServiceItem {
+ match self {
+ ServiceItemKind::Song(song) => song.to_service_item(),
+ ServiceItemKind::Video(video) => video.to_service_item(),
+ ServiceItemKind::Image(image) => image.to_service_item(),
+ ServiceItemKind::Presentation(presentation) => {
+ presentation.to_service_item()
+ }
+ ServiceItemKind::Content(slide) => {
+ todo!()
+ }
+ }
+ }
+}
+
impl std::fmt::Display for ServiceItemKind {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
let s = match self {
- Self::Song(s) => "song".to_owned(),
- Self::Image(i) => "image".to_owned(),
- Self::Video(v) => "video".to_owned(),
- Self::Presentation(p) => "html".to_owned(),
- Self::Content(s) => "content".to_owned(),
+ Self::Song(_) => "song".to_owned(),
+ Self::Image(_) => "image".to_owned(),
+ Self::Video(_) => "video".to_owned(),
+ Self::Presentation(_) => "html".to_owned(),
+ Self::Content(_) => "content".to_owned(),
};
write!(f, "{s}")
}
@@ -50,7 +104,7 @@ impl std::fmt::Display for ServiceItemKind {
// }
impl From for String {
- fn from(val: ServiceItemKind) -> String {
+ fn from(val: ServiceItemKind) -> Self {
match val {
ServiceItemKind::Song(_) => "song".to_owned(),
ServiceItemKind::Video(_) => "video".to_owned(),
@@ -76,7 +130,9 @@ impl Display for ParseError {
f: &mut std::fmt::Formatter<'_>,
) -> std::fmt::Result {
let message = match self {
- Self::UnknownType => "The type does not exist. It needs to be one of 'song', 'video', 'image', 'presentation', or 'content'",
+ Self::UnknownType => {
+ "The type does not exist. It needs to be one of 'song', 'video', 'image', 'presentation', or 'content'"
+ }
};
write!(f, "Error: {message}")
}
diff --git a/src/core/lisp.rs b/src/core/lisp.rs
deleted file mode 100644
index 2c1a666..0000000
--- a/src/core/lisp.rs
+++ /dev/null
@@ -1,157 +0,0 @@
-use lexpr::Value;
-use strum_macros::EnumString;
-
-#[derive(Debug, Clone, Default, PartialEq, Eq, EnumString)]
-pub(crate) enum Symbol {
- #[strum(ascii_case_insensitive)]
- Slide,
- #[strum(ascii_case_insensitive)]
- Image,
- #[strum(ascii_case_insensitive)]
- Text,
- #[strum(ascii_case_insensitive)]
- Video,
- #[strum(ascii_case_insensitive)]
- Song,
- #[strum(disabled)]
- ImageFit(ImageFit),
- #[strum(disabled)]
- VerseOrder(VerseOrder),
- #[strum(disabled)]
- #[default]
- None,
-}
-
-#[derive(Debug, Clone, PartialEq, Eq, EnumString)]
-pub(crate) enum Keyword {
- ImageFit(ImageFit),
-}
-
-#[derive(Debug, Default, Clone, PartialEq, Eq, EnumString)]
-pub(crate) enum ImageFit {
- #[strum(ascii_case_insensitive)]
- #[default]
- Cover,
- #[strum(ascii_case_insensitive)]
- Fill,
- #[strum(ascii_case_insensitive)]
- Crop,
-}
-
-#[derive(Clone, Debug, Default, PartialEq, Eq, EnumString)]
-pub(crate) enum VerseOrder {
- #[strum(ascii_case_insensitive)]
- #[default]
- V1,
- #[strum(ascii_case_insensitive)]
- V2,
- #[strum(ascii_case_insensitive)]
- V3,
- #[strum(ascii_case_insensitive)]
- V4,
- #[strum(ascii_case_insensitive)]
- V5,
- #[strum(ascii_case_insensitive)]
- V6,
- #[strum(ascii_case_insensitive)]
- C1,
- #[strum(ascii_case_insensitive)]
- C2,
- #[strum(ascii_case_insensitive)]
- C3,
- #[strum(ascii_case_insensitive)]
- C4,
- #[strum(ascii_case_insensitive)]
- B1,
- #[strum(ascii_case_insensitive)]
- B2,
- #[strum(ascii_case_insensitive)]
- B3,
- #[strum(ascii_case_insensitive)]
- B4,
- #[strum(ascii_case_insensitive)]
- O1,
- #[strum(ascii_case_insensitive)]
- O2,
- #[strum(ascii_case_insensitive)]
- O3,
- #[strum(ascii_case_insensitive)]
- O4,
- #[strum(ascii_case_insensitive)]
- E1,
- #[strum(ascii_case_insensitive)]
- E2,
- #[strum(ascii_case_insensitive)]
- I1,
- #[strum(ascii_case_insensitive)]
- I2,
-}
-
-#[derive(Clone, Debug, PartialEq, Eq, EnumString)]
-pub(crate) enum SongKeyword {
- #[strum(ascii_case_insensitive)]
- Title,
- #[strum(ascii_case_insensitive)]
- Author,
- #[strum(ascii_case_insensitive)]
- Ccli,
- #[strum(ascii_case_insensitive)]
- Audio,
- #[strum(ascii_case_insensitive)]
- Font,
- #[strum(ascii_case_insensitive)]
- FontSize,
- #[strum(ascii_case_insensitive)]
- Background,
- #[strum(ascii_case_insensitive)]
- VerseOrder(VerseOrder),
-}
-
-#[derive(Clone, Debug, PartialEq, Eq, EnumString)]
-pub(crate) enum ImageKeyword {
- #[strum(ascii_case_insensitive)]
- Source,
- #[strum(ascii_case_insensitive)]
- Fit,
-}
-
-#[derive(Clone, Debug, Eq, PartialEq, EnumString)]
-pub(crate) enum VideoKeyword {
- #[strum(ascii_case_insensitive)]
- Source,
- #[strum(ascii_case_insensitive)]
- Fit,
-}
-
-pub(crate) fn get_lists(exp: &Value) -> Vec {
- if exp.is_cons() {
- exp.as_cons().unwrap().to_vec().0
- } else {
- vec![]
- }
-}
-
-#[cfg(test)]
-mod test {
-
- // #[test]
- // fn test_list() {
- // let lisp =
- // read_to_string("./test_presentation.lisp").expect("oops");
- // // println!("{lisp}");
- // let mut parser =
- // Parser::from_str_custom(&lisp, Options::elisp());
- // for atom in parser.value_iter() {
- // match atom {
- // Ok(atom) => {
- // // println!("{atom}");
- // let lists = get_lists(&atom);
- // assert_eq!(lists, vec![Value::Null])
- // }
- // Err(e) => {
- // panic!("{e}");
- // }
- // }
- // }
- // }
-}
diff --git a/src/core/mod.rs b/src/core/mod.rs
index e23192e..39c1f0b 100644
--- a/src/core/mod.rs
+++ b/src/core/mod.rs
@@ -1,10 +1,11 @@
pub mod content;
+pub mod file;
pub mod images;
pub mod kinds;
-pub mod lisp;
pub mod model;
pub mod presentations;
pub mod service_items;
+pub mod settings;
pub mod slide;
pub mod songs;
pub mod thumbnail;
diff --git a/src/core/model.rs b/src/core/model.rs
index a0afcd0..2b0bd7c 100644
--- a/src/core/model.rs
+++ b/src/core/model.rs
@@ -1,8 +1,14 @@
-use std::mem::replace;
+use std::{
+ borrow::Cow,
+ mem::replace,
+ path::{Path, PathBuf},
+};
-use cosmic::iced::Executor;
-use miette::{miette, Result};
+use cosmic::iced::clipboard::mime::{AllowedMimeTypes, AsMimeTypes};
+use miette::{IntoDiagnostic, Result, miette};
+use serde::{Deserialize, Serialize};
use sqlx::{Connection, SqliteConnection};
+use tracing::debug;
#[derive(Debug, Clone)]
pub struct Model {
@@ -10,7 +16,9 @@ pub struct Model {
pub kind: LibraryKind,
}
-#[derive(Debug, Clone, PartialEq, Copy)]
+#[derive(
+ Debug, Clone, PartialEq, Eq, Copy, Hash, Serialize, Deserialize,
+)]
pub enum LibraryKind {
Song,
Video,
@@ -18,6 +26,57 @@ pub enum LibraryKind {
Presentation,
}
+#[derive(
+ Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize,
+)]
+pub struct KindWrapper(pub (LibraryKind, i32));
+
+impl From for LibraryKind {
+ fn from(value: PathBuf) -> Self {
+ todo!()
+ }
+}
+
+impl TryFrom<(Vec, String)> for KindWrapper {
+ type Error = miette::Error;
+
+ fn try_from(
+ value: (Vec, String),
+ ) -> std::result::Result {
+ let (data, mime) = value;
+ match mime.as_str() {
+ "application/service-item" => {
+ ron::de::from_bytes(&data).into_diagnostic()
+ }
+ _ => Err(miette!("Wrong mime type: {mime}")),
+ }
+ }
+}
+
+impl AllowedMimeTypes for KindWrapper {
+ fn allowed() -> Cow<'static, [String]> {
+ Cow::from(vec!["application/service-item".to_string()])
+ }
+}
+
+impl AsMimeTypes for KindWrapper {
+ fn available(&self) -> Cow<'static, [String]> {
+ debug!(?self);
+ Cow::from(vec!["application/service-item".to_string()])
+ }
+
+ fn as_bytes(
+ &self,
+ mime_type: &str,
+ ) -> Option> {
+ debug!(?self);
+ debug!(mime_type);
+ let ron = ron::ser::to_string(self).ok()?;
+ debug!(ron);
+ Some(Cow::from(ron.into_bytes()))
+ }
+}
+
impl Model {
pub fn add_item(&mut self, item: T) -> Result<()> {
self.items.push(item);
@@ -46,6 +105,7 @@ impl Model {
Ok(())
}
+ #[must_use]
pub fn get_item(&self, index: i32) -> Option<&T> {
self.items.get(index as usize)
}
diff --git a/src/core/presentations.rs b/src/core/presentations.rs
index 106f8c4..1c6b4d2 100644
--- a/src/core/presentations.rs
+++ b/src/core/presentations.rs
@@ -1,12 +1,14 @@
+use cosmic::widget::image::Handle;
use crisp::types::{Keyword, Symbol, Value};
use miette::{IntoDiagnostic, Result};
+use mupdf::{Colorspace, Document, Matrix};
use serde::{Deserialize, Serialize};
use sqlx::{
- pool::PoolConnection, prelude::FromRow, query, sqlite::SqliteRow,
- Row, Sqlite, SqliteConnection, SqlitePool,
+ Row, Sqlite, SqliteConnection, SqlitePool, pool::PoolConnection,
+ prelude::FromRow, query, sqlite::SqliteRow,
};
-use std::path::PathBuf;
-use tracing::error;
+use std::path::{Path, PathBuf};
+use tracing::{debug, error};
use crate::{Background, Slide, SlideBuilder, TextAlignment};
@@ -22,14 +24,15 @@ use super::{
)]
pub enum PresKind {
Html,
+ Pdf {
+ starting_index: i32,
+ ending_index: i32,
+ },
#[default]
- Pdf,
Generic,
}
-#[derive(
- Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize,
-)]
+#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct Presentation {
pub id: i32,
pub title: String,
@@ -37,8 +40,72 @@ pub struct Presentation {
pub kind: PresKind,
}
+impl Eq for Presentation {}
+
+impl PartialEq for Presentation {
+ fn eq(&self, other: &Self) -> bool {
+ self.id == other.id
+ && self.title == other.title
+ && self.path == other.path
+ && self.kind == other.kind
+ }
+}
+
+impl From for Presentation {
+ fn from(value: PathBuf) -> Self {
+ let title = value
+ .file_name()
+ .unwrap_or_default()
+ .to_str()
+ .unwrap_or_default()
+ .to_string();
+ let kind = match value
+ .extension()
+ .unwrap_or_default()
+ .to_str()
+ .unwrap_or_default()
+ {
+ "pdf" => {
+ if let Ok(document) = Document::open(&value.as_path())
+ {
+ if let Ok(count) = document.page_count() {
+ PresKind::Pdf {
+ starting_index: 0,
+ ending_index: count - 1,
+ }
+ } else {
+ PresKind::Pdf {
+ starting_index: 0,
+ ending_index: 0,
+ }
+ }
+ } else {
+ PresKind::Pdf {
+ starting_index: 0,
+ ending_index: 0,
+ }
+ }
+ }
+ "html" => PresKind::Html,
+ _ => PresKind::Generic,
+ };
+ Self {
+ id: 0,
+ title,
+ path: value.canonicalize().unwrap_or(value),
+ kind,
+ }
+ }
+}
+
+impl From<&Path> for Presentation {
+ fn from(value: &Path) -> Self {
+ Self::from(value.to_owned())
+ }
+}
+
impl From<&Presentation> for Value {
- fn from(value: &Presentation) -> Self {
+ fn from(_value: &Presentation) -> Self {
Self::List(vec![Self::Symbol(Symbol("presentation".into()))])
}
}
@@ -64,8 +131,9 @@ impl Content for Presentation {
if self.path.exists() {
self.path
.file_name()
- .map(|f| f.to_string_lossy().to_string())
- .unwrap_or("Missing presentation".into())
+ .map_or("Missing presentation".into(), |f| {
+ f.to_string_lossy().to_string()
+ })
} else {
"Missing presentation".into()
}
@@ -117,22 +185,76 @@ impl ServiceTrait for Presentation {
}
fn to_slides(&self) -> Result> {
- let slide = SlideBuilder::new()
- .background(
- Background::try_from(self.path.clone())
- .into_diagnostic()?,
- )
- .text("")
- .audio("")
- .font("")
- .font_size(50)
- .text_alignment(TextAlignment::MiddleCenter)
- .video_loop(false)
- .video_start_time(0.0)
- .video_end_time(0.0)
- .build()?;
+ debug!(?self);
+ let PresKind::Pdf {
+ starting_index,
+ ending_index,
+ } = self.kind
+ else {
+ return Err(miette::miette!(
+ "This is not a pdf presentation"
+ ));
+ };
+ let background = Background::try_from(self.path.clone())
+ .into_diagnostic()?;
+ debug!(?background);
+ let document = Document::open(background.path.as_path())
+ .into_diagnostic()?;
+ debug!(?document);
+ let pages = document.pages().into_diagnostic()?;
+ debug!(?pages);
+ let pages: Vec = pages
+ .enumerate()
+ .filter_map(|(index, page)| {
+ if (index as i32) < starting_index {
+ return None;
+ } else if (index as i32) > ending_index {
+ return None;
+ };
- Ok(vec![slide])
+ let Some(page) = page.ok() else {
+ return None;
+ };
+ let matrix = Matrix::IDENTITY;
+ let colorspace = Colorspace::device_rgb();
+ let Ok(pixmap) = page
+ .to_pixmap(&matrix, &colorspace, true, true)
+ .into_diagnostic()
+ else {
+ error!("Can't turn this page into pixmap");
+ return None;
+ };
+ debug!(?pixmap);
+ Some(Handle::from_rgba(
+ pixmap.width(),
+ pixmap.height(),
+ pixmap.samples().to_vec(),
+ ))
+ })
+ .collect();
+
+ let mut slides: Vec = vec![];
+ for (index, page) in pages.into_iter().enumerate() {
+ let slide = SlideBuilder::new()
+ .background(
+ Background::try_from(self.path.clone())
+ .into_diagnostic()?,
+ )
+ .text("")
+ .audio("")
+ .font("")
+ .font_size(50)
+ .text_alignment(TextAlignment::MiddleCenter)
+ .video_loop(false)
+ .video_start_time(0.0)
+ .video_end_time(0.0)
+ .pdf_index(index as u32)
+ .pdf_page(page)
+ .build()?;
+ slides.push(slide);
+ }
+ debug!(?slides);
+ Ok(slides)
}
fn box_clone(&self) -> Box {
@@ -141,14 +263,16 @@ impl ServiceTrait for Presentation {
}
impl Presentation {
+ #[must_use]
pub fn new() -> Self {
Self {
- title: "".to_string(),
+ title: String::new(),
..Default::default()
}
}
- pub fn get_kind(&self) -> &PresKind {
+ #[must_use]
+ pub const fn get_kind(&self) -> &PresKind {
&self.kind
}
}
@@ -165,7 +289,10 @@ impl FromRow<'_, SqliteRow> for Presentation {
kind: if row.try_get(3)? {
PresKind::Html
} else {
- PresKind::Pdf
+ PresKind::Pdf {
+ starting_index: row.try_get(4)?,
+ ending_index: row.try_get(5)?,
+ }
},
})
}
@@ -185,21 +312,57 @@ impl Model {
pub async fn load_from_db(&mut self, db: &mut SqliteConnection) {
let result = query!(
- r#"SELECT id as "id: i32", title, file_path as "path", html from presentations"#
+ r#"SELECT id as "id: i32", title, file_path as "path", html, starting_index, ending_index from presentations"#
)
.fetch_all(db)
.await;
+
match result {
Ok(v) => {
- for presentation in v.into_iter() {
+ for presentation in v {
let _ = self.add_item(Presentation {
id: presentation.id,
title: presentation.title,
- path: presentation.path.into(),
+ path: presentation.path.clone().into(),
kind: if presentation.html {
PresKind::Html
} else {
- PresKind::Pdf
+ if let (
+ Some(starting_index),
+ Some(ending_index),
+ ) = (
+ presentation.starting_index,
+ presentation.ending_index,
+ ) {
+ PresKind::Pdf {
+ starting_index: starting_index
+ as i32,
+ ending_index: ending_index as i32,
+ }
+ } else {
+ let path =
+ PathBuf::from(presentation.path);
+ if let Ok(document) =
+ Document::open(path.as_path())
+ {
+ if let Ok(count) =
+ document.page_count()
+ {
+ let ending_index = count - 1;
+ PresKind::Pdf {
+ starting_index: 0,
+ ending_index,
+ }
+ } else {
+ PresKind::Pdf {
+ starting_index: 0,
+ ending_index: 0,
+ }
+ }
+ } else {
+ PresKind::Generic
+ }
+ }
},
});
}
@@ -211,6 +374,40 @@ impl Model {
}
}
+pub async fn remove_from_db(
+ db: PoolConnection,
+ id: i32,
+) -> Result<()> {
+ query!("DELETE FROM presentations WHERE id = $1", id)
+ .execute(&mut db.detach())
+ .await
+ .into_diagnostic()
+ .map(|_| ())
+}
+
+pub async fn add_presentation_to_db(
+ presentation: Presentation,
+ db: PoolConnection,
+) -> Result<()> {
+ let path = presentation
+ .path
+ .to_str()
+ .map(std::string::ToString::to_string)
+ .unwrap_or_default();
+ let html = presentation.kind == PresKind::Html;
+ let mut db = db.detach();
+ query!(
+ r#"INSERT INTO presentations (title, file_path, html) VALUES ($1, $2, $3)"#,
+ presentation.title,
+ path,
+ html,
+ )
+ .execute(&mut db)
+ .await
+ .into_diagnostic()?;
+ Ok(())
+}
+
pub async fn update_presentation_in_db(
presentation: Presentation,
db: PoolConnection,
@@ -218,21 +415,84 @@ pub async fn update_presentation_in_db(
let path = presentation
.path
.to_str()
- .map(|s| s.to_string())
+ .map(std::string::ToString::to_string)
.unwrap_or_default();
let html = presentation.kind == PresKind::Html;
- query!(
+ let mut db = db.detach();
+ let mut starting_index = 0;
+ let mut ending_index = 0;
+ if let PresKind::Pdf {
+ starting_index: s_index,
+ ending_index: e_index,
+ } = presentation.get_kind()
+ {
+ starting_index = *s_index;
+ ending_index = *e_index;
+ };
+ let id = presentation.id;
+ if let Err(e) =
+ query!("SELECT id FROM presentations where id = $1", id)
+ .fetch_one(&mut db)
+ .await
+ {
+ if let Ok(ids) = query!("SELECT id FROM presentations")
+ .fetch_all(&mut db)
+ .await
+ {
+ let Some(mut max) = ids.iter().map(|r| r.id).max() else {
+ return Err(miette::miette!("cannot find max id"));
+ };
+ debug!(?e, "Presentation not found");
+ max += 1;
+ let result = query!(
+ r#"INSERT into presentations VALUES($1, $2, $3, $4, $5, $6)"#,
+ max,
+ presentation.title,
+ path,
+ html,
+ starting_index,
+ ending_index,
+ )
+ .execute(&mut db)
+ .await
+ .into_diagnostic();
+
+ return match result {
+ Ok(_) => {
+ debug!("should have been updated");
+ Ok(())
+ }
+ Err(e) => {
+ error! {?e};
+ Err(e)
+ }
+ };
+ } else {
+ return Err(miette::miette!("cannot find ids"));
+ }
+ };
+
+ debug!(?presentation, "should be been updated");
+ let result = query!(
r#"UPDATE presentations SET title = $2, file_path = $3, html = $4 WHERE id = $1"#,
presentation.id,
presentation.title,
path,
html
)
- .execute(&mut db.detach())
- .await
- .into_diagnostic()?;
+ .execute(&mut db)
+ .await.into_diagnostic();
- Ok(())
+ match result {
+ Ok(_) => {
+ debug!("should have been updated");
+ Ok(())
+ }
+ Err(e) => {
+ error! {?e};
+ Err(e)
+ }
+ }
}
pub async fn get_presentation_from_db(
@@ -262,7 +522,13 @@ mod test {
#[test]
pub fn test_pres() {
let pres = Presentation::new();
- assert_eq!(pres.get_kind(), &PresKind::Pdf)
+ assert_eq!(
+ pres.get_kind(),
+ &PresKind::Pdf {
+ starting_index: 0,
+ ending_index: 0,
+ }
+ )
}
#[tokio::test]
diff --git a/src/core/service_items.rs b/src/core/service_items.rs
index 19c2301..250d16d 100644
--- a/src/core/service_items.rs
+++ b/src/core/service_items.rs
@@ -1,29 +1,30 @@
use std::borrow::Cow;
use std::cmp::Ordering;
use std::ops::Deref;
-use std::sync::Arc;
+use std::path::PathBuf;
use cosmic::iced::clipboard::mime::{AllowedMimeTypes, AsMimeTypes};
use crisp::types::{Keyword, Symbol, Value};
-use miette::Result;
+use miette::{IntoDiagnostic, Result, miette};
+use serde::{Deserialize, Serialize};
use tracing::{debug, error};
use crate::Slide;
use super::images::Image;
use super::presentations::Presentation;
-use super::songs::{lisp_to_song, Song};
+use super::songs::{Song, lisp_to_song};
use super::videos::Video;
use super::kinds::ServiceItemKind;
-#[derive(Debug, PartialEq, Clone)]
+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ServiceItem {
pub id: i32,
pub title: String,
pub database_id: i32,
pub kind: ServiceItemKind,
- pub slides: Arc<[Slide]>,
+ pub slides: Vec,
// pub item: Box,
}
@@ -47,18 +48,19 @@ impl TryFrom<(Vec, String)> for ServiceItem {
fn try_from(
value: (Vec, String),
) -> std::result::Result {
- debug!(?value);
- let val = Value::from(
- String::from_utf8(value.0)
- .expect("Value couldn't be made"),
- );
- Ok(Self::from(&val))
+ let (data, mime) = value;
+ debug!(?mime);
+ ron::de::from_bytes(&data).into_diagnostic()
}
}
impl AllowedMimeTypes for ServiceItem {
fn allowed() -> Cow<'static, [String]> {
- Cow::from(vec!["application/service-item".to_string()])
+ Cow::from(vec![
+ "application/service-item".to_string(),
+ "text/uri-list".to_string(),
+ "x-special/gnome-copied-files".to_string(),
+ ])
}
}
@@ -74,22 +76,45 @@ impl AsMimeTypes for ServiceItem {
) -> Option> {
debug!(?self);
debug!(mime_type);
- let val = Value::from(self);
- let val = String::from(val);
- Some(Cow::from(val.into_bytes()))
+ let ron = ron::ser::to_string(self).ok()?;
+ debug!(ron);
+ Some(Cow::from(ron.into_bytes()))
+ }
+}
+
+impl TryFrom for ServiceItem {
+ type Error = miette::Error;
+
+ fn try_from(path: PathBuf) -> Result {
+ let ext = path
+ .extension()
+ .map(|ext| ext.to_str())
+ .flatten()
+ .ok_or(miette::miette!(
+ "There isn't an extension on this file"
+ ))?;
+ match ext {
+ "png" | "jpg" | "jpeg" => {
+ Ok(Self::from(&Image::from(path)))
+ }
+ "mp4" | "mkv" | "webm" => {
+ Ok(Self::from(&Video::from(path)))
+ }
+ _ => Err(miette!("Unkown service item")),
+ }
}
}
impl From<&ServiceItem> for Value {
fn from(value: &ServiceItem) -> Self {
match &value.kind {
- ServiceItemKind::Song(song) => Value::from(song),
- ServiceItemKind::Video(video) => Value::from(video),
- ServiceItemKind::Image(image) => Value::from(image),
+ ServiceItemKind::Song(song) => Self::from(song),
+ ServiceItemKind::Video(video) => Self::from(video),
+ ServiceItemKind::Image(image) => Self::from(image),
ServiceItemKind::Presentation(presentation) => {
- Value::from(presentation)
+ Self::from(presentation)
}
- ServiceItemKind::Content(slide) => Value::from(slide),
+ ServiceItemKind::Content(slide) => Self::from(slide),
}
}
}
@@ -121,7 +146,7 @@ impl Default for ServiceItem {
title: String::default(),
database_id: 0,
kind: ServiceItemKind::Content(Slide::default()),
- slides: Arc::new([]),
+ slides: vec![],
// item: Box::new(Image::default()),
}
}
@@ -171,13 +196,13 @@ impl From<&Value> for ServiceItem {
kind: ServiceItemKind::Content(
slide.clone(),
),
- slides: Arc::new([slide]),
+ slides: vec![slide],
}
} else if let Some(background) =
list.get(background_pos)
{
- match background {
- Value::List(item) => match &item[0] {
+ if let Value::List(item) = background {
+ match &item[0] {
Value::Symbol(Symbol(s))
if s == "image" =>
{
@@ -200,30 +225,29 @@ impl From<&Value> for ServiceItem {
))
}
_ => todo!(),
- },
- _ => {
- error!(
- "There is no background here: {:?}",
- background
- );
- ServiceItem::default()
}
+ } else {
+ error!(
+ "There is no background here: {:?}",
+ background
+ );
+ Self::default()
}
} else {
error!(
"There is no background here: {:?}",
background_pos
);
- ServiceItem::default()
+ Self::default()
}
}
Value::Symbol(Symbol(s)) if s == "song" => {
let song = lisp_to_song(list.clone());
Self::from(&song)
}
- _ => ServiceItem::default(),
+ _ => Self::default(),
},
- _ => ServiceItem::default(),
+ _ => Self::default(),
}
}
}
@@ -262,7 +286,7 @@ impl From<&Song> for ServiceItem {
kind: ServiceItemKind::Song(song.clone()),
database_id: song.id,
title: song.title.clone(),
- slides: slides.into(),
+ slides,
..Default::default()
}
} else {
@@ -283,7 +307,7 @@ impl From<&Video> for ServiceItem {
kind: ServiceItemKind::Video(video.clone()),
database_id: video.id,
title: video.title.clone(),
- slides: slides.into(),
+ slides,
..Default::default()
}
} else {
@@ -304,7 +328,7 @@ impl From<&Image> for ServiceItem {
kind: ServiceItemKind::Image(image.clone()),
database_id: image.id,
title: image.title.clone(),
- slides: slides.into(),
+ slides,
..Default::default()
}
} else {
@@ -320,24 +344,26 @@ impl From<&Image> for ServiceItem {
impl From<&Presentation> for ServiceItem {
fn from(presentation: &Presentation) -> Self {
- if let Ok(slides) = presentation.to_slides() {
- Self {
- kind: ServiceItemKind::Presentation(
- presentation.clone(),
- ),
- database_id: presentation.id,
- title: presentation.title.clone(),
- slides: slides.into(),
- ..Default::default()
- }
- } else {
- Self {
+ match presentation.to_slides() {
+ Ok(slides) => Self {
kind: ServiceItemKind::Presentation(
presentation.clone(),
),
database_id: presentation.id,
title: presentation.title.clone(),
+ slides,
..Default::default()
+ },
+ Err(e) => {
+ error!(?e);
+ Self {
+ kind: ServiceItemKind::Presentation(
+ presentation.clone(),
+ ),
+ database_id: presentation.id,
+ title: presentation.title.clone(),
+ ..Default::default()
+ }
}
}
}
diff --git a/src/core/settings.rs b/src/core/settings.rs
new file mode 100644
index 0000000..0827946
--- /dev/null
+++ b/src/core/settings.rs
@@ -0,0 +1,77 @@
+// SPDX-License-Identifier: GPL-3.0-only
+
+use cosmic::{
+ cosmic_config::{
+ self, CosmicConfigEntry,
+ cosmic_config_derive::CosmicConfigEntry,
+ },
+ theme,
+};
+use serde::{Deserialize, Serialize};
+use std::{collections::VecDeque, path::PathBuf};
+
+pub const SETTINGS_VERSION: u64 = 1;
+
+#[derive(
+ Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize,
+)]
+pub enum AppTheme {
+ Dark,
+ Light,
+ System,
+}
+
+impl AppTheme {
+ pub fn theme(&self) -> theme::Theme {
+ match self {
+ Self::Dark => theme::Theme::dark(),
+ Self::Light => theme::Theme::light(),
+ Self::System => theme::system_preference(),
+ }
+ }
+}
+
+#[derive(
+ Clone,
+ CosmicConfigEntry,
+ Debug,
+ Deserialize,
+ Eq,
+ PartialEq,
+ Serialize,
+)]
+#[serde(default)]
+pub struct Settings {
+ pub app_theme: AppTheme,
+ pub obs_url: Option,
+}
+
+impl Default for Settings {
+ fn default() -> Self {
+ Self {
+ app_theme: AppTheme::System,
+ obs_url: None,
+ }
+ }
+}
+
+#[derive(
+ Clone,
+ CosmicConfigEntry,
+ Debug,
+ Deserialize,
+ Eq,
+ PartialEq,
+ Serialize,
+)]
+pub struct PersistentState {
+ pub recent_files: VecDeque,
+}
+
+impl Default for PersistentState {
+ fn default() -> Self {
+ Self {
+ recent_files: VecDeque::new(),
+ }
+ }
+}
diff --git a/src/core/slide.rs b/src/core/slide.rs
index a6cb45a..70e60c1 100644
--- a/src/core/slide.rs
+++ b/src/core/slide.rs
@@ -1,7 +1,8 @@
+use cosmic::widget::image::Handle;
// use cosmic::dialog::ashpd::url::Url;
use crisp::types::{Keyword, Symbol, Value};
use iced_video_player::Video;
-use miette::{miette, Result};
+use miette::{Result, miette};
use serde::{Deserialize, Serialize};
use std::{
fmt::Display,
@@ -9,10 +10,49 @@ use std::{
};
use tracing::error;
-use crate::ui::text_svg::{self, TextSvg};
+use crate::ui::text_svg::TextSvg;
use super::songs::Song;
+#[derive(
+ Clone, Debug, Default, PartialEq, Serialize, Deserialize,
+)]
+pub struct Slide {
+ id: i32,
+ background: Background,
+ text: String,
+ font: String,
+ font_size: i32,
+ text_alignment: TextAlignment,
+ audio: Option,
+ video_loop: bool,
+ video_start_time: f32,
+ video_end_time: f32,
+ pdf_index: u32,
+ #[serde(skip)]
+ pdf_page: Option,
+ #[serde(skip)]
+ pub text_svg: Option,
+}
+
+#[derive(
+ Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize,
+)]
+pub enum BackgroundKind {
+ #[default]
+ Image,
+ Video,
+ Pdf,
+ Html,
+}
+
+#[derive(Debug, Clone, Default)]
+struct Image {
+ pub source: String,
+ pub fit: String,
+ pub children: Vec,
+}
+
#[derive(
Clone,
Copy,
@@ -67,9 +107,9 @@ impl TryFrom<&Background> for Video {
fn try_from(
value: &Background,
) -> std::result::Result {
- Video::new(
+ Self::new(
&url::Url::from_file_path(value.path.clone())
- .map_err(|_| ParseError::BackgroundNotVideo)?,
+ .map_err(|()| ParseError::BackgroundNotVideo)?,
)
.map_err(|_| ParseError::BackgroundNotVideo)
}
@@ -81,9 +121,9 @@ impl TryFrom for Video {
fn try_from(
value: Background,
) -> std::result::Result {
- Video::new(
+ Self::new(
&url::Url::from_file_path(value.path)
- .map_err(|_| ParseError::BackgroundNotVideo)?,
+ .map_err(|()| ParseError::BackgroundNotVideo)?,
)
.map_err(|_| ParseError::BackgroundNotVideo)
}
@@ -92,7 +132,7 @@ impl TryFrom for Video {
impl TryFrom for Background {
type Error = ParseError;
fn try_from(value: String) -> Result {
- Background::try_from(value.as_str())
+ Self::try_from(value.as_str())
}
}
@@ -107,7 +147,7 @@ impl TryFrom for Background {
.to_str()
.unwrap()
.to_string();
- let path = path.replace("~", &home);
+ let path = path.replace('~', &home);
PathBuf::from(path)
} else {
path
@@ -121,21 +161,27 @@ impl TryFrom for Background {
.to_str()
.unwrap_or_default();
match extension {
- "jpeg" | "jpg" | "png" | "webp" | "html" => {
- Ok(Self {
- path: value,
- kind: BackgroundKind::Image,
- })
- }
+ "jpeg" | "jpg" | "png" | "webp" => Ok(Self {
+ path: value,
+ kind: BackgroundKind::Image,
+ }),
"mp4" | "mkv" | "webm" => Ok(Self {
path: value,
kind: BackgroundKind::Video,
}),
+ "pdf" => Ok(Self {
+ path: value,
+ kind: BackgroundKind::Pdf,
+ }),
+ "html" => Ok(Self {
+ path: value,
+ kind: BackgroundKind::Html,
+ }),
_ => Err(ParseError::NonBackgroundFile),
}
}
Err(e) => {
- error!("Couldn't canonicalize: {e} {:?}", path);
+ // error!("Couldn't canonicalize: {e} {:?}", path);
Err(ParseError::CannotCanonicalize)
}
}
@@ -146,10 +192,10 @@ impl TryFrom<&str> for Background {
type Error = ParseError;
fn try_from(value: &str) -> Result {
let value = value.trim_start_matches("file://");
- if value.starts_with("~") {
+ if value.starts_with('~') {
if let Some(home) = dirs::home_dir() {
if let Some(home) = home.to_str() {
- let value = value.replace("~", home);
+ let value = value.replace('~', home);
Self::try_from(PathBuf::from(value))
} else {
Self::try_from(PathBuf::from(value))
@@ -203,43 +249,16 @@ impl Display for ParseError {
}
}
-#[derive(
- Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize,
-)]
-pub enum BackgroundKind {
- #[default]
- Image,
- Video,
-}
-
impl From for BackgroundKind {
fn from(value: String) -> Self {
if value == "image" {
- BackgroundKind::Image
+ Self::Image
} else {
- BackgroundKind::Video
+ Self::Video
}
}
}
-#[derive(
- Clone, Debug, Default, PartialEq, Serialize, Deserialize,
-)]
-pub struct Slide {
- id: i32,
- background: Background,
- text: String,
- font: String,
- font_size: i32,
- text_alignment: TextAlignment,
- audio: Option,
- video_loop: bool,
- video_start_time: f32,
- video_end_time: f32,
- #[serde(skip)]
- pub text_svg: TextSvg,
-}
-
impl From<&Slide> for Value {
fn from(value: &Slide) -> Self {
Self::List(vec![Self::Symbol(Symbol("slide".into()))])
@@ -252,12 +271,17 @@ impl Slide {
self
}
+ pub fn with_text_svg(mut self, text_svg: TextSvg) -> Self {
+ self.text_svg = Some(text_svg);
+ self
+ }
+
pub fn set_font(mut self, font: impl AsRef) -> Self {
self.font = font.as_ref().into();
self
}
- pub fn set_font_size(mut self, font_size: i32) -> Self {
+ pub const fn set_font_size(mut self, font_size: i32) -> Self {
self.font_size = font_size;
self
}
@@ -267,7 +291,12 @@ impl Slide {
self
}
- pub fn background(&self) -> &Background {
+ pub const fn set_pdf_index(mut self, pdf_index: u32) -> Self {
+ self.pdf_index = pdf_index;
+ self
+ }
+
+ pub const fn background(&self) -> &Background {
&self.background
}
@@ -275,7 +304,11 @@ impl Slide {
self.text.clone()
}
- pub fn font_size(&self) -> i32 {
+ pub const fn text_alignment(&self) -> TextAlignment {
+ self.text_alignment
+ }
+
+ pub const fn font_size(&self) -> i32 {
self.font_size
}
@@ -283,7 +316,7 @@ impl Slide {
self.font.clone()
}
- pub fn video_loop(&self) -> bool {
+ pub const fn video_loop(&self) -> bool {
self.video_loop
}
@@ -291,9 +324,17 @@ impl Slide {
self.audio.clone()
}
+ pub fn pdf_page(&self) -> Option {
+ self.pdf_page.clone()
+ }
+
+ pub const fn pdf_index(&self) -> u32 {
+ self.pdf_index
+ }
+
pub fn song_slides(song: &Song) -> Result> {
let lyrics = song.get_lyrics()?;
- let slides: Vec = lyrics
+ let slides: Vec = lyrics
.iter()
.map(|l| {
let song = song.clone();
@@ -317,7 +358,7 @@ impl Slide {
Ok(slides)
}
- pub(crate) fn set_index(&mut self, index: i32) {
+ pub(crate) const fn set_index(&mut self, index: i32) {
self.id = index;
}
@@ -340,7 +381,7 @@ impl From<&Value> for Slide {
fn from(value: &Value) -> Self {
match value {
Value::List(list) => lisp_to_slide(list),
- _ => Slide::default(),
+ _ => Self::default(),
}
}
}
@@ -363,7 +404,7 @@ fn lisp_to_slide(lisp: &Vec) -> Slide {
slide = slide.background(lisp_to_background(background));
} else {
slide = slide.background(Background::default());
- };
+ }
let text_position = lisp.iter().position(|v| match v {
Value::List(vec) => {
@@ -506,6 +547,9 @@ pub struct SlideBuilder {
video_loop: Option,
video_start_time: Option,
video_end_time: Option,
+ pdf_index: Option,
+ #[serde(skip)]
+ pdf_page: Option,
#[serde(skip)]
text_svg: Option,
}
@@ -589,6 +633,19 @@ impl SlideBuilder {
self
}
+ pub(crate) fn pdf_page(mut self, pdf_page: Handle) -> Self {
+ let _ = self.pdf_page.insert(pdf_page);
+ self
+ }
+
+ pub(crate) fn pdf_index(
+ mut self,
+ pdf_index: impl Into,
+ ) -> Self {
+ let _ = self.pdf_index.insert(pdf_index.into());
+ self
+ }
+
pub(crate) fn build(self) -> Result {
let Some(background) = self.background else {
return Err(miette!("No background"));
@@ -614,60 +671,27 @@ impl SlideBuilder {
let Some(video_end_time) = self.video_end_time else {
return Err(miette!("No video_end_time"));
};
- if let Some(text_svg) = self.text_svg {
- Ok(Slide {
- background,
- text,
- font,
- font_size,
- text_alignment,
- audio: self.audio,
- video_loop,
- video_start_time,
- video_end_time,
- text_svg,
- ..Default::default()
- })
- } else {
- let text_svg = TextSvg::new(text.clone())
- .alignment(text_alignment)
- .fill("#fff")
- .shadow(text_svg::shadow(2, 2, 5, "#000000"))
- .stroke(text_svg::stroke(3, "#000"))
- .font(
- text_svg::Font::from(font.clone())
- .size(font_size.try_into().unwrap()),
- )
- .build();
- Ok(Slide {
- background,
- text,
- font,
- font_size,
- text_alignment,
- audio: self.audio,
- video_loop,
- video_start_time,
- video_end_time,
- text_svg,
- ..Default::default()
- })
- }
+ Ok(Slide {
+ background,
+ text,
+ font,
+ font_size,
+ text_alignment,
+ audio: self.audio,
+ video_loop,
+ video_start_time,
+ video_end_time,
+ text_svg: self.text_svg,
+ pdf_index: self.pdf_index.unwrap_or_default(),
+ pdf_page: self.pdf_page,
+ ..Default::default()
+ })
}
}
-#[derive(Debug, Clone, Default)]
-struct Image {
- pub source: String,
- pub fit: String,
- pub children: Vec,
-}
-
impl Image {
fn new() -> Self {
- Self {
- ..Default::default()
- }
+ Default::default()
}
}
diff --git a/src/core/songs.rs b/src/core/songs.rs
index 20dbebb..891a889 100644
--- a/src/core/songs.rs
+++ b/src/core/songs.rs
@@ -1,16 +1,15 @@
use std::{collections::HashMap, option::Option, path::PathBuf};
-use cosmic::iced::Executor;
use crisp::types::{Keyword, Symbol, Value};
-use miette::{miette, IntoDiagnostic, Result};
+use miette::{IntoDiagnostic, Result, miette};
use serde::{Deserialize, Serialize};
use sqlx::{
- pool::PoolConnection, query, sqlite::SqliteRow, FromRow, Row,
- Sqlite, SqliteConnection, SqlitePool,
+ Acquire, FromRow, Row, Sqlite, SqliteConnection, SqlitePool,
+ pool::PoolConnection, query, sqlite::SqliteRow,
};
use tracing::error;
-use crate::{core::slide, Slide, SlideBuilder};
+use crate::{Slide, SlideBuilder, core::slide};
use super::{
content::Content,
@@ -35,6 +34,7 @@ pub struct Song {
pub text_alignment: Option,
pub font: Option,
pub font_size: Option,
+ pub stroke_size: Option,
}
impl From<&Song> for Value {
@@ -128,7 +128,9 @@ impl FromRow<'_, SqliteRow> for Song {
})),
verse_order: Some({
let str: &str = row.try_get(0)?;
- str.split(' ').map(|s| s.to_string()).collect()
+ str.split(' ')
+ .map(std::string::ToString::to_string)
+ .collect()
}),
background: {
let string: String = row.try_get(7)?;
@@ -159,6 +161,7 @@ impl FromRow<'_, SqliteRow> for Song {
}),
font: row.try_get(6)?,
font_size: row.try_get(1)?,
+ stroke_size: None,
})
}
}
@@ -250,9 +253,7 @@ pub fn lisp_to_song(list: Vec) -> Song {
.position(|v| v == &Value::Keyword(Keyword::from("title")))
{
let pos = key_pos + 1;
- list.get(pos)
- .map(String::from)
- .unwrap_or(String::from("song"))
+ list.get(pos).map_or(String::from("song"), String::from)
} else {
String::from("song")
};
@@ -319,30 +320,30 @@ pub fn lisp_to_song(list: Vec) -> Song {
let lyric = String::from(&lyric[1]);
let verse_title = match lyric_verse.as_str() {
- "i1" => r#"\n\nIntro 1\n"#,
- "i2" => r#"\n\nIntro 1\n"#,
- "v1" => r#"\n\nVerse 1\n"#,
- "v2" => r#"\n\nVerse 2\n"#,
- "v3" => r#"\n\nVerse 3\n"#,
- "v4" => r#"\n\nVerse 4\n"#,
- "v5" => r#"\n\nVerse 5\n"#,
- "c1" => r#"\n\nChorus 1\n"#,
- "c2" => r#"\n\nChorus 2\n"#,
- "c3" => r#"\n\nChorus 3\n"#,
- "c4" => r#"\n\nChorus 4\n"#,
- "b1" => r#"\n\nBridge 1\n"#,
- "b2" => r#"\n\nBridge 2\n"#,
- "e1" => r#"\n\nEnding 1\n"#,
- "e2" => r#"\n\nEnding 2\n"#,
- "o1" => r#"\n\nOther 1\n"#,
- "o2" => r#"\n\nOther 2\n"#,
+ "i1" => r"\n\nIntro 1\n",
+ "i2" => r"\n\nIntro 1\n",
+ "v1" => r"\n\nVerse 1\n",
+ "v2" => r"\n\nVerse 2\n",
+ "v3" => r"\n\nVerse 3\n",
+ "v4" => r"\n\nVerse 4\n",
+ "v5" => r"\n\nVerse 5\n",
+ "c1" => r"\n\nChorus 1\n",
+ "c2" => r"\n\nChorus 2\n",
+ "c3" => r"\n\nChorus 3\n",
+ "c4" => r"\n\nChorus 4\n",
+ "b1" => r"\n\nBridge 1\n",
+ "b2" => r"\n\nBridge 2\n",
+ "e1" => r"\n\nEnding 1\n",
+ "e2" => r"\n\nEnding 2\n",
+ "o1" => r"\n\nOther 1\n",
+ "o2" => r"\n\nOther 2\n",
_ => "",
};
let lyric = format!("{verse_title}{lyric}");
let lyric = lyric.replace(
- "\\n", r#"
-"#,
+ "\\n", r"
+",
);
lyrics.push(lyric);
}
@@ -392,15 +393,15 @@ impl Model {
let result = query(r#"SELECT verse_order as "verse_order!", font_size as "font_size!: i32", background_type as "background_type!", horizontal_text_alignment as "horizontal_text_alignment!", vertical_text_alignment as "vertical_text_alignment!", title as "title!", font as "font!", background as "background!", lyrics as "lyrics!", ccli as "ccli!", author as "author!", audio as "audio!", id as "id: i32" from songs"#).fetch_all(db).await;
match result {
Ok(s) => {
- for song in s.into_iter() {
+ for song in s {
match Song::from_row(&song) {
Ok(song) => {
let _ = self.add_item(song);
}
Err(e) => {
- error!("Could not convert song: {e}")
+ error!("Could not convert song: {e}");
}
- };
+ }
}
}
Err(e) => {
@@ -410,6 +411,65 @@ impl Model {
}
}
+pub async fn remove_from_db(
+ db: PoolConnection,
+ id: i32,
+) -> Result<()> {
+ query!("DELETE FROM songs WHERE id = $1", id)
+ .execute(&mut db.detach())
+ .await
+ .into_diagnostic()
+ .map(|_| ())
+}
+
+pub async fn add_song_to_db(
+ db: PoolConnection,
+) -> Result {
+ let mut db = db.detach();
+ let mut song = Song::default();
+
+ let verse_order = {
+ if let Some(vo) = song.verse_order.clone() {
+ vo.into_iter()
+ .map(|mut s| {
+ s.push(' ');
+ s
+ })
+ .collect::()
+ } else {
+ String::new()
+ }
+ };
+
+ let audio = song
+ .audio
+ .clone()
+ .map(|a| a.to_str().unwrap_or_default().to_string());
+
+ let background = song
+ .background
+ .clone()
+ .map(|b| b.path.to_str().unwrap_or_default().to_string());
+
+ let res = query!(
+ r#"INSERT INTO songs (title, lyrics, author, ccli, verse_order, audio, font, font_size, background) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)"#,
+ song.title,
+ song.lyrics,
+ song.author,
+ song.ccli,
+ verse_order,
+ audio,
+ song.font,
+ song.font_size,
+ background
+ )
+ .execute(&mut db)
+ .await
+ .into_diagnostic()?;
+ song.id = res.last_insert_rowid() as i32;
+ Ok(song)
+}
+
pub async fn update_song_in_db(
item: Song,
db: PoolConnection,
@@ -425,7 +485,7 @@ pub async fn update_song_in_db(
})
.collect::()
} else {
- String::from("")
+ String::new()
}
};
@@ -488,13 +548,13 @@ impl Song {
let verse_order = self.verse_order.clone();
let mut lyric_map = HashMap::new();
- let mut verse_title = String::from("");
- let mut lyric = String::from("");
+ let mut verse_title = String::new();
+ let mut lyric = String::new();
for (i, line) in raw_lyrics.split('\n').enumerate() {
if VERSE_KEYWORDS.contains(&line) {
if i != 0 {
lyric_map.insert(verse_title, lyric);
- lyric = String::from("");
+ lyric = String::new();
verse_title = line.to_string();
} else {
verse_title = line.to_string();
@@ -535,7 +595,7 @@ impl Song {
lyric_list.push(lyric.to_string());
} else {
// error!("NOT WORKING!");
- };
+ }
}
// for lyric in lyric_list.iter() {
// debug!(lyric = ?lyric)
@@ -626,7 +686,27 @@ You saved my soul"
let lyrics = song.get_lyrics();
match lyrics {
Ok(lyrics) => {
- assert_eq!(vec!["From the Day\nI Am They", "When You found me,\nI was so blind\nMy sin was before me,\nI was swallowed by pride", "But out of the darkness,\nYou brought me to Your light\nYou showed me new mercy\nAnd opened up my eyes", "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home", "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul", "Where brilliant light\nIs all around\nAnd endless joy\nIs the only sound", "Oh, rest my heart\nForever now\nOh, in Your arms\nI'll always be found", "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home", "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul", "My love is Yours\nMy heart is Yours\nMy life is Yours\nForever", "My love is Yours\nMy heart is Yours\nMy life is Yours\nForever", "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home", "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul", "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home", "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul", "Oh Oh Oh\nFrom the day\nYou saved my soul\n"], lyrics);
+ assert_eq!(
+ vec![
+ "From the Day\nI Am They",
+ "When You found me,\nI was so blind\nMy sin was before me,\nI was swallowed by pride",
+ "But out of the darkness,\nYou brought me to Your light\nYou showed me new mercy\nAnd opened up my eyes",
+ "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home",
+ "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul",
+ "Where brilliant light\nIs all around\nAnd endless joy\nIs the only sound",
+ "Oh, rest my heart\nForever now\nOh, in Your arms\nI'll always be found",
+ "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home",
+ "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul",
+ "My love is Yours\nMy heart is Yours\nMy life is Yours\nForever",
+ "My love is Yours\nMy heart is Yours\nMy life is Yours\nForever",
+ "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home",
+ "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul",
+ "From the day\nYou saved my soul\n'Til the very moment\nWhen I come home",
+ "I'll sing, I'll dance,\nMy heart will overflow\nFrom the day\nYou saved my soul",
+ "Oh Oh Oh\nFrom the day\nYou saved my soul\n"
+ ],
+ lyrics
+ );
}
Err(e) => {
assert!(false, "{:?}", e)
@@ -712,7 +792,8 @@ You saved my soul"
background: Some(Background::try_from("file:///home/chris/nc/tfc/openlp/CMG - Bright Mountains 01.jpg").unwrap()),
text_alignment: Some(TextAlignment::MiddleCenter),
font: Some("Quicksand Bold".to_string()),
- font_size: Some(60)
+ font_size: Some(60),
+ stroke_size: None,
}
}
diff --git a/src/core/thumbnail.rs b/src/core/thumbnail.rs
index dc100c5..108ed52 100644
--- a/src/core/thumbnail.rs
+++ b/src/core/thumbnail.rs
@@ -11,7 +11,9 @@ pub fn bg_from_video(
video: &Path,
screenshot: &Path,
) -> Result<(), Box> {
- if !screenshot.exists() {
+ if screenshot.exists() {
+ debug!("Screenshot already exists");
+ } else {
let output_duration = Command::new("ffprobe")
.args(["-i", &video.to_string_lossy()])
.output()
@@ -26,9 +28,9 @@ pub fn bg_from_video(
let mut duration = log.split_off(duration_index + 10);
duration.truncate(11);
// debug!("rust-duration-is: {duration}");
- let mut hours = String::from("");
- let mut minutes = String::from("");
- let mut seconds = String::from("");
+ let mut hours = String::new();
+ let mut minutes = String::new();
+ let mut seconds = String::new();
for (i, c) in duration.chars().enumerate() {
if i <= 1 {
hours.push(c);
@@ -63,8 +65,6 @@ pub fn bg_from_video(
.expect("failed to execute ffmpeg");
// io::stdout().write_all(&output.stdout).unwrap();
// io::stderr().write_all(&output.stderr).unwrap();
- } else {
- debug!("Screenshot already exists");
}
Ok(())
}
@@ -95,7 +95,10 @@ mod test {
let screenshot = bg_path_from_video(video);
let screenshot_string =
screenshot.to_str().expect("Should be thing");
- assert_eq!(screenshot_string, "/home/chris/.local/share/lumina/thumbnails/moms-funeral.png");
+ assert_eq!(
+ screenshot_string,
+ "/home/chris/.local/share/lumina/thumbnails/moms-funeral.png"
+ );
// let runtime = tokio::runtime::Runtime::new().unwrap();
let result = bg_from_video(video, &screenshot);
@@ -118,6 +121,9 @@ mod test {
let screenshot = bg_path_from_video(video);
let screenshot_string =
screenshot.to_str().expect("Should be thing");
- assert_ne!(screenshot_string, "/home/chris/.local/share/lumina/thumbnails/All WebDev Sucks and you know it.webm");
+ assert_ne!(
+ screenshot_string,
+ "/home/chris/.local/share/lumina/thumbnails/All WebDev Sucks and you know it.webm"
+ );
}
}
diff --git a/src/core/videos.rs b/src/core/videos.rs
index c0c1dfb..e80f9b2 100644
--- a/src/core/videos.rs
+++ b/src/core/videos.rs
@@ -7,16 +7,15 @@ use super::{
service_items::ServiceTrait,
slide::Slide,
};
-use cosmic::iced::Executor;
use crisp::types::{Keyword, Symbol, Value};
use miette::{IntoDiagnostic, Result};
use serde::{Deserialize, Serialize};
use sqlx::{
- pool::PoolConnection, query, query_as, Sqlite, SqliteConnection,
- SqlitePool,
+ Sqlite, SqliteConnection, SqlitePool, pool::PoolConnection,
+ query, query_as,
};
-use std::path::PathBuf;
-use tracing::error;
+use std::path::{Path, PathBuf};
+use tracing::{debug, error};
#[derive(
Clone, Debug, Default, PartialEq, Serialize, Deserialize,
@@ -31,11 +30,31 @@ pub struct Video {
}
impl From<&Video> for Value {
- fn from(value: &Video) -> Self {
+ fn from(_value: &Video) -> Self {
Self::List(vec![Self::Symbol(Symbol("video".into()))])
}
}
+impl From for Video {
+ fn from(value: PathBuf) -> Self {
+ let title: String = value.file_name().map_or_else(
+ || "Video".into(),
+ |filename| filename.to_str().unwrap_or("Video").into(),
+ );
+ Self {
+ title,
+ path: value,
+ ..Default::default()
+ }
+ }
+}
+
+impl From<&Path> for Video {
+ fn from(value: &Path) -> Self {
+ Self::from(value.to_owned())
+ }
+}
+
impl Content for Video {
fn title(&self) -> String {
self.title.clone()
@@ -57,8 +76,9 @@ impl Content for Video {
if self.path.exists() {
self.path
.file_name()
- .map(|f| f.to_string_lossy().to_string())
- .unwrap_or("Missing video".into())
+ .map_or("Missing video".into(), |f| {
+ f.to_string_lossy().to_string()
+ })
} else {
"Missing video".into()
}
@@ -90,7 +110,7 @@ impl From<&Value> for Video {
let path =
p.to_str().unwrap_or_default().to_string();
let title =
- path.rsplit_once("/").unwrap_or_default().1;
+ path.rsplit_once('/').unwrap_or_default().1;
title.to_string()
});
@@ -124,8 +144,7 @@ impl From<&Value> for Video {
}) {
let pos = loop_pos + 1;
list.get(pos)
- .map(|l| String::from(l) == *"true")
- .unwrap_or_default()
+ .is_some_and(|l| String::from(l) == *"true")
} else {
false
};
@@ -193,17 +212,54 @@ impl Model