├── .gitattributes ├── .github └── workflows │ └── release.yml ├── .gitignore ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── Logo_big.xcf ├── README.md ├── build.rs ├── lightningview.ico ├── lightningview.png ├── lightningview.xcf ├── logo_256.png ├── src ├── main.rs ├── notwindows.rs └── windows.rs └── wix └── main.wxs /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | release: 3 | types: [released, workflow_dispatch] 4 | 5 | jobs: 6 | release-windows: 7 | name: release ${{ matrix.target }} 8 | runs-on: ubuntu-latest 9 | strategy: 10 | fail-fast: false 11 | matrix: 12 | include: 13 | - target: x86_64-pc-windows-gnu 14 | archive: zip 15 | steps: 16 | - uses: actions/checkout@v4.1.1 17 | - name: Checkout dnglab 18 | uses: actions/checkout@v4.1.1 19 | with: 20 | repository: dividebysandwich/dnglab 21 | path: dnglab 22 | - name: Checkout imagepipe 23 | uses: actions/checkout@v4.1.1 24 | with: 25 | repository: dividebysandwich/imagepipe 26 | path: imagepipe 27 | 28 | - name: Compile and release windows 29 | uses: rust-build/rust-build.action@v1.4.5 30 | env: 31 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 32 | with: 33 | RUSTTARGET: ${{ matrix.target }} 34 | ARCHIVE_TYPES: ${{ matrix.archive }} 35 | 36 | release-linux: 37 | name: release ${{ matrix.target }} 38 | runs-on: ubuntu-latest 39 | strategy: 40 | fail-fast: false 41 | matrix: 42 | include: 43 | - target: x86_64-unknown-linux-gnu 44 | archive: zip 45 | steps: 46 | - uses: actions/checkout@v4.1.1 47 | - name: Checkout dnglab 48 | uses: actions/checkout@v4.1.1 49 | with: 50 | repository: dividebysandwich/dnglab 51 | path: dnglab 52 | - name: Checkout imagepipe 53 | uses: actions/checkout@v4.1.1 54 | with: 55 | repository: dividebysandwich/imagepipe 56 | path: imagepipe 57 | - name: Update packages 58 | run: sudo apt-get update 59 | - name: Install libraries 60 | shell: bash 61 | run: sudo apt-get install --fix-missing libx11-dev libcairo-dev libxcursor-dev libxfixes-dev libxinerama-dev libxft-dev libpango1.0-dev libstdc++-11-dev 62 | - name: Compile linux 63 | uses: actions-rs/cargo@v1.0.1 64 | with: 65 | use-cross: false 66 | command: build 67 | args: --release --target ${{ matrix.target }} 68 | - name: Package 69 | shell: bash 70 | run: | 71 | cd target/${{ matrix.target }}/release 72 | tar czvf ../../../lightningview-${{ matrix.target }}.tar.gz lightningview 73 | cd - 74 | - name: Publish 75 | uses: softprops/action-gh-release@v1 76 | # TODO: if any of the build step fails, the release should be deleted. 77 | with: 78 | files: 'lightningview*' 79 | env: 80 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 81 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | debug/ 4 | target/ 5 | 6 | # These are backup files generated by rustfmt 7 | **/*.rs.bk 8 | 9 | # MSVC Windows builds of rustc generate these, which store debugging information 10 | *.pdb 11 | 12 | # Don't commit test images 13 | *.jpg 14 | *.bmp 15 | *.mrw 16 | *.arw 17 | *.srf 18 | *.sr2 19 | *.nef 20 | *.mef 21 | *.orf 22 | *.srw 23 | *.erf 24 | *.kdc 25 | *.dcs 26 | *.rw2 27 | *.raf 28 | *.dcr 29 | *.dng 30 | *.pef 31 | *.crw 32 | *.iiq 33 | *.3fr 34 | *.nrw 35 | *.mos 36 | *.cr2 37 | *.ari 38 | *.webp 39 | *.tif 40 | *.tga 41 | *.tar.gz 42 | *.zip 43 | *.gif 44 | *.fits 45 | *.fit 46 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "lldb", 9 | "request": "launch", 10 | "name": "Debug", 11 | "program": "~/.cargo/bin/cargo", 12 | "args": ["run", "result.fits"], 13 | "cwd": "${fileDirname}" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "rust-analyzer.linkedProjects": [ 3 | "Cargo.toml" 4 | ], 5 | "rust-analyzer.showUnlinkedFileNotification": false 6 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "options": { 4 | "env": { 5 | "RUST_BACKTRACE": "1" 6 | } 7 | }, 8 | "tasks": [ 9 | { 10 | "type": "cargo", 11 | "command": "run", 12 | "problemMatcher": [ 13 | "$rustc" 14 | ], 15 | "label": "rust: cargo run", 16 | "group": { 17 | "kind": "build", 18 | "isDefault": true 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 4 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.21.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler" 16 | version = "1.0.2" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 19 | 20 | [[package]] 21 | name = "adler32" 22 | version = "1.2.0" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" 25 | 26 | [[package]] 27 | name = "ahash" 28 | version = "0.8.11" 29 | source = "registry+https://github.com/rust-lang/crates.io-index" 30 | checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" 31 | dependencies = [ 32 | "cfg-if", 33 | "once_cell", 34 | "version_check", 35 | "zerocopy 0.7.32", 36 | ] 37 | 38 | [[package]] 39 | name = "aho-corasick" 40 | version = "1.1.3" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" 43 | dependencies = [ 44 | "memchr", 45 | ] 46 | 47 | [[package]] 48 | name = "aligned-vec" 49 | version = "0.5.0" 50 | source = "registry+https://github.com/rust-lang/crates.io-index" 51 | checksum = "4aa90d7ce82d4be67b64039a3d588d38dbcc6736577de4a847025ce5b0c468d1" 52 | 53 | [[package]] 54 | name = "android-tzdata" 55 | version = "0.1.1" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" 58 | 59 | [[package]] 60 | name = "android_system_properties" 61 | version = "0.1.5" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" 64 | dependencies = [ 65 | "libc", 66 | ] 67 | 68 | [[package]] 69 | name = "anstream" 70 | version = "0.6.13" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb" 73 | dependencies = [ 74 | "anstyle", 75 | "anstyle-parse", 76 | "anstyle-query", 77 | "anstyle-wincon", 78 | "colorchoice", 79 | "utf8parse", 80 | ] 81 | 82 | [[package]] 83 | name = "anstyle" 84 | version = "1.0.6" 85 | source = "registry+https://github.com/rust-lang/crates.io-index" 86 | checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" 87 | 88 | [[package]] 89 | name = "anstyle-parse" 90 | version = "0.2.3" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" 93 | dependencies = [ 94 | "utf8parse", 95 | ] 96 | 97 | [[package]] 98 | name = "anstyle-query" 99 | version = "1.0.2" 100 | source = "registry+https://github.com/rust-lang/crates.io-index" 101 | checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" 102 | dependencies = [ 103 | "windows-sys 0.52.0", 104 | ] 105 | 106 | [[package]] 107 | name = "anstyle-wincon" 108 | version = "3.0.2" 109 | source = "registry+https://github.com/rust-lang/crates.io-index" 110 | checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" 111 | dependencies = [ 112 | "anstyle", 113 | "windows-sys 0.52.0", 114 | ] 115 | 116 | [[package]] 117 | name = "anyhow" 118 | version = "1.0.81" 119 | source = "registry+https://github.com/rust-lang/crates.io-index" 120 | checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" 121 | 122 | [[package]] 123 | name = "arbitrary" 124 | version = "1.3.2" 125 | source = "registry+https://github.com/rust-lang/crates.io-index" 126 | checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" 127 | 128 | [[package]] 129 | name = "arboard" 130 | version = "3.4.1" 131 | source = "registry+https://github.com/rust-lang/crates.io-index" 132 | checksum = "df099ccb16cd014ff054ac1bf392c67feeef57164b05c42f037cd40f5d4357f4" 133 | dependencies = [ 134 | "clipboard-win", 135 | "core-graphics", 136 | "image 0.25.6", 137 | "log", 138 | "objc2", 139 | "objc2-app-kit", 140 | "objc2-foundation", 141 | "parking_lot", 142 | "windows-sys 0.48.0", 143 | "wl-clipboard-rs", 144 | "x11rb", 145 | ] 146 | 147 | [[package]] 148 | name = "arg_enum_proc_macro" 149 | version = "0.3.4" 150 | source = "registry+https://github.com/rust-lang/crates.io-index" 151 | checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea" 152 | dependencies = [ 153 | "proc-macro2", 154 | "quote", 155 | "syn 2.0.100", 156 | ] 157 | 158 | [[package]] 159 | name = "arrayref" 160 | version = "0.3.7" 161 | source = "registry+https://github.com/rust-lang/crates.io-index" 162 | checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" 163 | 164 | [[package]] 165 | name = "arrayvec" 166 | version = "0.7.6" 167 | source = "registry+https://github.com/rust-lang/crates.io-index" 168 | checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" 169 | 170 | [[package]] 171 | name = "async-trait" 172 | version = "0.1.79" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" 175 | dependencies = [ 176 | "proc-macro2", 177 | "quote", 178 | "syn 2.0.100", 179 | ] 180 | 181 | [[package]] 182 | name = "autocfg" 183 | version = "1.2.0" 184 | source = "registry+https://github.com/rust-lang/crates.io-index" 185 | checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" 186 | 187 | [[package]] 188 | name = "av1-grain" 189 | version = "0.2.3" 190 | source = "registry+https://github.com/rust-lang/crates.io-index" 191 | checksum = "6678909d8c5d46a42abcf571271e15fdbc0a225e3646cf23762cd415046c78bf" 192 | dependencies = [ 193 | "anyhow", 194 | "arrayvec", 195 | "log", 196 | "nom", 197 | "num-rational", 198 | "v_frame", 199 | ] 200 | 201 | [[package]] 202 | name = "avif-serialize" 203 | version = "0.8.2" 204 | source = "registry+https://github.com/rust-lang/crates.io-index" 205 | checksum = "e335041290c43101ca215eed6f43ec437eb5a42125573f600fc3fa42b9bddd62" 206 | dependencies = [ 207 | "arrayvec", 208 | ] 209 | 210 | [[package]] 211 | name = "backtrace" 212 | version = "0.3.71" 213 | source = "registry+https://github.com/rust-lang/crates.io-index" 214 | checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" 215 | dependencies = [ 216 | "addr2line", 217 | "cc", 218 | "cfg-if", 219 | "libc", 220 | "miniz_oxide", 221 | "object", 222 | "rustc-demangle", 223 | ] 224 | 225 | [[package]] 226 | name = "bincode" 227 | version = "1.3.3" 228 | source = "registry+https://github.com/rust-lang/crates.io-index" 229 | checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" 230 | dependencies = [ 231 | "serde", 232 | ] 233 | 234 | [[package]] 235 | name = "bit_field" 236 | version = "0.10.2" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | checksum = "dc827186963e592360843fb5ba4b973e145841266c1357f7180c43526f2e5b61" 239 | 240 | [[package]] 241 | name = "bitflags" 242 | version = "1.3.2" 243 | source = "registry+https://github.com/rust-lang/crates.io-index" 244 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 245 | 246 | [[package]] 247 | name = "bitflags" 248 | version = "2.5.0" 249 | source = "registry+https://github.com/rust-lang/crates.io-index" 250 | checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" 251 | 252 | [[package]] 253 | name = "bitstream-io" 254 | version = "2.2.0" 255 | source = "registry+https://github.com/rust-lang/crates.io-index" 256 | checksum = "06c9989a51171e2e81038ab168b6ae22886fe9ded214430dbb4f41c28cf176da" 257 | 258 | [[package]] 259 | name = "blake3" 260 | version = "1.5.1" 261 | source = "registry+https://github.com/rust-lang/crates.io-index" 262 | checksum = "30cca6d3674597c30ddf2c587bf8d9d65c9a84d2326d941cc79c9842dfe0ef52" 263 | dependencies = [ 264 | "arrayref", 265 | "arrayvec", 266 | "cc", 267 | "cfg-if", 268 | "constant_time_eq", 269 | ] 270 | 271 | [[package]] 272 | name = "block2" 273 | version = "0.5.1" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" 276 | dependencies = [ 277 | "objc2", 278 | ] 279 | 280 | [[package]] 281 | name = "built" 282 | version = "0.7.1" 283 | source = "registry+https://github.com/rust-lang/crates.io-index" 284 | checksum = "38d17f4d6e4dc36d1a02fbedc2753a096848e7c1b0772f7654eab8e2c927dd53" 285 | 286 | [[package]] 287 | name = "bumpalo" 288 | version = "3.15.4" 289 | source = "registry+https://github.com/rust-lang/crates.io-index" 290 | checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa" 291 | 292 | [[package]] 293 | name = "bytemuck" 294 | version = "1.15.0" 295 | source = "registry+https://github.com/rust-lang/crates.io-index" 296 | checksum = "5d6d68c57235a3a081186990eca2867354726650f42f7516ca50c28d6281fd15" 297 | 298 | [[package]] 299 | name = "byteorder" 300 | version = "1.5.0" 301 | source = "registry+https://github.com/rust-lang/crates.io-index" 302 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 303 | 304 | [[package]] 305 | name = "byteorder-lite" 306 | version = "0.1.0" 307 | source = "registry+https://github.com/rust-lang/crates.io-index" 308 | checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" 309 | 310 | [[package]] 311 | name = "bytes" 312 | version = "1.6.0" 313 | source = "registry+https://github.com/rust-lang/crates.io-index" 314 | checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" 315 | 316 | [[package]] 317 | name = "cc" 318 | version = "1.0.90" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5" 321 | dependencies = [ 322 | "jobserver", 323 | "libc", 324 | ] 325 | 326 | [[package]] 327 | name = "cfg-expr" 328 | version = "0.15.7" 329 | source = "registry+https://github.com/rust-lang/crates.io-index" 330 | checksum = "fa50868b64a9a6fda9d593ce778849ea8715cd2a3d2cc17ffdb4a2f2f2f1961d" 331 | dependencies = [ 332 | "smallvec", 333 | "target-lexicon", 334 | ] 335 | 336 | [[package]] 337 | name = "cfg-if" 338 | version = "1.0.0" 339 | source = "registry+https://github.com/rust-lang/crates.io-index" 340 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 341 | 342 | [[package]] 343 | name = "cfg_aliases" 344 | version = "0.1.1" 345 | source = "registry+https://github.com/rust-lang/crates.io-index" 346 | checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" 347 | 348 | [[package]] 349 | name = "chrono" 350 | version = "0.4.35" 351 | source = "registry+https://github.com/rust-lang/crates.io-index" 352 | checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a" 353 | dependencies = [ 354 | "android-tzdata", 355 | "iana-time-zone", 356 | "js-sys", 357 | "num-traits", 358 | "wasm-bindgen", 359 | "windows-targets 0.52.6", 360 | ] 361 | 362 | [[package]] 363 | name = "clipboard-win" 364 | version = "5.3.1" 365 | source = "registry+https://github.com/rust-lang/crates.io-index" 366 | checksum = "79f4473f5144e20d9aceaf2972478f06ddf687831eafeeb434fbaf0acc4144ad" 367 | dependencies = [ 368 | "error-code", 369 | ] 370 | 371 | [[package]] 372 | name = "cmake" 373 | version = "0.1.51" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | checksum = "fb1e43aa7fd152b1f968787f7dbcdeb306d1867ff373c69955211876c053f91a" 376 | dependencies = [ 377 | "cc", 378 | ] 379 | 380 | [[package]] 381 | name = "cmk" 382 | version = "0.1.2" 383 | source = "registry+https://github.com/rust-lang/crates.io-index" 384 | checksum = "8fd5de2a10e31b3ec3e8d75e7ccf8281ab3ee55de68f7ab6ffa9e21be8d82f22" 385 | 386 | [[package]] 387 | name = "color_quant" 388 | version = "1.1.0" 389 | source = "registry+https://github.com/rust-lang/crates.io-index" 390 | checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" 391 | 392 | [[package]] 393 | name = "colorchoice" 394 | version = "1.0.0" 395 | source = "registry+https://github.com/rust-lang/crates.io-index" 396 | checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" 397 | 398 | [[package]] 399 | name = "const_format" 400 | version = "0.2.34" 401 | source = "registry+https://github.com/rust-lang/crates.io-index" 402 | checksum = "126f97965c8ad46d6d9163268ff28432e8f6a1196a55578867832e3049df63dd" 403 | dependencies = [ 404 | "const_format_proc_macros", 405 | ] 406 | 407 | [[package]] 408 | name = "const_format_proc_macros" 409 | version = "0.2.34" 410 | source = "registry+https://github.com/rust-lang/crates.io-index" 411 | checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" 412 | dependencies = [ 413 | "proc-macro2", 414 | "quote", 415 | "unicode-xid", 416 | ] 417 | 418 | [[package]] 419 | name = "constant_time_eq" 420 | version = "0.3.0" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" 423 | 424 | [[package]] 425 | name = "core-foundation" 426 | version = "0.9.4" 427 | source = "registry+https://github.com/rust-lang/crates.io-index" 428 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 429 | dependencies = [ 430 | "core-foundation-sys", 431 | "libc", 432 | ] 433 | 434 | [[package]] 435 | name = "core-foundation-sys" 436 | version = "0.8.6" 437 | source = "registry+https://github.com/rust-lang/crates.io-index" 438 | checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" 439 | 440 | [[package]] 441 | name = "core-graphics" 442 | version = "0.23.1" 443 | source = "registry+https://github.com/rust-lang/crates.io-index" 444 | checksum = "970a29baf4110c26fedbc7f82107d42c23f7e88e404c4577ed73fe99ff85a212" 445 | dependencies = [ 446 | "bitflags 1.3.2", 447 | "core-foundation", 448 | "core-graphics-types", 449 | "foreign-types", 450 | "libc", 451 | ] 452 | 453 | [[package]] 454 | name = "core-graphics-types" 455 | version = "0.1.3" 456 | source = "registry+https://github.com/rust-lang/crates.io-index" 457 | checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" 458 | dependencies = [ 459 | "bitflags 1.3.2", 460 | "core-foundation", 461 | "libc", 462 | ] 463 | 464 | [[package]] 465 | name = "core2" 466 | version = "0.4.0" 467 | source = "registry+https://github.com/rust-lang/crates.io-index" 468 | checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505" 469 | dependencies = [ 470 | "memchr", 471 | ] 472 | 473 | [[package]] 474 | name = "crc32fast" 475 | version = "1.4.0" 476 | source = "registry+https://github.com/rust-lang/crates.io-index" 477 | checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" 478 | dependencies = [ 479 | "cfg-if", 480 | ] 481 | 482 | [[package]] 483 | name = "crossbeam-channel" 484 | version = "0.5.12" 485 | source = "registry+https://github.com/rust-lang/crates.io-index" 486 | checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95" 487 | dependencies = [ 488 | "crossbeam-utils", 489 | ] 490 | 491 | [[package]] 492 | name = "crossbeam-deque" 493 | version = "0.8.5" 494 | source = "registry+https://github.com/rust-lang/crates.io-index" 495 | checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" 496 | dependencies = [ 497 | "crossbeam-epoch", 498 | "crossbeam-utils", 499 | ] 500 | 501 | [[package]] 502 | name = "crossbeam-epoch" 503 | version = "0.9.18" 504 | source = "registry+https://github.com/rust-lang/crates.io-index" 505 | checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" 506 | dependencies = [ 507 | "crossbeam-utils", 508 | ] 509 | 510 | [[package]] 511 | name = "crossbeam-utils" 512 | version = "0.8.19" 513 | source = "registry+https://github.com/rust-lang/crates.io-index" 514 | checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" 515 | 516 | [[package]] 517 | name = "crunchy" 518 | version = "0.2.2" 519 | source = "registry+https://github.com/rust-lang/crates.io-index" 520 | checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" 521 | 522 | [[package]] 523 | name = "dary_heap" 524 | version = "0.3.6" 525 | source = "registry+https://github.com/rust-lang/crates.io-index" 526 | checksum = "7762d17f1241643615821a8455a0b2c3e803784b058693d990b11f2dce25a0ca" 527 | 528 | [[package]] 529 | name = "derive-new" 530 | version = "0.6.0" 531 | source = "registry+https://github.com/rust-lang/crates.io-index" 532 | checksum = "d150dea618e920167e5973d70ae6ece4385b7164e0d799fe7c122dd0a5d912ad" 533 | dependencies = [ 534 | "proc-macro2", 535 | "quote", 536 | "syn 2.0.100", 537 | ] 538 | 539 | [[package]] 540 | name = "dlib" 541 | version = "0.5.2" 542 | source = "registry+https://github.com/rust-lang/crates.io-index" 543 | checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412" 544 | dependencies = [ 545 | "libloading", 546 | ] 547 | 548 | [[package]] 549 | name = "downcast-rs" 550 | version = "1.2.1" 551 | source = "registry+https://github.com/rust-lang/crates.io-index" 552 | checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" 553 | 554 | [[package]] 555 | name = "dyn-clone" 556 | version = "1.0.17" 557 | source = "registry+https://github.com/rust-lang/crates.io-index" 558 | checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" 559 | 560 | [[package]] 561 | name = "either" 562 | version = "1.10.0" 563 | source = "registry+https://github.com/rust-lang/crates.io-index" 564 | checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" 565 | 566 | [[package]] 567 | name = "enumn" 568 | version = "0.1.13" 569 | source = "registry+https://github.com/rust-lang/crates.io-index" 570 | checksum = "6fd000fd6988e73bbe993ea3db9b1aa64906ab88766d654973924340c8cddb42" 571 | dependencies = [ 572 | "proc-macro2", 573 | "quote", 574 | "syn 2.0.100", 575 | ] 576 | 577 | [[package]] 578 | name = "env_filter" 579 | version = "0.1.0" 580 | source = "registry+https://github.com/rust-lang/crates.io-index" 581 | checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea" 582 | dependencies = [ 583 | "log", 584 | "regex", 585 | ] 586 | 587 | [[package]] 588 | name = "env_logger" 589 | version = "0.11.7" 590 | source = "registry+https://github.com/rust-lang/crates.io-index" 591 | checksum = "c3716d7a920fb4fac5d84e9d4bce8ceb321e9414b4409da61b07b75c1e3d0697" 592 | dependencies = [ 593 | "anstream", 594 | "anstyle", 595 | "env_filter", 596 | "jiff", 597 | "log", 598 | ] 599 | 600 | [[package]] 601 | name = "equivalent" 602 | version = "1.0.1" 603 | source = "registry+https://github.com/rust-lang/crates.io-index" 604 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 605 | 606 | [[package]] 607 | name = "errno" 608 | version = "0.3.8" 609 | source = "registry+https://github.com/rust-lang/crates.io-index" 610 | checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" 611 | dependencies = [ 612 | "libc", 613 | "windows-sys 0.52.0", 614 | ] 615 | 616 | [[package]] 617 | name = "error-code" 618 | version = "3.2.0" 619 | source = "registry+https://github.com/rust-lang/crates.io-index" 620 | checksum = "a0474425d51df81997e2f90a21591180b38eccf27292d755f3e30750225c175b" 621 | 622 | [[package]] 623 | name = "exr" 624 | version = "1.72.0" 625 | source = "registry+https://github.com/rust-lang/crates.io-index" 626 | checksum = "887d93f60543e9a9362ef8a21beedd0a833c5d9610e18c67abe15a5963dcb1a4" 627 | dependencies = [ 628 | "bit_field", 629 | "flume", 630 | "half", 631 | "lebe", 632 | "miniz_oxide", 633 | "rayon-core", 634 | "smallvec", 635 | "zune-inflate", 636 | ] 637 | 638 | [[package]] 639 | name = "fastrand" 640 | version = "2.1.0" 641 | source = "registry+https://github.com/rust-lang/crates.io-index" 642 | checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" 643 | 644 | [[package]] 645 | name = "fdeflate" 646 | version = "0.3.4" 647 | source = "registry+https://github.com/rust-lang/crates.io-index" 648 | checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645" 649 | dependencies = [ 650 | "simd-adler32", 651 | ] 652 | 653 | [[package]] 654 | name = "fixedbitset" 655 | version = "0.4.2" 656 | source = "registry+https://github.com/rust-lang/crates.io-index" 657 | checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" 658 | 659 | [[package]] 660 | name = "flate2" 661 | version = "1.0.28" 662 | source = "registry+https://github.com/rust-lang/crates.io-index" 663 | checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" 664 | dependencies = [ 665 | "crc32fast", 666 | "miniz_oxide", 667 | ] 668 | 669 | [[package]] 670 | name = "fltk" 671 | version = "1.5.5" 672 | source = "registry+https://github.com/rust-lang/crates.io-index" 673 | checksum = "63827b17d535827c9cdc922d6d8e0b6068084ae9d5072a4be139442012a8e6a2" 674 | dependencies = [ 675 | "bitflags 2.5.0", 676 | "crossbeam-channel", 677 | "fltk-sys", 678 | "once_cell", 679 | "paste", 680 | "ttf-parser", 681 | ] 682 | 683 | [[package]] 684 | name = "fltk-sys" 685 | version = "1.5.5" 686 | source = "registry+https://github.com/rust-lang/crates.io-index" 687 | checksum = "b27145d51dae768b5263277382d584a3752ffa3423dab877754266c9c080e08d" 688 | dependencies = [ 689 | "cmake", 690 | "cmk", 691 | ] 692 | 693 | [[package]] 694 | name = "flume" 695 | version = "0.11.0" 696 | source = "registry+https://github.com/rust-lang/crates.io-index" 697 | checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181" 698 | dependencies = [ 699 | "spin", 700 | ] 701 | 702 | [[package]] 703 | name = "fnv" 704 | version = "1.0.7" 705 | source = "registry+https://github.com/rust-lang/crates.io-index" 706 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 707 | 708 | [[package]] 709 | name = "foreign-types" 710 | version = "0.5.0" 711 | source = "registry+https://github.com/rust-lang/crates.io-index" 712 | checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" 713 | dependencies = [ 714 | "foreign-types-macros", 715 | "foreign-types-shared", 716 | ] 717 | 718 | [[package]] 719 | name = "foreign-types-macros" 720 | version = "0.2.3" 721 | source = "registry+https://github.com/rust-lang/crates.io-index" 722 | checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" 723 | dependencies = [ 724 | "proc-macro2", 725 | "quote", 726 | "syn 2.0.100", 727 | ] 728 | 729 | [[package]] 730 | name = "foreign-types-shared" 731 | version = "0.3.1" 732 | source = "registry+https://github.com/rust-lang/crates.io-index" 733 | checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" 734 | 735 | [[package]] 736 | name = "futures" 737 | version = "0.3.30" 738 | source = "registry+https://github.com/rust-lang/crates.io-index" 739 | checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" 740 | dependencies = [ 741 | "futures-channel", 742 | "futures-core", 743 | "futures-executor", 744 | "futures-io", 745 | "futures-sink", 746 | "futures-task", 747 | "futures-util", 748 | ] 749 | 750 | [[package]] 751 | name = "futures-channel" 752 | version = "0.3.30" 753 | source = "registry+https://github.com/rust-lang/crates.io-index" 754 | checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" 755 | dependencies = [ 756 | "futures-core", 757 | "futures-sink", 758 | ] 759 | 760 | [[package]] 761 | name = "futures-core" 762 | version = "0.3.30" 763 | source = "registry+https://github.com/rust-lang/crates.io-index" 764 | checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" 765 | 766 | [[package]] 767 | name = "futures-executor" 768 | version = "0.3.30" 769 | source = "registry+https://github.com/rust-lang/crates.io-index" 770 | checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" 771 | dependencies = [ 772 | "futures-core", 773 | "futures-task", 774 | "futures-util", 775 | ] 776 | 777 | [[package]] 778 | name = "futures-io" 779 | version = "0.3.30" 780 | source = "registry+https://github.com/rust-lang/crates.io-index" 781 | checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" 782 | 783 | [[package]] 784 | name = "futures-macro" 785 | version = "0.3.30" 786 | source = "registry+https://github.com/rust-lang/crates.io-index" 787 | checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" 788 | dependencies = [ 789 | "proc-macro2", 790 | "quote", 791 | "syn 2.0.100", 792 | ] 793 | 794 | [[package]] 795 | name = "futures-sink" 796 | version = "0.3.30" 797 | source = "registry+https://github.com/rust-lang/crates.io-index" 798 | checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" 799 | 800 | [[package]] 801 | name = "futures-task" 802 | version = "0.3.30" 803 | source = "registry+https://github.com/rust-lang/crates.io-index" 804 | checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" 805 | 806 | [[package]] 807 | name = "futures-util" 808 | version = "0.3.30" 809 | source = "registry+https://github.com/rust-lang/crates.io-index" 810 | checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" 811 | dependencies = [ 812 | "futures-channel", 813 | "futures-core", 814 | "futures-io", 815 | "futures-macro", 816 | "futures-sink", 817 | "futures-task", 818 | "memchr", 819 | "pin-project-lite", 820 | "pin-utils", 821 | "slab", 822 | ] 823 | 824 | [[package]] 825 | name = "gethostname" 826 | version = "0.4.3" 827 | source = "registry+https://github.com/rust-lang/crates.io-index" 828 | checksum = "0176e0459c2e4a1fe232f984bca6890e681076abb9934f6cea7c326f3fc47818" 829 | dependencies = [ 830 | "libc", 831 | "windows-targets 0.48.5", 832 | ] 833 | 834 | [[package]] 835 | name = "getrandom" 836 | version = "0.2.12" 837 | source = "registry+https://github.com/rust-lang/crates.io-index" 838 | checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" 839 | dependencies = [ 840 | "cfg-if", 841 | "libc", 842 | "wasi 0.11.0+wasi-snapshot-preview1", 843 | ] 844 | 845 | [[package]] 846 | name = "getrandom" 847 | version = "0.3.2" 848 | source = "registry+https://github.com/rust-lang/crates.io-index" 849 | checksum = "73fea8450eea4bac3940448fb7ae50d91f034f941199fcd9d909a5a07aa455f0" 850 | dependencies = [ 851 | "cfg-if", 852 | "libc", 853 | "r-efi", 854 | "wasi 0.14.2+wasi-0.2.4", 855 | ] 856 | 857 | [[package]] 858 | name = "gif" 859 | version = "0.13.1" 860 | source = "registry+https://github.com/rust-lang/crates.io-index" 861 | checksum = "3fb2d69b19215e18bb912fa30f7ce15846e301408695e44e0ef719f1da9e19f2" 862 | dependencies = [ 863 | "color_quant", 864 | "weezl", 865 | ] 866 | 867 | [[package]] 868 | name = "gimli" 869 | version = "0.28.1" 870 | source = "registry+https://github.com/rust-lang/crates.io-index" 871 | checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" 872 | 873 | [[package]] 874 | name = "glob" 875 | version = "0.3.1" 876 | source = "registry+https://github.com/rust-lang/crates.io-index" 877 | checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" 878 | 879 | [[package]] 880 | name = "half" 881 | version = "2.4.0" 882 | source = "registry+https://github.com/rust-lang/crates.io-index" 883 | checksum = "b5eceaaeec696539ddaf7b333340f1af35a5aa87ae3e4f3ead0532f72affab2e" 884 | dependencies = [ 885 | "cfg-if", 886 | "crunchy", 887 | ] 888 | 889 | [[package]] 890 | name = "hashbrown" 891 | version = "0.12.3" 892 | source = "registry+https://github.com/rust-lang/crates.io-index" 893 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 894 | 895 | [[package]] 896 | name = "hashbrown" 897 | version = "0.13.2" 898 | source = "registry+https://github.com/rust-lang/crates.io-index" 899 | checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" 900 | dependencies = [ 901 | "ahash", 902 | ] 903 | 904 | [[package]] 905 | name = "hashbrown" 906 | version = "0.14.3" 907 | source = "registry+https://github.com/rust-lang/crates.io-index" 908 | checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" 909 | 910 | [[package]] 911 | name = "heck" 912 | version = "0.5.0" 913 | source = "registry+https://github.com/rust-lang/crates.io-index" 914 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 915 | 916 | [[package]] 917 | name = "hermit-abi" 918 | version = "0.3.9" 919 | source = "registry+https://github.com/rust-lang/crates.io-index" 920 | checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" 921 | 922 | [[package]] 923 | name = "hex" 924 | version = "0.4.3" 925 | source = "registry+https://github.com/rust-lang/crates.io-index" 926 | checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" 927 | 928 | [[package]] 929 | name = "home" 930 | version = "0.5.9" 931 | source = "registry+https://github.com/rust-lang/crates.io-index" 932 | checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" 933 | dependencies = [ 934 | "windows-sys 0.52.0", 935 | ] 936 | 937 | [[package]] 938 | name = "iana-time-zone" 939 | version = "0.1.60" 940 | source = "registry+https://github.com/rust-lang/crates.io-index" 941 | checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" 942 | dependencies = [ 943 | "android_system_properties", 944 | "core-foundation-sys", 945 | "iana-time-zone-haiku", 946 | "js-sys", 947 | "wasm-bindgen", 948 | "windows-core 0.52.0", 949 | ] 950 | 951 | [[package]] 952 | name = "iana-time-zone-haiku" 953 | version = "0.1.2" 954 | source = "registry+https://github.com/rust-lang/crates.io-index" 955 | checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" 956 | dependencies = [ 957 | "cc", 958 | ] 959 | 960 | [[package]] 961 | name = "image" 962 | version = "0.24.9" 963 | source = "registry+https://github.com/rust-lang/crates.io-index" 964 | checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d" 965 | dependencies = [ 966 | "bytemuck", 967 | "byteorder", 968 | "color_quant", 969 | "exr", 970 | "gif", 971 | "jpeg-decoder", 972 | "num-traits", 973 | "png", 974 | "qoi", 975 | "tiff", 976 | ] 977 | 978 | [[package]] 979 | name = "image" 980 | version = "0.25.6" 981 | source = "registry+https://github.com/rust-lang/crates.io-index" 982 | checksum = "db35664ce6b9810857a38a906215e75a9c879f0696556a39f59c62829710251a" 983 | dependencies = [ 984 | "bytemuck", 985 | "byteorder-lite", 986 | "color_quant", 987 | "exr", 988 | "gif", 989 | "image-webp", 990 | "num-traits", 991 | "png", 992 | "qoi", 993 | "ravif", 994 | "rayon", 995 | "rgb", 996 | "tiff", 997 | "zune-core", 998 | "zune-jpeg", 999 | ] 1000 | 1001 | [[package]] 1002 | name = "image-webp" 1003 | version = "0.2.0" 1004 | source = "registry+https://github.com/rust-lang/crates.io-index" 1005 | checksum = "e031e8e3d94711a9ccb5d6ea357439ef3dcbed361798bd4071dc4d9793fbe22f" 1006 | dependencies = [ 1007 | "byteorder-lite", 1008 | "quick-error", 1009 | ] 1010 | 1011 | [[package]] 1012 | name = "imagepipe" 1013 | version = "0.5.0" 1014 | source = "git+https://github.com/dividebysandwich/imagepipe#8848d3e46622dafc50748e8052b2cfa11b808150" 1015 | dependencies = [ 1016 | "bincode", 1017 | "blake3", 1018 | "image 0.24.9", 1019 | "lazy_static", 1020 | "log", 1021 | "multicache", 1022 | "num-traits", 1023 | "rawler", 1024 | "rayon", 1025 | "serde", 1026 | "serde_derive", 1027 | "serde_yaml", 1028 | ] 1029 | 1030 | [[package]] 1031 | name = "imgref" 1032 | version = "1.10.1" 1033 | source = "registry+https://github.com/rust-lang/crates.io-index" 1034 | checksum = "44feda355f4159a7c757171a77de25daf6411e217b4cabd03bd6650690468126" 1035 | 1036 | [[package]] 1037 | name = "indexmap" 1038 | version = "1.9.3" 1039 | source = "registry+https://github.com/rust-lang/crates.io-index" 1040 | checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" 1041 | dependencies = [ 1042 | "autocfg", 1043 | "hashbrown 0.12.3", 1044 | ] 1045 | 1046 | [[package]] 1047 | name = "indexmap" 1048 | version = "2.2.6" 1049 | source = "registry+https://github.com/rust-lang/crates.io-index" 1050 | checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" 1051 | dependencies = [ 1052 | "equivalent", 1053 | "hashbrown 0.14.3", 1054 | ] 1055 | 1056 | [[package]] 1057 | name = "interpolate_name" 1058 | version = "0.2.4" 1059 | source = "registry+https://github.com/rust-lang/crates.io-index" 1060 | checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60" 1061 | dependencies = [ 1062 | "proc-macro2", 1063 | "quote", 1064 | "syn 2.0.100", 1065 | ] 1066 | 1067 | [[package]] 1068 | name = "itertools" 1069 | version = "0.12.1" 1070 | source = "registry+https://github.com/rust-lang/crates.io-index" 1071 | checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" 1072 | dependencies = [ 1073 | "either", 1074 | ] 1075 | 1076 | [[package]] 1077 | name = "itertools" 1078 | version = "0.13.0" 1079 | source = "registry+https://github.com/rust-lang/crates.io-index" 1080 | checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" 1081 | dependencies = [ 1082 | "either", 1083 | ] 1084 | 1085 | [[package]] 1086 | name = "itoa" 1087 | version = "1.0.11" 1088 | source = "registry+https://github.com/rust-lang/crates.io-index" 1089 | checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" 1090 | 1091 | [[package]] 1092 | name = "jiff" 1093 | version = "0.2.5" 1094 | source = "registry+https://github.com/rust-lang/crates.io-index" 1095 | checksum = "c102670231191d07d37a35af3eb77f1f0dbf7a71be51a962dcd57ea607be7260" 1096 | dependencies = [ 1097 | "jiff-static", 1098 | "log", 1099 | "portable-atomic", 1100 | "portable-atomic-util", 1101 | "serde", 1102 | ] 1103 | 1104 | [[package]] 1105 | name = "jiff-static" 1106 | version = "0.2.5" 1107 | source = "registry+https://github.com/rust-lang/crates.io-index" 1108 | checksum = "4cdde31a9d349f1b1f51a0b3714a5940ac022976f4b49485fc04be052b183b4c" 1109 | dependencies = [ 1110 | "proc-macro2", 1111 | "quote", 1112 | "syn 2.0.100", 1113 | ] 1114 | 1115 | [[package]] 1116 | name = "jobserver" 1117 | version = "0.1.28" 1118 | source = "registry+https://github.com/rust-lang/crates.io-index" 1119 | checksum = "ab46a6e9526ddef3ae7f787c06f0f2600639ba80ea3eade3d8e670a2230f51d6" 1120 | dependencies = [ 1121 | "libc", 1122 | ] 1123 | 1124 | [[package]] 1125 | name = "jpeg-decoder" 1126 | version = "0.3.1" 1127 | source = "registry+https://github.com/rust-lang/crates.io-index" 1128 | checksum = "f5d4a7da358eff58addd2877a45865158f0d78c911d43a5784ceb7bbf52833b0" 1129 | dependencies = [ 1130 | "rayon", 1131 | ] 1132 | 1133 | [[package]] 1134 | name = "js-sys" 1135 | version = "0.3.69" 1136 | source = "registry+https://github.com/rust-lang/crates.io-index" 1137 | checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" 1138 | dependencies = [ 1139 | "wasm-bindgen", 1140 | ] 1141 | 1142 | [[package]] 1143 | name = "lazy_static" 1144 | version = "1.4.0" 1145 | source = "registry+https://github.com/rust-lang/crates.io-index" 1146 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 1147 | 1148 | [[package]] 1149 | name = "lebe" 1150 | version = "0.5.2" 1151 | source = "registry+https://github.com/rust-lang/crates.io-index" 1152 | checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8" 1153 | 1154 | [[package]] 1155 | name = "libc" 1156 | version = "0.2.171" 1157 | source = "registry+https://github.com/rust-lang/crates.io-index" 1158 | checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6" 1159 | 1160 | [[package]] 1161 | name = "libflate" 1162 | version = "2.0.0" 1163 | source = "registry+https://github.com/rust-lang/crates.io-index" 1164 | checksum = "9f7d5654ae1795afc7ff76f4365c2c8791b0feb18e8996a96adad8ffd7c3b2bf" 1165 | dependencies = [ 1166 | "adler32", 1167 | "core2", 1168 | "crc32fast", 1169 | "dary_heap", 1170 | "libflate_lz77", 1171 | ] 1172 | 1173 | [[package]] 1174 | name = "libflate_lz77" 1175 | version = "2.0.0" 1176 | source = "registry+https://github.com/rust-lang/crates.io-index" 1177 | checksum = "be5f52fb8c451576ec6b79d3f4deb327398bc05bbdbd99021a6e77a4c855d524" 1178 | dependencies = [ 1179 | "core2", 1180 | "hashbrown 0.13.2", 1181 | "rle-decode-fast", 1182 | ] 1183 | 1184 | [[package]] 1185 | name = "libfuzzer-sys" 1186 | version = "0.4.7" 1187 | source = "registry+https://github.com/rust-lang/crates.io-index" 1188 | checksum = "a96cfd5557eb82f2b83fed4955246c988d331975a002961b07c81584d107e7f7" 1189 | dependencies = [ 1190 | "arbitrary", 1191 | "cc", 1192 | "once_cell", 1193 | ] 1194 | 1195 | [[package]] 1196 | name = "libloading" 1197 | version = "0.8.3" 1198 | source = "registry+https://github.com/rust-lang/crates.io-index" 1199 | checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" 1200 | dependencies = [ 1201 | "cfg-if", 1202 | "windows-targets 0.52.6", 1203 | ] 1204 | 1205 | [[package]] 1206 | name = "lightningview" 1207 | version = "1.8.0" 1208 | dependencies = [ 1209 | "arboard", 1210 | "const_format", 1211 | "env_logger", 1212 | "fltk", 1213 | "image 0.25.6", 1214 | "imagepipe", 1215 | "log", 1216 | "ndarray", 1217 | "rand 0.9.0", 1218 | "rawler", 1219 | "rustronomy-fits", 1220 | "windows", 1221 | "winreg", 1222 | "winres", 1223 | ] 1224 | 1225 | [[package]] 1226 | name = "linked-hash-map" 1227 | version = "0.5.6" 1228 | source = "registry+https://github.com/rust-lang/crates.io-index" 1229 | checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" 1230 | 1231 | [[package]] 1232 | name = "linux-raw-sys" 1233 | version = "0.4.13" 1234 | source = "registry+https://github.com/rust-lang/crates.io-index" 1235 | checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" 1236 | 1237 | [[package]] 1238 | name = "lock_api" 1239 | version = "0.4.11" 1240 | source = "registry+https://github.com/rust-lang/crates.io-index" 1241 | checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" 1242 | dependencies = [ 1243 | "autocfg", 1244 | "scopeguard", 1245 | ] 1246 | 1247 | [[package]] 1248 | name = "log" 1249 | version = "0.4.27" 1250 | source = "registry+https://github.com/rust-lang/crates.io-index" 1251 | checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" 1252 | 1253 | [[package]] 1254 | name = "loop9" 1255 | version = "0.1.5" 1256 | source = "registry+https://github.com/rust-lang/crates.io-index" 1257 | checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062" 1258 | dependencies = [ 1259 | "imgref", 1260 | ] 1261 | 1262 | [[package]] 1263 | name = "matrixmultiply" 1264 | version = "0.3.9" 1265 | source = "registry+https://github.com/rust-lang/crates.io-index" 1266 | checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a" 1267 | dependencies = [ 1268 | "autocfg", 1269 | "rawpointer", 1270 | ] 1271 | 1272 | [[package]] 1273 | name = "maybe-rayon" 1274 | version = "0.1.1" 1275 | source = "registry+https://github.com/rust-lang/crates.io-index" 1276 | checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519" 1277 | dependencies = [ 1278 | "cfg-if", 1279 | "rayon", 1280 | ] 1281 | 1282 | [[package]] 1283 | name = "md5" 1284 | version = "0.7.0" 1285 | source = "registry+https://github.com/rust-lang/crates.io-index" 1286 | checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" 1287 | 1288 | [[package]] 1289 | name = "memchr" 1290 | version = "2.7.1" 1291 | source = "registry+https://github.com/rust-lang/crates.io-index" 1292 | checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" 1293 | 1294 | [[package]] 1295 | name = "minimal-lexical" 1296 | version = "0.2.1" 1297 | source = "registry+https://github.com/rust-lang/crates.io-index" 1298 | checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 1299 | 1300 | [[package]] 1301 | name = "miniz_oxide" 1302 | version = "0.7.2" 1303 | source = "registry+https://github.com/rust-lang/crates.io-index" 1304 | checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" 1305 | dependencies = [ 1306 | "adler", 1307 | "simd-adler32", 1308 | ] 1309 | 1310 | [[package]] 1311 | name = "mio" 1312 | version = "0.8.11" 1313 | source = "registry+https://github.com/rust-lang/crates.io-index" 1314 | checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" 1315 | dependencies = [ 1316 | "libc", 1317 | "wasi 0.11.0+wasi-snapshot-preview1", 1318 | "windows-sys 0.48.0", 1319 | ] 1320 | 1321 | [[package]] 1322 | name = "multicache" 1323 | version = "0.6.1" 1324 | source = "registry+https://github.com/rust-lang/crates.io-index" 1325 | checksum = "5086074c0a0812980aa88703d1bbcb4433e8423ecf4098a9849934f3dc09ba72" 1326 | dependencies = [ 1327 | "linked-hash-map", 1328 | ] 1329 | 1330 | [[package]] 1331 | name = "multiversion" 1332 | version = "0.7.4" 1333 | source = "registry+https://github.com/rust-lang/crates.io-index" 1334 | checksum = "c4851161a11d3ad0bf9402d90ffc3967bf231768bfd7aeb61755ad06dbf1a142" 1335 | dependencies = [ 1336 | "multiversion-macros", 1337 | "target-features", 1338 | ] 1339 | 1340 | [[package]] 1341 | name = "multiversion-macros" 1342 | version = "0.7.4" 1343 | source = "registry+https://github.com/rust-lang/crates.io-index" 1344 | checksum = "79a74ddee9e0c27d2578323c13905793e91622148f138ba29738f9dddb835e90" 1345 | dependencies = [ 1346 | "proc-macro2", 1347 | "quote", 1348 | "syn 1.0.109", 1349 | "target-features", 1350 | ] 1351 | 1352 | [[package]] 1353 | name = "ndarray" 1354 | version = "0.15.6" 1355 | source = "registry+https://github.com/rust-lang/crates.io-index" 1356 | checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32" 1357 | dependencies = [ 1358 | "matrixmultiply", 1359 | "num-complex", 1360 | "num-integer", 1361 | "num-traits", 1362 | "rawpointer", 1363 | ] 1364 | 1365 | [[package]] 1366 | name = "new_debug_unreachable" 1367 | version = "1.0.6" 1368 | source = "registry+https://github.com/rust-lang/crates.io-index" 1369 | checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" 1370 | 1371 | [[package]] 1372 | name = "nix" 1373 | version = "0.28.0" 1374 | source = "registry+https://github.com/rust-lang/crates.io-index" 1375 | checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" 1376 | dependencies = [ 1377 | "bitflags 2.5.0", 1378 | "cfg-if", 1379 | "cfg_aliases", 1380 | "libc", 1381 | ] 1382 | 1383 | [[package]] 1384 | name = "nom" 1385 | version = "7.1.3" 1386 | source = "registry+https://github.com/rust-lang/crates.io-index" 1387 | checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" 1388 | dependencies = [ 1389 | "memchr", 1390 | "minimal-lexical", 1391 | ] 1392 | 1393 | [[package]] 1394 | name = "noop_proc_macro" 1395 | version = "0.3.0" 1396 | source = "registry+https://github.com/rust-lang/crates.io-index" 1397 | checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" 1398 | 1399 | [[package]] 1400 | name = "num-bigint" 1401 | version = "0.4.4" 1402 | source = "registry+https://github.com/rust-lang/crates.io-index" 1403 | checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" 1404 | dependencies = [ 1405 | "autocfg", 1406 | "num-integer", 1407 | "num-traits", 1408 | ] 1409 | 1410 | [[package]] 1411 | name = "num-complex" 1412 | version = "0.4.6" 1413 | source = "registry+https://github.com/rust-lang/crates.io-index" 1414 | checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" 1415 | dependencies = [ 1416 | "num-traits", 1417 | ] 1418 | 1419 | [[package]] 1420 | name = "num-derive" 1421 | version = "0.4.2" 1422 | source = "registry+https://github.com/rust-lang/crates.io-index" 1423 | checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" 1424 | dependencies = [ 1425 | "proc-macro2", 1426 | "quote", 1427 | "syn 2.0.100", 1428 | ] 1429 | 1430 | [[package]] 1431 | name = "num-integer" 1432 | version = "0.1.46" 1433 | source = "registry+https://github.com/rust-lang/crates.io-index" 1434 | checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" 1435 | dependencies = [ 1436 | "num-traits", 1437 | ] 1438 | 1439 | [[package]] 1440 | name = "num-rational" 1441 | version = "0.4.1" 1442 | source = "registry+https://github.com/rust-lang/crates.io-index" 1443 | checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" 1444 | dependencies = [ 1445 | "autocfg", 1446 | "num-bigint", 1447 | "num-integer", 1448 | "num-traits", 1449 | ] 1450 | 1451 | [[package]] 1452 | name = "num-traits" 1453 | version = "0.2.19" 1454 | source = "registry+https://github.com/rust-lang/crates.io-index" 1455 | checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" 1456 | dependencies = [ 1457 | "autocfg", 1458 | ] 1459 | 1460 | [[package]] 1461 | name = "num_cpus" 1462 | version = "1.16.0" 1463 | source = "registry+https://github.com/rust-lang/crates.io-index" 1464 | checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" 1465 | dependencies = [ 1466 | "hermit-abi", 1467 | "libc", 1468 | ] 1469 | 1470 | [[package]] 1471 | name = "num_enum" 1472 | version = "0.7.2" 1473 | source = "registry+https://github.com/rust-lang/crates.io-index" 1474 | checksum = "02339744ee7253741199f897151b38e72257d13802d4ee837285cc2990a90845" 1475 | dependencies = [ 1476 | "num_enum_derive", 1477 | ] 1478 | 1479 | [[package]] 1480 | name = "num_enum_derive" 1481 | version = "0.7.2" 1482 | source = "registry+https://github.com/rust-lang/crates.io-index" 1483 | checksum = "681030a937600a36906c185595136d26abfebb4aa9c65701cefcaf8578bb982b" 1484 | dependencies = [ 1485 | "proc-macro-crate", 1486 | "proc-macro2", 1487 | "quote", 1488 | "syn 2.0.100", 1489 | ] 1490 | 1491 | [[package]] 1492 | name = "objc-sys" 1493 | version = "0.3.5" 1494 | source = "registry+https://github.com/rust-lang/crates.io-index" 1495 | checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" 1496 | 1497 | [[package]] 1498 | name = "objc2" 1499 | version = "0.5.2" 1500 | source = "registry+https://github.com/rust-lang/crates.io-index" 1501 | checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804" 1502 | dependencies = [ 1503 | "objc-sys", 1504 | "objc2-encode", 1505 | ] 1506 | 1507 | [[package]] 1508 | name = "objc2-app-kit" 1509 | version = "0.2.2" 1510 | source = "registry+https://github.com/rust-lang/crates.io-index" 1511 | checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" 1512 | dependencies = [ 1513 | "bitflags 2.5.0", 1514 | "block2", 1515 | "libc", 1516 | "objc2", 1517 | "objc2-core-data", 1518 | "objc2-core-image", 1519 | "objc2-foundation", 1520 | "objc2-quartz-core", 1521 | ] 1522 | 1523 | [[package]] 1524 | name = "objc2-core-data" 1525 | version = "0.2.2" 1526 | source = "registry+https://github.com/rust-lang/crates.io-index" 1527 | checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" 1528 | dependencies = [ 1529 | "bitflags 2.5.0", 1530 | "block2", 1531 | "objc2", 1532 | "objc2-foundation", 1533 | ] 1534 | 1535 | [[package]] 1536 | name = "objc2-core-image" 1537 | version = "0.2.2" 1538 | source = "registry+https://github.com/rust-lang/crates.io-index" 1539 | checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" 1540 | dependencies = [ 1541 | "block2", 1542 | "objc2", 1543 | "objc2-foundation", 1544 | "objc2-metal", 1545 | ] 1546 | 1547 | [[package]] 1548 | name = "objc2-encode" 1549 | version = "4.0.3" 1550 | source = "registry+https://github.com/rust-lang/crates.io-index" 1551 | checksum = "7891e71393cd1f227313c9379a26a584ff3d7e6e7159e988851f0934c993f0f8" 1552 | 1553 | [[package]] 1554 | name = "objc2-foundation" 1555 | version = "0.2.2" 1556 | source = "registry+https://github.com/rust-lang/crates.io-index" 1557 | checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" 1558 | dependencies = [ 1559 | "bitflags 2.5.0", 1560 | "block2", 1561 | "libc", 1562 | "objc2", 1563 | ] 1564 | 1565 | [[package]] 1566 | name = "objc2-metal" 1567 | version = "0.2.2" 1568 | source = "registry+https://github.com/rust-lang/crates.io-index" 1569 | checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" 1570 | dependencies = [ 1571 | "bitflags 2.5.0", 1572 | "block2", 1573 | "objc2", 1574 | "objc2-foundation", 1575 | ] 1576 | 1577 | [[package]] 1578 | name = "objc2-quartz-core" 1579 | version = "0.2.2" 1580 | source = "registry+https://github.com/rust-lang/crates.io-index" 1581 | checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" 1582 | dependencies = [ 1583 | "bitflags 2.5.0", 1584 | "block2", 1585 | "objc2", 1586 | "objc2-foundation", 1587 | "objc2-metal", 1588 | ] 1589 | 1590 | [[package]] 1591 | name = "object" 1592 | version = "0.32.2" 1593 | source = "registry+https://github.com/rust-lang/crates.io-index" 1594 | checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" 1595 | dependencies = [ 1596 | "memchr", 1597 | ] 1598 | 1599 | [[package]] 1600 | name = "once_cell" 1601 | version = "1.19.0" 1602 | source = "registry+https://github.com/rust-lang/crates.io-index" 1603 | checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" 1604 | 1605 | [[package]] 1606 | name = "os_pipe" 1607 | version = "1.2.0" 1608 | source = "registry+https://github.com/rust-lang/crates.io-index" 1609 | checksum = "29d73ba8daf8fac13b0501d1abeddcfe21ba7401ada61a819144b6c2a4f32209" 1610 | dependencies = [ 1611 | "libc", 1612 | "windows-sys 0.52.0", 1613 | ] 1614 | 1615 | [[package]] 1616 | name = "parking_lot" 1617 | version = "0.12.1" 1618 | source = "registry+https://github.com/rust-lang/crates.io-index" 1619 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 1620 | dependencies = [ 1621 | "lock_api", 1622 | "parking_lot_core", 1623 | ] 1624 | 1625 | [[package]] 1626 | name = "parking_lot_core" 1627 | version = "0.9.9" 1628 | source = "registry+https://github.com/rust-lang/crates.io-index" 1629 | checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" 1630 | dependencies = [ 1631 | "cfg-if", 1632 | "libc", 1633 | "redox_syscall", 1634 | "smallvec", 1635 | "windows-targets 0.48.5", 1636 | ] 1637 | 1638 | [[package]] 1639 | name = "paste" 1640 | version = "1.0.14" 1641 | source = "registry+https://github.com/rust-lang/crates.io-index" 1642 | checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" 1643 | 1644 | [[package]] 1645 | name = "petgraph" 1646 | version = "0.6.4" 1647 | source = "registry+https://github.com/rust-lang/crates.io-index" 1648 | checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" 1649 | dependencies = [ 1650 | "fixedbitset", 1651 | "indexmap 2.2.6", 1652 | ] 1653 | 1654 | [[package]] 1655 | name = "pin-project-lite" 1656 | version = "0.2.13" 1657 | source = "registry+https://github.com/rust-lang/crates.io-index" 1658 | checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" 1659 | 1660 | [[package]] 1661 | name = "pin-utils" 1662 | version = "0.1.0" 1663 | source = "registry+https://github.com/rust-lang/crates.io-index" 1664 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1665 | 1666 | [[package]] 1667 | name = "pkg-config" 1668 | version = "0.3.30" 1669 | source = "registry+https://github.com/rust-lang/crates.io-index" 1670 | checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" 1671 | 1672 | [[package]] 1673 | name = "png" 1674 | version = "0.17.13" 1675 | source = "registry+https://github.com/rust-lang/crates.io-index" 1676 | checksum = "06e4b0d3d1312775e782c86c91a111aa1f910cbb65e1337f9975b5f9a554b5e1" 1677 | dependencies = [ 1678 | "bitflags 1.3.2", 1679 | "crc32fast", 1680 | "fdeflate", 1681 | "flate2", 1682 | "miniz_oxide", 1683 | ] 1684 | 1685 | [[package]] 1686 | name = "portable-atomic" 1687 | version = "1.11.0" 1688 | source = "registry+https://github.com/rust-lang/crates.io-index" 1689 | checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" 1690 | 1691 | [[package]] 1692 | name = "portable-atomic-util" 1693 | version = "0.2.4" 1694 | source = "registry+https://github.com/rust-lang/crates.io-index" 1695 | checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507" 1696 | dependencies = [ 1697 | "portable-atomic", 1698 | ] 1699 | 1700 | [[package]] 1701 | name = "ppv-lite86" 1702 | version = "0.2.17" 1703 | source = "registry+https://github.com/rust-lang/crates.io-index" 1704 | checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" 1705 | 1706 | [[package]] 1707 | name = "proc-macro-crate" 1708 | version = "3.1.0" 1709 | source = "registry+https://github.com/rust-lang/crates.io-index" 1710 | checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" 1711 | dependencies = [ 1712 | "toml_edit 0.21.1", 1713 | ] 1714 | 1715 | [[package]] 1716 | name = "proc-macro2" 1717 | version = "1.0.94" 1718 | source = "registry+https://github.com/rust-lang/crates.io-index" 1719 | checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84" 1720 | dependencies = [ 1721 | "unicode-ident", 1722 | ] 1723 | 1724 | [[package]] 1725 | name = "profiling" 1726 | version = "1.0.15" 1727 | source = "registry+https://github.com/rust-lang/crates.io-index" 1728 | checksum = "43d84d1d7a6ac92673717f9f6d1518374ef257669c24ebc5ac25d5033828be58" 1729 | dependencies = [ 1730 | "profiling-procmacros", 1731 | ] 1732 | 1733 | [[package]] 1734 | name = "profiling-procmacros" 1735 | version = "1.0.15" 1736 | source = "registry+https://github.com/rust-lang/crates.io-index" 1737 | checksum = "8021cf59c8ec9c432cfc2526ac6b8aa508ecaf29cd415f271b8406c1b851c3fd" 1738 | dependencies = [ 1739 | "quote", 1740 | "syn 2.0.100", 1741 | ] 1742 | 1743 | [[package]] 1744 | name = "qoi" 1745 | version = "0.4.1" 1746 | source = "registry+https://github.com/rust-lang/crates.io-index" 1747 | checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001" 1748 | dependencies = [ 1749 | "bytemuck", 1750 | ] 1751 | 1752 | [[package]] 1753 | name = "quick-error" 1754 | version = "2.0.1" 1755 | source = "registry+https://github.com/rust-lang/crates.io-index" 1756 | checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" 1757 | 1758 | [[package]] 1759 | name = "quick-xml" 1760 | version = "0.31.0" 1761 | source = "registry+https://github.com/rust-lang/crates.io-index" 1762 | checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33" 1763 | dependencies = [ 1764 | "memchr", 1765 | ] 1766 | 1767 | [[package]] 1768 | name = "quote" 1769 | version = "1.0.40" 1770 | source = "registry+https://github.com/rust-lang/crates.io-index" 1771 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" 1772 | dependencies = [ 1773 | "proc-macro2", 1774 | ] 1775 | 1776 | [[package]] 1777 | name = "r-efi" 1778 | version = "5.2.0" 1779 | source = "registry+https://github.com/rust-lang/crates.io-index" 1780 | checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" 1781 | 1782 | [[package]] 1783 | name = "rand" 1784 | version = "0.8.5" 1785 | source = "registry+https://github.com/rust-lang/crates.io-index" 1786 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 1787 | dependencies = [ 1788 | "libc", 1789 | "rand_chacha 0.3.1", 1790 | "rand_core 0.6.4", 1791 | ] 1792 | 1793 | [[package]] 1794 | name = "rand" 1795 | version = "0.9.0" 1796 | source = "registry+https://github.com/rust-lang/crates.io-index" 1797 | checksum = "3779b94aeb87e8bd4e834cee3650289ee9e0d5677f976ecdb6d219e5f4f6cd94" 1798 | dependencies = [ 1799 | "rand_chacha 0.9.0", 1800 | "rand_core 0.9.3", 1801 | "zerocopy 0.8.24", 1802 | ] 1803 | 1804 | [[package]] 1805 | name = "rand_chacha" 1806 | version = "0.3.1" 1807 | source = "registry+https://github.com/rust-lang/crates.io-index" 1808 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 1809 | dependencies = [ 1810 | "ppv-lite86", 1811 | "rand_core 0.6.4", 1812 | ] 1813 | 1814 | [[package]] 1815 | name = "rand_chacha" 1816 | version = "0.9.0" 1817 | source = "registry+https://github.com/rust-lang/crates.io-index" 1818 | checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" 1819 | dependencies = [ 1820 | "ppv-lite86", 1821 | "rand_core 0.9.3", 1822 | ] 1823 | 1824 | [[package]] 1825 | name = "rand_core" 1826 | version = "0.6.4" 1827 | source = "registry+https://github.com/rust-lang/crates.io-index" 1828 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 1829 | dependencies = [ 1830 | "getrandom 0.2.12", 1831 | ] 1832 | 1833 | [[package]] 1834 | name = "rand_core" 1835 | version = "0.9.3" 1836 | source = "registry+https://github.com/rust-lang/crates.io-index" 1837 | checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" 1838 | dependencies = [ 1839 | "getrandom 0.3.2", 1840 | ] 1841 | 1842 | [[package]] 1843 | name = "rav1e" 1844 | version = "0.7.1" 1845 | source = "registry+https://github.com/rust-lang/crates.io-index" 1846 | checksum = "cd87ce80a7665b1cce111f8a16c1f3929f6547ce91ade6addf4ec86a8dda5ce9" 1847 | dependencies = [ 1848 | "arbitrary", 1849 | "arg_enum_proc_macro", 1850 | "arrayvec", 1851 | "av1-grain", 1852 | "bitstream-io", 1853 | "built", 1854 | "cfg-if", 1855 | "interpolate_name", 1856 | "itertools 0.12.1", 1857 | "libc", 1858 | "libfuzzer-sys", 1859 | "log", 1860 | "maybe-rayon", 1861 | "new_debug_unreachable", 1862 | "noop_proc_macro", 1863 | "num-derive", 1864 | "num-traits", 1865 | "once_cell", 1866 | "paste", 1867 | "profiling", 1868 | "rand 0.8.5", 1869 | "rand_chacha 0.3.1", 1870 | "simd_helpers", 1871 | "system-deps", 1872 | "thiserror", 1873 | "v_frame", 1874 | "wasm-bindgen", 1875 | ] 1876 | 1877 | [[package]] 1878 | name = "ravif" 1879 | version = "0.11.11" 1880 | source = "registry+https://github.com/rust-lang/crates.io-index" 1881 | checksum = "2413fd96bd0ea5cdeeb37eaf446a22e6ed7b981d792828721e74ded1980a45c6" 1882 | dependencies = [ 1883 | "avif-serialize", 1884 | "imgref", 1885 | "loop9", 1886 | "quick-error", 1887 | "rav1e", 1888 | "rayon", 1889 | "rgb", 1890 | ] 1891 | 1892 | [[package]] 1893 | name = "rawler" 1894 | version = "0.6.3" 1895 | source = "git+https://github.com/dividebysandwich/dnglab#c39360c02762608135dbad1ed9960090a1254e0d" 1896 | dependencies = [ 1897 | "async-trait", 1898 | "backtrace", 1899 | "bitstream-io", 1900 | "byteorder", 1901 | "chrono", 1902 | "enumn", 1903 | "futures", 1904 | "glob", 1905 | "hex", 1906 | "image 0.24.9", 1907 | "itertools 0.13.0", 1908 | "lazy_static", 1909 | "libc", 1910 | "libflate", 1911 | "log", 1912 | "md5", 1913 | "multiversion", 1914 | "num_enum", 1915 | "rayon", 1916 | "rustc_version", 1917 | "serde", 1918 | "serde_json", 1919 | "thiserror", 1920 | "tokio", 1921 | "toml 0.8.12", 1922 | "uuid", 1923 | "weezl", 1924 | ] 1925 | 1926 | [[package]] 1927 | name = "rawpointer" 1928 | version = "0.2.1" 1929 | source = "registry+https://github.com/rust-lang/crates.io-index" 1930 | checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" 1931 | 1932 | [[package]] 1933 | name = "rayon" 1934 | version = "1.10.0" 1935 | source = "registry+https://github.com/rust-lang/crates.io-index" 1936 | checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" 1937 | dependencies = [ 1938 | "either", 1939 | "rayon-core", 1940 | ] 1941 | 1942 | [[package]] 1943 | name = "rayon-core" 1944 | version = "1.12.1" 1945 | source = "registry+https://github.com/rust-lang/crates.io-index" 1946 | checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" 1947 | dependencies = [ 1948 | "crossbeam-deque", 1949 | "crossbeam-utils", 1950 | ] 1951 | 1952 | [[package]] 1953 | name = "redox_syscall" 1954 | version = "0.4.1" 1955 | source = "registry+https://github.com/rust-lang/crates.io-index" 1956 | checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" 1957 | dependencies = [ 1958 | "bitflags 1.3.2", 1959 | ] 1960 | 1961 | [[package]] 1962 | name = "regex" 1963 | version = "1.10.4" 1964 | source = "registry+https://github.com/rust-lang/crates.io-index" 1965 | checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" 1966 | dependencies = [ 1967 | "aho-corasick", 1968 | "memchr", 1969 | "regex-automata", 1970 | "regex-syntax", 1971 | ] 1972 | 1973 | [[package]] 1974 | name = "regex-automata" 1975 | version = "0.4.6" 1976 | source = "registry+https://github.com/rust-lang/crates.io-index" 1977 | checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" 1978 | dependencies = [ 1979 | "aho-corasick", 1980 | "memchr", 1981 | "regex-syntax", 1982 | ] 1983 | 1984 | [[package]] 1985 | name = "regex-syntax" 1986 | version = "0.8.2" 1987 | source = "registry+https://github.com/rust-lang/crates.io-index" 1988 | checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" 1989 | 1990 | [[package]] 1991 | name = "rgb" 1992 | version = "0.8.50" 1993 | source = "registry+https://github.com/rust-lang/crates.io-index" 1994 | checksum = "57397d16646700483b67d2dd6511d79318f9d057fdbd21a4066aeac8b41d310a" 1995 | 1996 | [[package]] 1997 | name = "rle-decode-fast" 1998 | version = "1.0.3" 1999 | source = "registry+https://github.com/rust-lang/crates.io-index" 2000 | checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422" 2001 | 2002 | [[package]] 2003 | name = "rustc-demangle" 2004 | version = "0.1.23" 2005 | source = "registry+https://github.com/rust-lang/crates.io-index" 2006 | checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" 2007 | 2008 | [[package]] 2009 | name = "rustc_version" 2010 | version = "0.4.0" 2011 | source = "registry+https://github.com/rust-lang/crates.io-index" 2012 | checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" 2013 | dependencies = [ 2014 | "semver", 2015 | ] 2016 | 2017 | [[package]] 2018 | name = "rustix" 2019 | version = "0.38.32" 2020 | source = "registry+https://github.com/rust-lang/crates.io-index" 2021 | checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" 2022 | dependencies = [ 2023 | "bitflags 2.5.0", 2024 | "errno", 2025 | "libc", 2026 | "linux-raw-sys", 2027 | "windows-sys 0.52.0", 2028 | ] 2029 | 2030 | [[package]] 2031 | name = "rustronomy-core" 2032 | version = "0.1.0" 2033 | source = "registry+https://github.com/rust-lang/crates.io-index" 2034 | checksum = "a46e1f0eaaf9b5e9806e123b98086ce1a2d11e222885e824d865578e2196d3be" 2035 | dependencies = [ 2036 | "byteorder", 2037 | ] 2038 | 2039 | [[package]] 2040 | name = "rustronomy-fits" 2041 | version = "0.2.0" 2042 | source = "registry+https://github.com/rust-lang/crates.io-index" 2043 | checksum = "3e7fe02ad6d4f9af22b64d753d3e05e46151025a2bd8d9444646c19da608848c" 2044 | dependencies = [ 2045 | "chrono", 2046 | "dyn-clone", 2047 | "indexmap 1.9.3", 2048 | "ndarray", 2049 | "num-traits", 2050 | "rayon", 2051 | "rustronomy-core", 2052 | ] 2053 | 2054 | [[package]] 2055 | name = "ryu" 2056 | version = "1.0.17" 2057 | source = "registry+https://github.com/rust-lang/crates.io-index" 2058 | checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" 2059 | 2060 | [[package]] 2061 | name = "scoped-tls" 2062 | version = "1.0.1" 2063 | source = "registry+https://github.com/rust-lang/crates.io-index" 2064 | checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" 2065 | 2066 | [[package]] 2067 | name = "scopeguard" 2068 | version = "1.2.0" 2069 | source = "registry+https://github.com/rust-lang/crates.io-index" 2070 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 2071 | 2072 | [[package]] 2073 | name = "semver" 2074 | version = "1.0.22" 2075 | source = "registry+https://github.com/rust-lang/crates.io-index" 2076 | checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" 2077 | 2078 | [[package]] 2079 | name = "serde" 2080 | version = "1.0.219" 2081 | source = "registry+https://github.com/rust-lang/crates.io-index" 2082 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" 2083 | dependencies = [ 2084 | "serde_derive", 2085 | ] 2086 | 2087 | [[package]] 2088 | name = "serde_derive" 2089 | version = "1.0.219" 2090 | source = "registry+https://github.com/rust-lang/crates.io-index" 2091 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 2092 | dependencies = [ 2093 | "proc-macro2", 2094 | "quote", 2095 | "syn 2.0.100", 2096 | ] 2097 | 2098 | [[package]] 2099 | name = "serde_json" 2100 | version = "1.0.115" 2101 | source = "registry+https://github.com/rust-lang/crates.io-index" 2102 | checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" 2103 | dependencies = [ 2104 | "itoa", 2105 | "ryu", 2106 | "serde", 2107 | ] 2108 | 2109 | [[package]] 2110 | name = "serde_spanned" 2111 | version = "0.6.5" 2112 | source = "registry+https://github.com/rust-lang/crates.io-index" 2113 | checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" 2114 | dependencies = [ 2115 | "serde", 2116 | ] 2117 | 2118 | [[package]] 2119 | name = "serde_yaml" 2120 | version = "0.8.26" 2121 | source = "registry+https://github.com/rust-lang/crates.io-index" 2122 | checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b" 2123 | dependencies = [ 2124 | "indexmap 1.9.3", 2125 | "ryu", 2126 | "serde", 2127 | "yaml-rust", 2128 | ] 2129 | 2130 | [[package]] 2131 | name = "signal-hook-registry" 2132 | version = "1.4.1" 2133 | source = "registry+https://github.com/rust-lang/crates.io-index" 2134 | checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" 2135 | dependencies = [ 2136 | "libc", 2137 | ] 2138 | 2139 | [[package]] 2140 | name = "simd-adler32" 2141 | version = "0.3.7" 2142 | source = "registry+https://github.com/rust-lang/crates.io-index" 2143 | checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" 2144 | 2145 | [[package]] 2146 | name = "simd_helpers" 2147 | version = "0.1.0" 2148 | source = "registry+https://github.com/rust-lang/crates.io-index" 2149 | checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6" 2150 | dependencies = [ 2151 | "quote", 2152 | ] 2153 | 2154 | [[package]] 2155 | name = "slab" 2156 | version = "0.4.9" 2157 | source = "registry+https://github.com/rust-lang/crates.io-index" 2158 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 2159 | dependencies = [ 2160 | "autocfg", 2161 | ] 2162 | 2163 | [[package]] 2164 | name = "smallvec" 2165 | version = "1.13.2" 2166 | source = "registry+https://github.com/rust-lang/crates.io-index" 2167 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" 2168 | 2169 | [[package]] 2170 | name = "socket2" 2171 | version = "0.5.6" 2172 | source = "registry+https://github.com/rust-lang/crates.io-index" 2173 | checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" 2174 | dependencies = [ 2175 | "libc", 2176 | "windows-sys 0.52.0", 2177 | ] 2178 | 2179 | [[package]] 2180 | name = "spin" 2181 | version = "0.9.8" 2182 | source = "registry+https://github.com/rust-lang/crates.io-index" 2183 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 2184 | dependencies = [ 2185 | "lock_api", 2186 | ] 2187 | 2188 | [[package]] 2189 | name = "syn" 2190 | version = "1.0.109" 2191 | source = "registry+https://github.com/rust-lang/crates.io-index" 2192 | checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 2193 | dependencies = [ 2194 | "proc-macro2", 2195 | "quote", 2196 | "unicode-ident", 2197 | ] 2198 | 2199 | [[package]] 2200 | name = "syn" 2201 | version = "2.0.100" 2202 | source = "registry+https://github.com/rust-lang/crates.io-index" 2203 | checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0" 2204 | dependencies = [ 2205 | "proc-macro2", 2206 | "quote", 2207 | "unicode-ident", 2208 | ] 2209 | 2210 | [[package]] 2211 | name = "system-deps" 2212 | version = "6.2.2" 2213 | source = "registry+https://github.com/rust-lang/crates.io-index" 2214 | checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" 2215 | dependencies = [ 2216 | "cfg-expr", 2217 | "heck", 2218 | "pkg-config", 2219 | "toml 0.8.12", 2220 | "version-compare", 2221 | ] 2222 | 2223 | [[package]] 2224 | name = "target-features" 2225 | version = "0.1.6" 2226 | source = "registry+https://github.com/rust-lang/crates.io-index" 2227 | checksum = "c1bbb9f3c5c463a01705937a24fdabc5047929ac764b2d5b9cf681c1f5041ed5" 2228 | 2229 | [[package]] 2230 | name = "target-lexicon" 2231 | version = "0.12.14" 2232 | source = "registry+https://github.com/rust-lang/crates.io-index" 2233 | checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" 2234 | 2235 | [[package]] 2236 | name = "tempfile" 2237 | version = "3.10.1" 2238 | source = "registry+https://github.com/rust-lang/crates.io-index" 2239 | checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" 2240 | dependencies = [ 2241 | "cfg-if", 2242 | "fastrand", 2243 | "rustix", 2244 | "windows-sys 0.52.0", 2245 | ] 2246 | 2247 | [[package]] 2248 | name = "thiserror" 2249 | version = "1.0.58" 2250 | source = "registry+https://github.com/rust-lang/crates.io-index" 2251 | checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" 2252 | dependencies = [ 2253 | "thiserror-impl", 2254 | ] 2255 | 2256 | [[package]] 2257 | name = "thiserror-impl" 2258 | version = "1.0.58" 2259 | source = "registry+https://github.com/rust-lang/crates.io-index" 2260 | checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" 2261 | dependencies = [ 2262 | "proc-macro2", 2263 | "quote", 2264 | "syn 2.0.100", 2265 | ] 2266 | 2267 | [[package]] 2268 | name = "tiff" 2269 | version = "0.9.1" 2270 | source = "registry+https://github.com/rust-lang/crates.io-index" 2271 | checksum = "ba1310fcea54c6a9a4fd1aad794ecc02c31682f6bfbecdf460bf19533eed1e3e" 2272 | dependencies = [ 2273 | "flate2", 2274 | "jpeg-decoder", 2275 | "weezl", 2276 | ] 2277 | 2278 | [[package]] 2279 | name = "tokio" 2280 | version = "1.36.0" 2281 | source = "registry+https://github.com/rust-lang/crates.io-index" 2282 | checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" 2283 | dependencies = [ 2284 | "backtrace", 2285 | "bytes", 2286 | "libc", 2287 | "mio", 2288 | "num_cpus", 2289 | "parking_lot", 2290 | "pin-project-lite", 2291 | "signal-hook-registry", 2292 | "socket2", 2293 | "tokio-macros", 2294 | "windows-sys 0.48.0", 2295 | ] 2296 | 2297 | [[package]] 2298 | name = "tokio-macros" 2299 | version = "2.2.0" 2300 | source = "registry+https://github.com/rust-lang/crates.io-index" 2301 | checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" 2302 | dependencies = [ 2303 | "proc-macro2", 2304 | "quote", 2305 | "syn 2.0.100", 2306 | ] 2307 | 2308 | [[package]] 2309 | name = "toml" 2310 | version = "0.5.11" 2311 | source = "registry+https://github.com/rust-lang/crates.io-index" 2312 | checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" 2313 | dependencies = [ 2314 | "serde", 2315 | ] 2316 | 2317 | [[package]] 2318 | name = "toml" 2319 | version = "0.8.12" 2320 | source = "registry+https://github.com/rust-lang/crates.io-index" 2321 | checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" 2322 | dependencies = [ 2323 | "serde", 2324 | "serde_spanned", 2325 | "toml_datetime", 2326 | "toml_edit 0.22.9", 2327 | ] 2328 | 2329 | [[package]] 2330 | name = "toml_datetime" 2331 | version = "0.6.5" 2332 | source = "registry+https://github.com/rust-lang/crates.io-index" 2333 | checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" 2334 | dependencies = [ 2335 | "serde", 2336 | ] 2337 | 2338 | [[package]] 2339 | name = "toml_edit" 2340 | version = "0.21.1" 2341 | source = "registry+https://github.com/rust-lang/crates.io-index" 2342 | checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" 2343 | dependencies = [ 2344 | "indexmap 2.2.6", 2345 | "toml_datetime", 2346 | "winnow 0.5.40", 2347 | ] 2348 | 2349 | [[package]] 2350 | name = "toml_edit" 2351 | version = "0.22.9" 2352 | source = "registry+https://github.com/rust-lang/crates.io-index" 2353 | checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" 2354 | dependencies = [ 2355 | "indexmap 2.2.6", 2356 | "serde", 2357 | "serde_spanned", 2358 | "toml_datetime", 2359 | "winnow 0.6.5", 2360 | ] 2361 | 2362 | [[package]] 2363 | name = "tree_magic_mini" 2364 | version = "3.1.5" 2365 | source = "registry+https://github.com/rust-lang/crates.io-index" 2366 | checksum = "469a727cac55b41448315cc10427c069c618ac59bb6a4480283fcd811749bdc2" 2367 | dependencies = [ 2368 | "fnv", 2369 | "home", 2370 | "memchr", 2371 | "nom", 2372 | "once_cell", 2373 | "petgraph", 2374 | ] 2375 | 2376 | [[package]] 2377 | name = "ttf-parser" 2378 | version = "0.25.0" 2379 | source = "registry+https://github.com/rust-lang/crates.io-index" 2380 | checksum = "5902c5d130972a0000f60860bfbf46f7ca3db5391eddfedd1b8728bd9dc96c0e" 2381 | 2382 | [[package]] 2383 | name = "unicode-ident" 2384 | version = "1.0.12" 2385 | source = "registry+https://github.com/rust-lang/crates.io-index" 2386 | checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" 2387 | 2388 | [[package]] 2389 | name = "unicode-xid" 2390 | version = "0.2.4" 2391 | source = "registry+https://github.com/rust-lang/crates.io-index" 2392 | checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" 2393 | 2394 | [[package]] 2395 | name = "utf8parse" 2396 | version = "0.2.1" 2397 | source = "registry+https://github.com/rust-lang/crates.io-index" 2398 | checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" 2399 | 2400 | [[package]] 2401 | name = "uuid" 2402 | version = "1.8.0" 2403 | source = "registry+https://github.com/rust-lang/crates.io-index" 2404 | checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" 2405 | dependencies = [ 2406 | "getrandom 0.2.12", 2407 | "serde", 2408 | ] 2409 | 2410 | [[package]] 2411 | name = "v_frame" 2412 | version = "0.3.8" 2413 | source = "registry+https://github.com/rust-lang/crates.io-index" 2414 | checksum = "d6f32aaa24bacd11e488aa9ba66369c7cd514885742c9fe08cfe85884db3e92b" 2415 | dependencies = [ 2416 | "aligned-vec", 2417 | "num-traits", 2418 | "wasm-bindgen", 2419 | ] 2420 | 2421 | [[package]] 2422 | name = "version-compare" 2423 | version = "0.2.0" 2424 | source = "registry+https://github.com/rust-lang/crates.io-index" 2425 | checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b" 2426 | 2427 | [[package]] 2428 | name = "version_check" 2429 | version = "0.9.4" 2430 | source = "registry+https://github.com/rust-lang/crates.io-index" 2431 | checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 2432 | 2433 | [[package]] 2434 | name = "wasi" 2435 | version = "0.11.0+wasi-snapshot-preview1" 2436 | source = "registry+https://github.com/rust-lang/crates.io-index" 2437 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 2438 | 2439 | [[package]] 2440 | name = "wasi" 2441 | version = "0.14.2+wasi-0.2.4" 2442 | source = "registry+https://github.com/rust-lang/crates.io-index" 2443 | checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" 2444 | dependencies = [ 2445 | "wit-bindgen-rt", 2446 | ] 2447 | 2448 | [[package]] 2449 | name = "wasm-bindgen" 2450 | version = "0.2.92" 2451 | source = "registry+https://github.com/rust-lang/crates.io-index" 2452 | checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" 2453 | dependencies = [ 2454 | "cfg-if", 2455 | "wasm-bindgen-macro", 2456 | ] 2457 | 2458 | [[package]] 2459 | name = "wasm-bindgen-backend" 2460 | version = "0.2.92" 2461 | source = "registry+https://github.com/rust-lang/crates.io-index" 2462 | checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" 2463 | dependencies = [ 2464 | "bumpalo", 2465 | "log", 2466 | "once_cell", 2467 | "proc-macro2", 2468 | "quote", 2469 | "syn 2.0.100", 2470 | "wasm-bindgen-shared", 2471 | ] 2472 | 2473 | [[package]] 2474 | name = "wasm-bindgen-macro" 2475 | version = "0.2.92" 2476 | source = "registry+https://github.com/rust-lang/crates.io-index" 2477 | checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" 2478 | dependencies = [ 2479 | "quote", 2480 | "wasm-bindgen-macro-support", 2481 | ] 2482 | 2483 | [[package]] 2484 | name = "wasm-bindgen-macro-support" 2485 | version = "0.2.92" 2486 | source = "registry+https://github.com/rust-lang/crates.io-index" 2487 | checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" 2488 | dependencies = [ 2489 | "proc-macro2", 2490 | "quote", 2491 | "syn 2.0.100", 2492 | "wasm-bindgen-backend", 2493 | "wasm-bindgen-shared", 2494 | ] 2495 | 2496 | [[package]] 2497 | name = "wasm-bindgen-shared" 2498 | version = "0.2.92" 2499 | source = "registry+https://github.com/rust-lang/crates.io-index" 2500 | checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" 2501 | 2502 | [[package]] 2503 | name = "wayland-backend" 2504 | version = "0.3.4" 2505 | source = "registry+https://github.com/rust-lang/crates.io-index" 2506 | checksum = "34e9e6b6d4a2bb4e7e69433e0b35c7923b95d4dc8503a84d25ec917a4bbfdf07" 2507 | dependencies = [ 2508 | "cc", 2509 | "downcast-rs", 2510 | "rustix", 2511 | "scoped-tls", 2512 | "smallvec", 2513 | "wayland-sys", 2514 | ] 2515 | 2516 | [[package]] 2517 | name = "wayland-client" 2518 | version = "0.31.2" 2519 | source = "registry+https://github.com/rust-lang/crates.io-index" 2520 | checksum = "82fb96ee935c2cea6668ccb470fb7771f6215d1691746c2d896b447a00ad3f1f" 2521 | dependencies = [ 2522 | "bitflags 2.5.0", 2523 | "rustix", 2524 | "wayland-backend", 2525 | "wayland-scanner", 2526 | ] 2527 | 2528 | [[package]] 2529 | name = "wayland-protocols" 2530 | version = "0.31.2" 2531 | source = "registry+https://github.com/rust-lang/crates.io-index" 2532 | checksum = "8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4" 2533 | dependencies = [ 2534 | "bitflags 2.5.0", 2535 | "wayland-backend", 2536 | "wayland-client", 2537 | "wayland-scanner", 2538 | ] 2539 | 2540 | [[package]] 2541 | name = "wayland-protocols-wlr" 2542 | version = "0.2.0" 2543 | source = "registry+https://github.com/rust-lang/crates.io-index" 2544 | checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6" 2545 | dependencies = [ 2546 | "bitflags 2.5.0", 2547 | "wayland-backend", 2548 | "wayland-client", 2549 | "wayland-protocols", 2550 | "wayland-scanner", 2551 | ] 2552 | 2553 | [[package]] 2554 | name = "wayland-scanner" 2555 | version = "0.31.1" 2556 | source = "registry+https://github.com/rust-lang/crates.io-index" 2557 | checksum = "63b3a62929287001986fb58c789dce9b67604a397c15c611ad9f747300b6c283" 2558 | dependencies = [ 2559 | "proc-macro2", 2560 | "quick-xml", 2561 | "quote", 2562 | ] 2563 | 2564 | [[package]] 2565 | name = "wayland-sys" 2566 | version = "0.31.2" 2567 | source = "registry+https://github.com/rust-lang/crates.io-index" 2568 | checksum = "105b1842da6554f91526c14a2a2172897b7f745a805d62af4ce698706be79c12" 2569 | dependencies = [ 2570 | "dlib", 2571 | "log", 2572 | "pkg-config", 2573 | ] 2574 | 2575 | [[package]] 2576 | name = "weezl" 2577 | version = "0.1.8" 2578 | source = "registry+https://github.com/rust-lang/crates.io-index" 2579 | checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082" 2580 | 2581 | [[package]] 2582 | name = "windows" 2583 | version = "0.61.1" 2584 | source = "registry+https://github.com/rust-lang/crates.io-index" 2585 | checksum = "c5ee8f3d025738cb02bad7868bbb5f8a6327501e870bf51f1b455b0a2454a419" 2586 | dependencies = [ 2587 | "windows-collections", 2588 | "windows-core 0.61.0", 2589 | "windows-future", 2590 | "windows-link", 2591 | "windows-numerics", 2592 | ] 2593 | 2594 | [[package]] 2595 | name = "windows-collections" 2596 | version = "0.2.0" 2597 | source = "registry+https://github.com/rust-lang/crates.io-index" 2598 | checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" 2599 | dependencies = [ 2600 | "windows-core 0.61.0", 2601 | ] 2602 | 2603 | [[package]] 2604 | name = "windows-core" 2605 | version = "0.52.0" 2606 | source = "registry+https://github.com/rust-lang/crates.io-index" 2607 | checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" 2608 | dependencies = [ 2609 | "windows-targets 0.52.6", 2610 | ] 2611 | 2612 | [[package]] 2613 | name = "windows-core" 2614 | version = "0.61.0" 2615 | source = "registry+https://github.com/rust-lang/crates.io-index" 2616 | checksum = "4763c1de310c86d75a878046489e2e5ba02c649d185f21c67d4cf8a56d098980" 2617 | dependencies = [ 2618 | "windows-implement", 2619 | "windows-interface", 2620 | "windows-link", 2621 | "windows-result", 2622 | "windows-strings", 2623 | ] 2624 | 2625 | [[package]] 2626 | name = "windows-future" 2627 | version = "0.2.0" 2628 | source = "registry+https://github.com/rust-lang/crates.io-index" 2629 | checksum = "7a1d6bbefcb7b60acd19828e1bc965da6fcf18a7e39490c5f8be71e54a19ba32" 2630 | dependencies = [ 2631 | "windows-core 0.61.0", 2632 | "windows-link", 2633 | ] 2634 | 2635 | [[package]] 2636 | name = "windows-implement" 2637 | version = "0.60.0" 2638 | source = "registry+https://github.com/rust-lang/crates.io-index" 2639 | checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" 2640 | dependencies = [ 2641 | "proc-macro2", 2642 | "quote", 2643 | "syn 2.0.100", 2644 | ] 2645 | 2646 | [[package]] 2647 | name = "windows-interface" 2648 | version = "0.59.1" 2649 | source = "registry+https://github.com/rust-lang/crates.io-index" 2650 | checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" 2651 | dependencies = [ 2652 | "proc-macro2", 2653 | "quote", 2654 | "syn 2.0.100", 2655 | ] 2656 | 2657 | [[package]] 2658 | name = "windows-link" 2659 | version = "0.1.1" 2660 | source = "registry+https://github.com/rust-lang/crates.io-index" 2661 | checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" 2662 | 2663 | [[package]] 2664 | name = "windows-numerics" 2665 | version = "0.2.0" 2666 | source = "registry+https://github.com/rust-lang/crates.io-index" 2667 | checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" 2668 | dependencies = [ 2669 | "windows-core 0.61.0", 2670 | "windows-link", 2671 | ] 2672 | 2673 | [[package]] 2674 | name = "windows-result" 2675 | version = "0.3.2" 2676 | source = "registry+https://github.com/rust-lang/crates.io-index" 2677 | checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252" 2678 | dependencies = [ 2679 | "windows-link", 2680 | ] 2681 | 2682 | [[package]] 2683 | name = "windows-strings" 2684 | version = "0.4.0" 2685 | source = "registry+https://github.com/rust-lang/crates.io-index" 2686 | checksum = "7a2ba9642430ee452d5a7aa78d72907ebe8cfda358e8cb7918a2050581322f97" 2687 | dependencies = [ 2688 | "windows-link", 2689 | ] 2690 | 2691 | [[package]] 2692 | name = "windows-sys" 2693 | version = "0.48.0" 2694 | source = "registry+https://github.com/rust-lang/crates.io-index" 2695 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 2696 | dependencies = [ 2697 | "windows-targets 0.48.5", 2698 | ] 2699 | 2700 | [[package]] 2701 | name = "windows-sys" 2702 | version = "0.52.0" 2703 | source = "registry+https://github.com/rust-lang/crates.io-index" 2704 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 2705 | dependencies = [ 2706 | "windows-targets 0.52.6", 2707 | ] 2708 | 2709 | [[package]] 2710 | name = "windows-sys" 2711 | version = "0.59.0" 2712 | source = "registry+https://github.com/rust-lang/crates.io-index" 2713 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 2714 | dependencies = [ 2715 | "windows-targets 0.52.6", 2716 | ] 2717 | 2718 | [[package]] 2719 | name = "windows-targets" 2720 | version = "0.48.5" 2721 | source = "registry+https://github.com/rust-lang/crates.io-index" 2722 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 2723 | dependencies = [ 2724 | "windows_aarch64_gnullvm 0.48.5", 2725 | "windows_aarch64_msvc 0.48.5", 2726 | "windows_i686_gnu 0.48.5", 2727 | "windows_i686_msvc 0.48.5", 2728 | "windows_x86_64_gnu 0.48.5", 2729 | "windows_x86_64_gnullvm 0.48.5", 2730 | "windows_x86_64_msvc 0.48.5", 2731 | ] 2732 | 2733 | [[package]] 2734 | name = "windows-targets" 2735 | version = "0.52.6" 2736 | source = "registry+https://github.com/rust-lang/crates.io-index" 2737 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 2738 | dependencies = [ 2739 | "windows_aarch64_gnullvm 0.52.6", 2740 | "windows_aarch64_msvc 0.52.6", 2741 | "windows_i686_gnu 0.52.6", 2742 | "windows_i686_gnullvm", 2743 | "windows_i686_msvc 0.52.6", 2744 | "windows_x86_64_gnu 0.52.6", 2745 | "windows_x86_64_gnullvm 0.52.6", 2746 | "windows_x86_64_msvc 0.52.6", 2747 | ] 2748 | 2749 | [[package]] 2750 | name = "windows_aarch64_gnullvm" 2751 | version = "0.48.5" 2752 | source = "registry+https://github.com/rust-lang/crates.io-index" 2753 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 2754 | 2755 | [[package]] 2756 | name = "windows_aarch64_gnullvm" 2757 | version = "0.52.6" 2758 | source = "registry+https://github.com/rust-lang/crates.io-index" 2759 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 2760 | 2761 | [[package]] 2762 | name = "windows_aarch64_msvc" 2763 | version = "0.48.5" 2764 | source = "registry+https://github.com/rust-lang/crates.io-index" 2765 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 2766 | 2767 | [[package]] 2768 | name = "windows_aarch64_msvc" 2769 | version = "0.52.6" 2770 | source = "registry+https://github.com/rust-lang/crates.io-index" 2771 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 2772 | 2773 | [[package]] 2774 | name = "windows_i686_gnu" 2775 | version = "0.48.5" 2776 | source = "registry+https://github.com/rust-lang/crates.io-index" 2777 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 2778 | 2779 | [[package]] 2780 | name = "windows_i686_gnu" 2781 | version = "0.52.6" 2782 | source = "registry+https://github.com/rust-lang/crates.io-index" 2783 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 2784 | 2785 | [[package]] 2786 | name = "windows_i686_gnullvm" 2787 | version = "0.52.6" 2788 | source = "registry+https://github.com/rust-lang/crates.io-index" 2789 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 2790 | 2791 | [[package]] 2792 | name = "windows_i686_msvc" 2793 | version = "0.48.5" 2794 | source = "registry+https://github.com/rust-lang/crates.io-index" 2795 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 2796 | 2797 | [[package]] 2798 | name = "windows_i686_msvc" 2799 | version = "0.52.6" 2800 | source = "registry+https://github.com/rust-lang/crates.io-index" 2801 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 2802 | 2803 | [[package]] 2804 | name = "windows_x86_64_gnu" 2805 | version = "0.48.5" 2806 | source = "registry+https://github.com/rust-lang/crates.io-index" 2807 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 2808 | 2809 | [[package]] 2810 | name = "windows_x86_64_gnu" 2811 | version = "0.52.6" 2812 | source = "registry+https://github.com/rust-lang/crates.io-index" 2813 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 2814 | 2815 | [[package]] 2816 | name = "windows_x86_64_gnullvm" 2817 | version = "0.48.5" 2818 | source = "registry+https://github.com/rust-lang/crates.io-index" 2819 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 2820 | 2821 | [[package]] 2822 | name = "windows_x86_64_gnullvm" 2823 | version = "0.52.6" 2824 | source = "registry+https://github.com/rust-lang/crates.io-index" 2825 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 2826 | 2827 | [[package]] 2828 | name = "windows_x86_64_msvc" 2829 | version = "0.48.5" 2830 | source = "registry+https://github.com/rust-lang/crates.io-index" 2831 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 2832 | 2833 | [[package]] 2834 | name = "windows_x86_64_msvc" 2835 | version = "0.52.6" 2836 | source = "registry+https://github.com/rust-lang/crates.io-index" 2837 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 2838 | 2839 | [[package]] 2840 | name = "winnow" 2841 | version = "0.5.40" 2842 | source = "registry+https://github.com/rust-lang/crates.io-index" 2843 | checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" 2844 | dependencies = [ 2845 | "memchr", 2846 | ] 2847 | 2848 | [[package]] 2849 | name = "winnow" 2850 | version = "0.6.5" 2851 | source = "registry+https://github.com/rust-lang/crates.io-index" 2852 | checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" 2853 | dependencies = [ 2854 | "memchr", 2855 | ] 2856 | 2857 | [[package]] 2858 | name = "winreg" 2859 | version = "0.55.0" 2860 | source = "registry+https://github.com/rust-lang/crates.io-index" 2861 | checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" 2862 | dependencies = [ 2863 | "cfg-if", 2864 | "windows-sys 0.59.0", 2865 | ] 2866 | 2867 | [[package]] 2868 | name = "winres" 2869 | version = "0.1.12" 2870 | source = "registry+https://github.com/rust-lang/crates.io-index" 2871 | checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c" 2872 | dependencies = [ 2873 | "toml 0.5.11", 2874 | ] 2875 | 2876 | [[package]] 2877 | name = "wit-bindgen-rt" 2878 | version = "0.39.0" 2879 | source = "registry+https://github.com/rust-lang/crates.io-index" 2880 | checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" 2881 | dependencies = [ 2882 | "bitflags 2.5.0", 2883 | ] 2884 | 2885 | [[package]] 2886 | name = "wl-clipboard-rs" 2887 | version = "0.8.1" 2888 | source = "registry+https://github.com/rust-lang/crates.io-index" 2889 | checksum = "12b41773911497b18ca8553c3daaf8ec9fe9819caf93d451d3055f69de028adb" 2890 | dependencies = [ 2891 | "derive-new", 2892 | "libc", 2893 | "log", 2894 | "nix", 2895 | "os_pipe", 2896 | "tempfile", 2897 | "thiserror", 2898 | "tree_magic_mini", 2899 | "wayland-backend", 2900 | "wayland-client", 2901 | "wayland-protocols", 2902 | "wayland-protocols-wlr", 2903 | ] 2904 | 2905 | [[package]] 2906 | name = "x11rb" 2907 | version = "0.13.0" 2908 | source = "registry+https://github.com/rust-lang/crates.io-index" 2909 | checksum = "f8f25ead8c7e4cba123243a6367da5d3990e0d3affa708ea19dce96356bd9f1a" 2910 | dependencies = [ 2911 | "gethostname", 2912 | "rustix", 2913 | "x11rb-protocol", 2914 | ] 2915 | 2916 | [[package]] 2917 | name = "x11rb-protocol" 2918 | version = "0.13.0" 2919 | source = "registry+https://github.com/rust-lang/crates.io-index" 2920 | checksum = "e63e71c4b8bd9ffec2c963173a4dc4cbde9ee96961d4fcb4429db9929b606c34" 2921 | 2922 | [[package]] 2923 | name = "yaml-rust" 2924 | version = "0.4.5" 2925 | source = "registry+https://github.com/rust-lang/crates.io-index" 2926 | checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" 2927 | dependencies = [ 2928 | "linked-hash-map", 2929 | ] 2930 | 2931 | [[package]] 2932 | name = "zerocopy" 2933 | version = "0.7.32" 2934 | source = "registry+https://github.com/rust-lang/crates.io-index" 2935 | checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" 2936 | dependencies = [ 2937 | "zerocopy-derive 0.7.32", 2938 | ] 2939 | 2940 | [[package]] 2941 | name = "zerocopy" 2942 | version = "0.8.24" 2943 | source = "registry+https://github.com/rust-lang/crates.io-index" 2944 | checksum = "2586fea28e186957ef732a5f8b3be2da217d65c5969d4b1e17f973ebbe876879" 2945 | dependencies = [ 2946 | "zerocopy-derive 0.8.24", 2947 | ] 2948 | 2949 | [[package]] 2950 | name = "zerocopy-derive" 2951 | version = "0.7.32" 2952 | source = "registry+https://github.com/rust-lang/crates.io-index" 2953 | checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" 2954 | dependencies = [ 2955 | "proc-macro2", 2956 | "quote", 2957 | "syn 2.0.100", 2958 | ] 2959 | 2960 | [[package]] 2961 | name = "zerocopy-derive" 2962 | version = "0.8.24" 2963 | source = "registry+https://github.com/rust-lang/crates.io-index" 2964 | checksum = "a996a8f63c5c4448cd959ac1bab0aaa3306ccfd060472f85943ee0750f0169be" 2965 | dependencies = [ 2966 | "proc-macro2", 2967 | "quote", 2968 | "syn 2.0.100", 2969 | ] 2970 | 2971 | [[package]] 2972 | name = "zune-core" 2973 | version = "0.4.12" 2974 | source = "registry+https://github.com/rust-lang/crates.io-index" 2975 | checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a" 2976 | 2977 | [[package]] 2978 | name = "zune-inflate" 2979 | version = "0.2.54" 2980 | source = "registry+https://github.com/rust-lang/crates.io-index" 2981 | checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02" 2982 | dependencies = [ 2983 | "simd-adler32", 2984 | ] 2985 | 2986 | [[package]] 2987 | name = "zune-jpeg" 2988 | version = "0.4.13" 2989 | source = "registry+https://github.com/rust-lang/crates.io-index" 2990 | checksum = "16099418600b4d8f028622f73ff6e3deaabdff330fb9a2a131dea781ee8b0768" 2991 | dependencies = [ 2992 | "zune-core", 2993 | ] 2994 | 2995 | [[patch.unused]] 2996 | name = "fltk" 2997 | version = "1.4.27" 2998 | source = "git+https://github.com/fltk-rs/fltk-rs#7a0b2aca8d0ae77fdbc9004333a820f58b59e806" 2999 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "lightningview" 3 | description = "A fast image viewer that supports a wide range of image formats." 4 | version = "1.8.0" 5 | edition = "2024" 6 | build = "build.rs" 7 | authors = ["The LightningView developers"] 8 | repository = "https://github.com/dividebysandwich/LightningView" 9 | 10 | [dependencies] 11 | const_format = "0.2.34" 12 | fltk ={ version = "1.5.5", features = ["fltk-bundled"] } 13 | image = "0.25.6" 14 | rand = "0.9.0" 15 | log = "0.4.27" 16 | env_logger = "0.11.7" 17 | arboard = { version = "3.4.1", features = ["wayland-data-control"] } 18 | rustronomy-fits = "0.2.0" 19 | ndarray = "0.15" 20 | rawler = { git = "https://github.com/dividebysandwich/dnglab" } 21 | imagepipe = { git = "https://github.com/dividebysandwich/imagepipe" } 22 | 23 | [patch.crates-io] 24 | fltk = { git = "https://github.com/fltk-rs/fltk-rs" } 25 | 26 | [target.'cfg(windows)'.dependencies] 27 | windows = { version = "0.61.1", features = ["Win32_UI_Shell"]} 28 | winreg = "0.55.0" 29 | 30 | [target.'cfg(windows)'.build-dependencies] 31 | winres = "0.1.12" 32 | windows = "0.61.1" 33 | 34 | [package.metadata.bundle] 35 | name = "LightningView" 36 | identifier = "com.lightningview" 37 | version = "1.8.0" 38 | icon = ["logo_256.png"] 39 | copyright = "2024, the LightningView developers" 40 | category = "Graphics and Design" 41 | short_description = "A fast image viewer" 42 | long_description = "LightningView is a fast image viewer that supports a wide range of image formats. It is designed to be fast and responsive, with a minimal interface that gets out of your way. LightningView is perfect for quickly viewing and sorting through large collections of images." 43 | linux_exec_args = "%f" 44 | linux_mime_types = [ 45 | "image/jpeg", 46 | "image/jpg", 47 | "image/pjpeg", 48 | "image/png", 49 | "image/apng", 50 | "image/gif", 51 | "image/webp", 52 | "image/tiff", 53 | "image/bmp", 54 | "image/avif", 55 | "image/svg+xml", 56 | "image/svg", 57 | "image/x-png", 58 | "image/x-tga", 59 | "image/x-targa", 60 | "image/x-bmp", 61 | "image/vnd.microsoft.icon", 62 | "image/vnd.radiance", 63 | "image/x‑portable‑bitmap", 64 | "image/x‑portable‑graymap", 65 | "image/x‑portable‑pixmap", 66 | "image/x‑portable‑anymap", 67 | "image/x-sony-arw", 68 | "image/x-canon-cr2", 69 | "image/x-canon-crw", 70 | "image/x-kodak-dcr", 71 | "image/x-adobe-dng", 72 | "image/x-epson-erf", 73 | "image/x-kodak-k25", 74 | "image/x-kodak-kdc", 75 | "image/x-minolta-mrw", 76 | "image/x-nikon-nef", 77 | "image/x-olympus-orf", 78 | "image/x-pentax-pef", 79 | "image/x-fuji-raf", 80 | "image/x-panasonic-raw", 81 | "image/x-sony-sr2", 82 | "image/x-sony-srf", 83 | "image/x-sigma-x3f", 84 | "image/x-samsung-srw", 85 | "image/x-panasonic-rw2", 86 | "application/fits" 87 | ] 88 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /Logo_big.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividebysandwich/LightningView/bcd9585b1252a0268dd50d116c40f4bbf54324de/Logo_big.xcf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Logo](https://raw.githubusercontent.com/dividebysandwich/LightningView/main/lightningview.png) 2 | 3 | # LightningView Image Viewer and Browser 4 | A lightning-fast cross-platform image viewer written in Rust 5 | 6 | This is a very slim image viewer that aims to replicate the most important functions found in commercial software like ACDSee. 7 | 8 | ## Core Design goals 9 | 10 | * Lightweight 11 | * Cross Platform 12 | * Common image format support 13 | * RAW file support for popular cameras 14 | * Browsing through the current directory with arrow keys 15 | * Pan/Zoom with the mouse 16 | * Basic file operations such as deletion 17 | * Quick way to start the default image editor (planned) 18 | 19 | ## Non-goals 20 | 21 | * Any form of image modification 22 | * File format conversion 23 | * Plugin system 24 | 25 | ## Command Line Parameters 26 | 27 | To start viewing images: 28 | ``` 29 | lightningview.exe 30 | ``` 31 | 32 | To open an image in windowed mode instead of fullscreen: 33 | ``` 34 | lightningview.exe /windowed 35 | ``` 36 | 37 | To register as default program for viewing images on older versions of Windows: 38 | ``` 39 | lightningview.exe /register 40 | ``` 41 | 42 | To remove this registration from your windows registry and settings: 43 | ``` 44 | lightningview.exe /unregister 45 | ``` 46 | 47 | 48 | ## Controls 49 | 50 | | Input | Action | 51 | | ----------- | ----------- | 52 | | Left Cursor | Show previous image in directory | 53 | | Right Cursor | Show next image in directory | 54 | | Home | Jump to first image in directory | 55 | | End | Jump to last image in directory | 56 | | R | Sort images randomly | 57 | | N | Sort images by name | 58 | | F | Toggle fullscreen | 59 | | Enter | Toggle between scale to fit and 1:1 display | 60 | | Delete | Delete the currently viewed image file | 61 | | Ctrl+C | Copy current image to clipboard | 62 | | Mouse wheel | Zoom in / out | 63 | | Drag Mouse | Pan image| 64 | 65 | ## Supported image formats 66 | 67 | General image formats: 68 | 69 | * BMP 70 | * GIF 71 | * ICO 72 | * JPEG 73 | * PNG 74 | * PNM 75 | * SVG 76 | * TIFF 77 | * TGA 78 | * WEBP 79 | * XBM 80 | * XPM 81 | 82 | RAW formats: 83 | 84 | * Minolta MRW 85 | * Sony ARW, SRF and SR2 86 | * Mamiya MEF 87 | * Olympus ORF 88 | * Samsung SRW 89 | * Epson ERF 90 | * Kodak KDC 91 | * Kodak DCS 92 | * Panasonic / Leica RW2 93 | * Fuji RAF 94 | * Kodak DCR 95 | * Adobe DNG 96 | * Pentax PEF 97 | * Canon CRW 98 | * Leaf / Phase One IIQ 99 | * Hasselblad 3FR 100 | * Nikon NRW 101 | * Nikon NEF 102 | * Leaf MOS 103 | * Canon CR2 104 | * ARRI's ARI 105 | * Astrophotography FITS (experimental) 106 | 107 | ## TODO / Feature Requests 108 | 109 | * Add a way to edit the currently viewed file 110 | * Display sorting mode on screen when pressing R or N 111 | * OpenCL support for RAW processing 112 | 113 | ## Compiling 114 | 115 | Just run the usual command: 116 | 117 | ``` 118 | cargo build --release 119 | ``` 120 | 121 | Under Linux, you may need to install additional dependencies first: 122 | 123 | ``` 124 | apt install libx11-dev libcairo-dev libxcursor-dev libxfixes-dev libxinerama-dev libxft-dev libpango1.0-dev libstdc++-11-dev 125 | ``` 126 | 127 | -------------------------------------------------------------------------------- /build.rs: -------------------------------------------------------------------------------- 1 | #[cfg(target_os = "windows")] 2 | extern crate winres; 3 | 4 | fn main() { 5 | #[cfg(target_os = "windows")] 6 | { 7 | let mut res = winres::WindowsResource::new(); 8 | res.set_icon("lightningview.ico"); // Replace this with the filename of your .ico file. 9 | res.compile().unwrap(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /lightningview.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividebysandwich/LightningView/bcd9585b1252a0268dd50d116c40f4bbf54324de/lightningview.ico -------------------------------------------------------------------------------- /lightningview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividebysandwich/LightningView/bcd9585b1252a0268dd50d116c40f4bbf54324de/lightningview.png -------------------------------------------------------------------------------- /lightningview.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividebysandwich/LightningView/bcd9585b1252a0268dd50d116c40f4bbf54324de/lightningview.xcf -------------------------------------------------------------------------------- /logo_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividebysandwich/LightningView/bcd9585b1252a0268dd50d116c40f4bbf54324de/logo_256.png -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | #![cfg_attr( 2 | all( 3 | target_os = "windows", 4 | ), 5 | windows_subsystem = "windows" 6 | )] 7 | use fltk::{app::{self, MouseWheel}, dialog, enums::{Color, Event}, frame::Frame, image::{AnimGifImage, AnimGifImageFlags, SharedImage}, prelude::*, window::Window}; 8 | use arboard::{Clipboard, ImageData}; 9 | use rand::seq::SliceRandom; 10 | use std::{env, error::Error, fs, path::{Path, PathBuf}, sync::{Arc, Mutex}}; 11 | use image::{ImageBuffer, Luma, GenericImageView, ImageReader}; 12 | use rustronomy_fits as rsf; 13 | use ndarray::{Array, Array2, IxDyn, s}; 14 | use log; 15 | 16 | #[cfg(target_os = "windows")] 17 | mod windows; 18 | #[cfg(target_os = "windows")] 19 | use crate::windows::*; 20 | 21 | pub const IMAGEREADER_SUPPORTED_FORMATS: [&str; 4] = ["webp", "tif", "tiff", "tga"]; 22 | pub const ANIM_SUPPORTED_FORMATS: [&str; 1] = ["gif"]; 23 | pub const FLTK_SUPPORTED_FORMATS: [&str; 9] = ["jpg", "jpeg", "png", "bmp", "svg", "ico", "pnm", "xbm", "xpm"]; 24 | pub const RAW_SUPPORTED_FORMATS: [&str; 23] = ["mrw", "arw", "srf", "sr2", "nef", "mef", "orf", "srw", "erf", "kdc", "dcs", "rw2", "raf", "dcr", "dng", "pef", "crw", "iiq", "3fr", "nrw", "mos", "cr2", "ari"]; 25 | pub const FITS_SUPPORTED_FORMATS: [&str; 2] = ["fits", "fit"]; 26 | 27 | const KEY_C : fltk::enums::Key = fltk::enums::Key::from_char('c'); 28 | 29 | // Enum to hold the image type, either a shared image or an animated gif 30 | #[derive(Clone)] 31 | enum ImageType { 32 | Shared(SharedImage), 33 | AnimatedGif(AnimGifImage), 34 | } 35 | 36 | fn load_and_display_image(original_image: &mut ImageType, frame: &mut Frame, wind: &mut Window, path: &PathBuf, zoom_factor: &mut f64, is_fullscreen: bool, is_scaled_to_fit: bool) { 37 | if let Ok(image) = load_image(&path.to_string_lossy(), wind) { 38 | frame.set_pos(0, 0); 39 | let cloned_image = image.clone(); 40 | match cloned_image { 41 | ImageType::Shared(img) => { 42 | let mut new_image = img.clone(); 43 | if is_scaled_to_fit { 44 | new_image.scale(wind.width(), wind.height(), true, true); 45 | } else { 46 | new_image.scale(new_image.data_w(), new_image.data_h(), true, true); 47 | } 48 | frame.set_image(Some(new_image)); 49 | }, 50 | ImageType::AnimatedGif(mut anim_img) => { 51 | if is_scaled_to_fit { 52 | anim_img.scale(wind.width(), wind.height(), true, true); 53 | } else { 54 | anim_img.scale(anim_img.data_w(), anim_img.data_h(), true, true); 55 | } 56 | frame.set_image(Some(anim_img.clone())); 57 | } 58 | } 59 | wind.redraw(); 60 | wind.fullscreen(is_fullscreen); 61 | 62 | *zoom_factor = 1.0; 63 | *original_image = image; 64 | } 65 | } 66 | 67 | fn get_absolute_path(filename: &str) -> PathBuf { 68 | let path = Path::new(filename); 69 | 70 | if path.is_absolute() { 71 | PathBuf::from(path) 72 | } else { 73 | let mut absolute_path = env::current_dir().expect("Failed to get the current working directory"); 74 | absolute_path.push(filename); 75 | absolute_path 76 | } 77 | } 78 | 79 | fn load_imagereader(image_file: &str) -> Result { 80 | log::debug!("Processing with Imagereader: {}", image_file); 81 | 82 | let reader = ImageReader::open(image_file) 83 | .map_err(|err| format!("Don't know how to load \"{}\": {}", image_file, err))?; 84 | 85 | let decoded_image = reader 86 | .decode() 87 | .map_err(|err| format!("Decoding \"{}\" failed: {}", image_file, err))?; 88 | 89 | let (width, height) = decoded_image.dimensions(); 90 | log::debug!("Image dimensions: {}x{}", width, height); 91 | log::debug!("Image color type: {:?}", decoded_image.color()); 92 | 93 | let data = decoded_image.into_rgb8().to_vec(); 94 | let img = fltk::image::RgbImage::new( 95 | &data, 96 | width as i32, 97 | height as i32, 98 | fltk::enums::ColorDepth::Rgb8, 99 | ) 100 | .map_err(|err| format!("Processing \"{}\" failed: {}", image_file, err))?; 101 | 102 | SharedImage::from_image(img).map_err(|err| format!("Error creating image: {}", err)) 103 | } 104 | 105 | fn load_raw(image_file: &str) -> Result { 106 | log::debug!("Processing as RAW: {}", image_file); 107 | 108 | let mut pipeline = imagepipe::Pipeline::new_from_file(image_file) 109 | .map_err(|err| format!("Don't know how to load \"{}\": {}", image_file, err))?; 110 | 111 | let decoded = pipeline 112 | .output_8bit(Some(&imagepipe::Pipeline::new_cache(100_000_000))) 113 | .map_err(|err| format!("Processing for \"{}\" failed: {}", image_file, err))?; 114 | 115 | let img = fltk::image::RgbImage::new( 116 | &decoded.data, 117 | decoded.width as i32, 118 | decoded.height as i32, 119 | fltk::enums::ColorDepth::Rgb8, 120 | ) 121 | .map_err(|err| format!("Processing for \"{}\" failed: {}", image_file, err))?; 122 | 123 | SharedImage::from_image(img).map_err(|err| format!("Error creating image: {}", err)) 124 | } 125 | 126 | fn load_animated_image(image_file: &str, widget: &mut Window) -> Result { 127 | log::debug!("Processing as animated image: {}", image_file); 128 | let anim_image = AnimGifImage::load(image_file, widget, AnimGifImageFlags::DONT_RESIZE_CANVAS) 129 | .map_err(|err| format!("Error loading animated image: {}", err))?; 130 | 131 | Ok(anim_image) 132 | } 133 | 134 | fn rgb_to_grayscale(rgb_image: Result, Box>) -> Result, Box> { 135 | let rgb_array = rgb_image?; // Unwrap Result 136 | 137 | // Ensure the image has 3 dimensions (Height, Width, 3) 138 | let shape = rgb_array.shape(); 139 | if shape.len() != 3 || shape[2] != 3 { 140 | return Err("Invalid shape: Expected (H, W, 3)".into()); 141 | } 142 | 143 | // Convert RGB to grayscale using element-wise operations 144 | let grayscale: Array2 = 145 | &rgb_array.slice(s![.., .., 0]) * 0.2989 146 | + &rgb_array.slice(s![.., .., 1]) * 0.5870 147 | + &rgb_array.slice(s![.., .., 2]) * 0.1140; 148 | 149 | Ok(grayscale) 150 | } 151 | 152 | fn load_fits(image_file: &str) -> Result { 153 | log::debug!("Processing as FITS: {}", image_file); 154 | let mut fits = rsf::Fits::open(Path::new(image_file)).map_err(|err| format!("Error creating image: {}", err))?; 155 | let (_header, data) = fits.remove_hdu(0).unwrap().to_parts(); 156 | let array = match data.unwrap() { 157 | rsf::Extension::Image(img) => { 158 | rgb_to_grayscale(img.as_owned_f32_array()) 159 | }, 160 | _ => return Err("No image data found".to_string()) 161 | }; 162 | log::debug!("FITS loaded."); 163 | 164 | let log_factor = 3000.0; 165 | let gamma = 1.5; 166 | 167 | match array { 168 | Ok(a) => { 169 | //let normalized_data = downscale_by_factor_4(a.mapv(|x| x as u8)); 170 | let normalized_data = a; 171 | 172 | // Create an RGB image of the same size as the FITS image 173 | let dim = normalized_data.dim(); 174 | // get width and height out of dim 175 | let width = dim.0 as u32; 176 | let height = dim.1 as u32; 177 | 178 | // Convert to f32 for better precision in stretching 179 | let data_f32 = normalized_data.mapv(|x| x as f32); 180 | log::debug!("F32 conversion done."); 181 | 182 | // Find min and max values 183 | let (min_val, max_val) = data_f32.iter().fold((f32::MAX, f32::MIN), |(min, max), &x| { 184 | (min.min(x), max.max(x)) 185 | }); 186 | 187 | let scale = 255.0 / (max_val - min_val).max(1e-5); // Avoid division by zero 188 | 189 | 190 | /* // Parallel Min-Max Stretch 191 | data_f32.as_slice_mut().unwrap().par_iter_mut().for_each(|x| { 192 | *x = ((*x - min_val) * scale).clamp(0.0, 255.0); 193 | }); 194 | 195 | // Parallel Log Stretch 196 | let mut log_scaled: Vec = data_f32 197 | .as_slice() 198 | .unwrap() 199 | .par_iter() 200 | .map(|&x| (255.0 * ((1.0 + log_factor * (x / 255.0)).ln() / (1.0 + log_factor).ln())) as u8) 201 | .collect(); 202 | 203 | // Parallel Gamma Correction 204 | log_scaled.par_iter_mut().for_each(|x| { 205 | *x = ((*x as f32 / 255.0).powf(gamma) * 255.0) as u8; 206 | }); 207 | 208 | let rgb_image = ImageBuffer::, Vec>::from_raw(width, height, log_scaled).expect("Error creating image buffer for FITS file"); 209 | log::debug!("RGB image done."); 210 | */ 211 | 212 | // Apply stronger min-max normalization (clip 1% of outliers) 213 | let stretched = data_f32.mapv(|x| ((x - min_val) * scale).clamp(0.0, 255.0) as u8); 214 | log::debug!("Stretch 1 done."); 215 | 216 | // Apply logarithmic stretch with a stronger factor 217 | let log_stretched = stretched.mapv(|x| (255.0 * ((1.0 + log_factor * (x as f32 / 255.0)).ln() / (1.0 + log_factor).ln())) as u8); 218 | log::debug!("Stretch 2 done."); 219 | 220 | // Apply gamma correction (further increases contrast) 221 | let gamma_corrected = log_stretched.mapv(|x| ((x as f32 / 255.0).powf(gamma) * 255.0) as u8); 222 | log::debug!("Stretch 3 done."); 223 | 224 | // Convert to Vec 225 | let buffer = gamma_corrected.into_raw_vec(); 226 | log::debug!("raw vector converted."); 227 | 228 | let rgb_image = ImageBuffer::, Vec>::from_raw(width, height, buffer).expect("Error creating image buffer for FITS file"); 229 | log::debug!("RGB image done."); 230 | 231 | let raw_rgb: Vec = rgb_image 232 | .pixels() 233 | .flat_map(|Luma([l])| vec![*l, *l, *l]) // Convert grayscale to RGB 234 | .collect(); 235 | 236 | let fltk_img = fltk::image::RgbImage::new( 237 | &raw_rgb, 238 | width as i32, 239 | height as i32, 240 | fltk::enums::ColorDepth::Rgb8, 241 | ) 242 | .map_err(|err| format!("Processing for \"{}\" failed: {}", image_file, err))?; 243 | 244 | return SharedImage::from_image(fltk_img).map_err(|err| format!("Error creating image: {}", err)); 245 | }, 246 | Err(err) => return Err(format!("Error reading array: {}", err)) 247 | } 248 | } 249 | 250 | fn load_image(image_file: &str, widget: &mut Window) -> Result { 251 | if FLTK_SUPPORTED_FORMATS.iter().any(|&format| image_file.to_lowercase().ends_with(format)) { 252 | match SharedImage::load(image_file) { 253 | Ok(image) => Ok(ImageType::Shared(image)), 254 | Err(err) => Err(format!("Error loading image: {}", err)), 255 | } 256 | } else if ANIM_SUPPORTED_FORMATS.iter().any(|&format| image_file.to_lowercase().ends_with(format)) { 257 | match load_animated_image(image_file, widget) { 258 | Ok(image) => { 259 | Ok(ImageType::AnimatedGif(image)) 260 | }, 261 | Err(err) => Err(format!("Error loading animated GIF image: {}", err)), 262 | } 263 | } else if RAW_SUPPORTED_FORMATS.iter().any(|&format| image_file.to_lowercase().ends_with(format)) { 264 | match load_raw(image_file) { 265 | Ok(image) => Ok(ImageType::Shared(image)), 266 | Err(err) => Err(format!("Error loading RAW image: {}", err)), 267 | } 268 | } else if FITS_SUPPORTED_FORMATS.iter().any(|&format| image_file.to_lowercase().ends_with(format)) { 269 | match load_fits(image_file) { 270 | Ok(image) => Ok(ImageType::Shared(image)), 271 | Err(err) => Err(format!("Error loading FITS image: {}", err)), 272 | } 273 | } else if IMAGEREADER_SUPPORTED_FORMATS.iter().any(|&format| image_file.to_lowercase().ends_with(format)) { 274 | match load_imagereader(image_file) { 275 | Ok(image) => Ok(ImageType::Shared(image)), 276 | Err(err) => Err(format!("Error loading Imagereader image: {}", err)), 277 | } 278 | } else { 279 | Err("Unsupported file format.".to_string()) 280 | } 281 | } 282 | 283 | fn copy_to_clipboard(original_image: &mut ImageType, clipboard: &mut Clipboard) -> Result<(), String> { 284 | match &original_image { 285 | ImageType::Shared(img) => { 286 | match img.depth() { 287 | fltk::enums::ColorDepth::Rgba8 => { 288 | let rgba_image = img.to_rgb() 289 | .map_err(|err| format!("Error converting SharedImage to RGB: {}", err))?; 290 | let rgb_data = rgba_image.to_rgb_data(); 291 | let img_data: ImageData = ImageData { 292 | bytes: rgb_data.into(), 293 | width: img.data_w() as usize, 294 | height: img.data_h() as usize, 295 | }; 296 | let _ = clipboard.set_image(img_data); 297 | log::debug!("Image copied to clipboard"); 298 | Ok(()) 299 | }, 300 | fltk::enums::ColorDepth::Rgb8 => { 301 | let rgb_image = img.to_rgb() 302 | .map_err(|err| format!("Error converting SharedImage to RGB: {}", err))?; 303 | let rgba_image = rgb_image.convert(fltk::enums::ColorDepth::Rgba8) 304 | .map_err(|err| format!("Error converting RGB to RGBA: {}", err))?; 305 | let rgba_data = rgba_image.to_rgb_data(); 306 | log::debug!("rgba image size: {}", rgba_data.len()); 307 | let img_data: ImageData = ImageData { 308 | bytes: rgba_data.into(), 309 | width: img.data_w() as usize, 310 | height: img.data_h() as usize, 311 | }; 312 | let _ = clipboard.set_image(img_data); 313 | log::debug!("Image copied to clipboard"); 314 | Ok(()) 315 | }, 316 | _ => { 317 | Err(format!("Unsupported color depth: {:?}", img.depth())) 318 | } 319 | } 320 | }, 321 | ImageType::AnimatedGif(_anim_img) => { 322 | Err(format!("Copying animated images to clipboard is not supported")) 323 | } 324 | } 325 | } 326 | 327 | fn order_by_name(image_order: &mut Vec, current_index: &mut usize, is_randomized: &mut bool) { 328 | let original_index = image_order[*current_index]; 329 | // Remember the index of the image we're currently viewing 330 | image_order.sort(); 331 | // Sort the image_order list to the original sequence 332 | log::debug!("Image ordering sorted by name"); 333 | *is_randomized = false; 334 | *current_index = image_order.iter().position(|&index| index == original_index).unwrap(); 335 | //Find the new index of the image we were viewing 336 | } 337 | 338 | fn order_random(image_order: &mut Vec, current_index: &mut usize, is_randomized: &mut bool) { 339 | let original_index = image_order[*current_index]; 340 | //Remember the index of the image we're currently viewing 341 | let mut rng = rand::rng(); 342 | image_order.shuffle(&mut rng); 343 | log::debug!("Image ordering randomized"); 344 | *is_randomized = true; 345 | *current_index = image_order.iter().position(|&index| index == original_index).unwrap(); 346 | //Find the new index of the image we were viewing 347 | } 348 | 349 | fn main() -> Result<(), Box> { 350 | env_logger::init(); 351 | 352 | let args: Vec = env::args().collect(); 353 | let mut is_fullscreen = true; 354 | let mut is_randomized = false; // Whether to start with the images in random order 355 | let mut is_scaled_to_fit = true; // Whether to start with the image zoomed in to fit the screen 356 | let mut image_order:Vec = Vec::new(); 357 | 358 | if args.len() < 2 { 359 | println!("Usage: {} [/windowed] ", args[0]); 360 | println!("The optional /windowed argument will open the image in a windowed mode instead of fullscreen."); 361 | #[cfg(target_os = "windows")] 362 | { 363 | println!("To register as image viewer in Windows, run: {} /register", args[0]); 364 | println!("To unregister, run: {} /unregister", args[0]); 365 | } 366 | std::process::exit(1); 367 | } 368 | 369 | let mut image_file = &args[1]; 370 | if args.len() > 2 { 371 | if args[1].eq_ignore_ascii_case("/windowed") { 372 | is_fullscreen = false; 373 | image_file = &args[2]; 374 | } 375 | } 376 | 377 | #[cfg(target_os = "windows")] 378 | { 379 | if image_file.eq_ignore_ascii_case("/register") { 380 | match register_urlhandler() { 381 | Ok(_) => println!("Success! LightningView egistered as image viewer."), 382 | Err(err) => println!("Failed to register as image viewer: {}", err), 383 | } 384 | std::process::exit(0); 385 | } else if image_file.eq_ignore_ascii_case("/unregister") { 386 | unregister_urlhandler(); 387 | println!("LightningView unregistered as image viewer."); 388 | std::process::exit(0); 389 | } 390 | } 391 | 392 | // Create an empty mutable image to be able to modify it later 393 | let empty_img = fltk::image::RgbImage::new(&[0; 4], 1, 1, fltk::enums::ColorDepth::Rgb8).unwrap(); 394 | let mut original_image = ImageType::Shared(SharedImage::from_image(empty_img).unwrap()); 395 | 396 | let app = app::App::default(); 397 | 398 | // Enable bilinear filtering for scaling operations 399 | fltk::image::RgbImage::set_scaling_algorithm(fltk::image::RgbScaling::Bilinear); 400 | 401 | let mut zoom_factor = 1.0; 402 | let mut pan_origin: Option<(i32, i32)> = None; 403 | let mut current_index = 0; 404 | let mut image_files: Vec = Vec::new(); 405 | 406 | // Get the screen size 407 | let screen = app::screen_count(); // Get the number of screens 408 | let (screen_width, screen_height) = if screen > 0 { 409 | let screen = app::screen_xywh(0); // Get the work area of the primary screen 410 | (screen.2, screen.3) 411 | } else { 412 | (800, 600) // Default dimensions 413 | }; 414 | 415 | log::debug!("Image file: {}", image_file); 416 | 417 | let absolute_path = get_absolute_path(image_file); 418 | let parent_dir = absolute_path.parent().unwrap_or_else(|| { 419 | println!("Failed to get the parent directory."); 420 | std::process::exit(1); 421 | }); 422 | 423 | log::debug!("Parent dir: {:?}", parent_dir); 424 | 425 | // Get a list of all image files in the directory 426 | if let Ok(entries) = fs::read_dir(parent_dir) { 427 | let mut all_supported_formats: Vec<&str> = Vec::new(); 428 | all_supported_formats.extend(&IMAGEREADER_SUPPORTED_FORMATS); 429 | all_supported_formats.extend(&ANIM_SUPPORTED_FORMATS); 430 | all_supported_formats.extend(&FLTK_SUPPORTED_FORMATS); 431 | all_supported_formats.extend(&RAW_SUPPORTED_FORMATS); 432 | all_supported_formats.extend(&FITS_SUPPORTED_FORMATS); 433 | image_files = entries 434 | .filter_map(|entry| entry.ok().map(|e| e.path())) 435 | .filter(|path| { 436 | path.is_file() 437 | && all_supported_formats.iter().any(|&format| path.to_string_lossy().to_lowercase().ends_with(format) 438 | ) 439 | }) 440 | .collect(); 441 | 442 | //Sort files by name, case insensitive 443 | image_files.sort_by_key(|name| name.to_string_lossy().to_lowercase()); 444 | 445 | // Find out where in the list our initially loaded file is, so we can navigate to the next/previous image 446 | if let Some(index) = image_files.iter().position(|path| path == &absolute_path) { 447 | current_index = index; 448 | } 449 | } else { 450 | println!("Failed to read directory."); 451 | app.quit(); 452 | } 453 | 454 | if image_files.is_empty() { 455 | println!("No images found in the directory. Exiting."); 456 | app.quit() 457 | } 458 | 459 | // Initialize the image_order list with a sequential index so they are browsed in-sequence 460 | for (i, _path) in image_files.iter().enumerate() { 461 | image_order.push(i); 462 | } 463 | 464 | let mut wind = Window::new(0, 0, screen_width, screen_height, "Lightning View"); 465 | wind.make_resizable(true); 466 | wind.set_color(Color::Black); 467 | wind.fullscreen(is_fullscreen); 468 | let mut frame = Frame::default_fill(); 469 | wind.end(); // Finish adding UI components to the window 470 | 471 | // Load and display the initial image 472 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen,is_scaled_to_fit); 473 | 474 | wind.show(); 475 | 476 | 477 | wind.handle(move |mut wind, event| { 478 | match event { 479 | Event::Focus => true, 480 | Event::Leave => true, 481 | Event::MouseWheel => { 482 | let dy = app::event_dy(); 483 | let mouse_pos = (app::event_x(), app::event_y()); 484 | let base_zoom_speed = 0.2; 485 | let mut relative_pos = (0, 0); 486 | log::debug!("Wind width/height: {}, {}", wind.width(), wind.height()); 487 | 488 | if dy == MouseWheel::Up { 489 | log::debug!("Zooming out"); 490 | zoom_factor -= base_zoom_speed * zoom_factor; 491 | relative_pos = (-mouse_pos.0 + (wind.width() as f64 / 2.0) as i32, -mouse_pos.1 + (wind.height() as f64 / 2.0) as i32); 492 | } else if dy == MouseWheel::Down { 493 | log::debug!("Zooming in"); 494 | zoom_factor += base_zoom_speed * zoom_factor; 495 | relative_pos = (mouse_pos.0 - (wind.width() as f64 / 2.0) as i32, mouse_pos.1 - (wind.height() as f64 / 2.0) as i32); 496 | } 497 | log::debug!("Relative pos: {:?}", relative_pos); 498 | if zoom_factor < 1.0 { 499 | zoom_factor = 1.0; // Don't zoom out beyond the original size 500 | } 501 | 502 | match &original_image { 503 | ImageType::Shared(img) => { 504 | let new_image = img.clone(); 505 | let new_width = (new_image.width() as f64 * zoom_factor) as i32; 506 | let new_height = (new_image.height() as f64 * zoom_factor) as i32; 507 | log::debug!("New width/height: {}, {}", new_width, new_height); 508 | frame.set_image(Some(new_image.copy_sized(new_width, new_height))); 509 | }, 510 | ImageType::AnimatedGif(anim_img) => { 511 | let new_image = anim_img.clone(); 512 | let new_width = (new_image.width() as f64 * zoom_factor) as i32; 513 | let new_height = (new_image.height() as f64 * zoom_factor) as i32; 514 | log::debug!("New width/height: {}, {}", new_width, new_height); 515 | frame.set_image(Some(new_image.copy_sized(new_width, new_height))); 516 | } 517 | 518 | } 519 | 520 | let new_pos_x = frame.x() - relative_pos.0/2; 521 | let new_pos_y = frame.y() - relative_pos.1/2; 522 | 523 | // Recenter image if we zoomed out all the way 524 | if zoom_factor > 1.0 { 525 | frame.set_pos(new_pos_x, new_pos_y); 526 | } else { 527 | frame.set_pos(0, 0); 528 | } 529 | 530 | log::debug!("Zoom factor: {}", zoom_factor); 531 | log::debug!("New X/Y: {}, {}", new_pos_x, new_pos_y); 532 | 533 | wind.redraw(); 534 | true 535 | } 536 | Event::Push => { 537 | if app::event_mouse_button() == app::MouseButton::Left { 538 | pan_origin = Some((app::event_x(), app::event_y())); 539 | } else if app::event_mouse_button() == app::MouseButton::Right { 540 | let coords = app::event_coords(); 541 | log::debug!("coords: {:?}", coords); 542 | let mut checkbox_scale_to_fit = "☐ Scale to fit"; 543 | if is_scaled_to_fit { 544 | checkbox_scale_to_fit = "☑ Scale to fit"; 545 | } 546 | let mut checkbox_fullscreen = "☐ Fullscreen"; 547 | if is_fullscreen { 548 | checkbox_fullscreen = "☑ Fullscreen"; 549 | } 550 | let mut checkbox_randomize = "☐ Random order"; 551 | if is_randomized { 552 | checkbox_randomize = "☑ Random order"; 553 | } 554 | let popup_menu = fltk::menu::MenuItem::new(&[checkbox_fullscreen, checkbox_scale_to_fit, checkbox_randomize]); 555 | match popup_menu.popup(coords.0, coords.1) { 556 | None => log::debug!("No menu item selected."), 557 | Some(val) => { 558 | let label = val.label().unwrap_or_default(); 559 | // If label ends with "Scale to fit", toggle scaling to fit 560 | if label.ends_with("Scale to fit") { 561 | is_scaled_to_fit = !is_scaled_to_fit; 562 | log::debug!("{}", format!("Toggling image scaling to fit the screen: {}", is_scaled_to_fit).as_str()); 563 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen, is_scaled_to_fit); 564 | } 565 | // If label ends with "Fullscreen", toggle fullscreen 566 | else if label.ends_with("Fullscreen") { 567 | is_fullscreen = !is_fullscreen; 568 | wind.fullscreen(is_fullscreen); 569 | log::debug!("{}", format!("Toggling fullscreen: {}", is_fullscreen).as_str()); 570 | } 571 | else if label.ends_with("Random order") { 572 | if is_randomized { 573 | order_by_name(&mut image_order, &mut current_index, &mut is_randomized); 574 | } else { 575 | order_random(&mut image_order, &mut current_index, &mut is_randomized); 576 | } 577 | } 578 | log::debug!("Menu item selected: {:?}", val.label()); 579 | } 580 | } 581 | } 582 | true 583 | } 584 | Event::Drag => { 585 | if let Some((start_x, start_y)) = pan_origin { 586 | let dx = app::event_x() - start_x; 587 | let dy = app::event_y() - start_y; 588 | frame.set_pos(frame.x() + dx, frame.y() + dy); 589 | pan_origin = Some((app::event_x(), app::event_y())); 590 | wind.redraw(); 591 | true 592 | } else { 593 | false 594 | } 595 | } 596 | Event::KeyDown => { 597 | let key = app::event_key(); 598 | 599 | if image_files.is_empty() { 600 | app.quit(); 601 | } 602 | match key { 603 | fltk::enums::Key::Left => { 604 | current_index = (current_index + image_files.len() - 1) % image_files.len(); 605 | log::debug!("Loading previous image: {}", image_files[image_order[current_index]].display()); 606 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen, is_scaled_to_fit); 607 | } 608 | fltk::enums::Key::Right => { 609 | current_index = (current_index + 1) % image_files.len(); 610 | log::debug!("Loading next image: {}", image_files[image_order[current_index]].display()); 611 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen, is_scaled_to_fit); 612 | } 613 | fltk::enums::Key::Home => { 614 | current_index = 0; 615 | log::debug!("Loading first image: {}", image_files[image_order[current_index]].display()); 616 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen, is_scaled_to_fit); 617 | } 618 | fltk::enums::Key::End => { 619 | current_index = image_files.len() - 1; 620 | log::debug!("Loading last image: {}", image_files[image_order[current_index]].display()); 621 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen, is_scaled_to_fit); 622 | } 623 | fltk::enums::Key::Enter => { 624 | is_scaled_to_fit = !is_scaled_to_fit; 625 | log::debug!("{}", format!("Toggling image scaling to fit the screen: {}", is_scaled_to_fit).as_str()); 626 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen, is_scaled_to_fit); 627 | } 628 | fltk::enums::Key::Delete => { 629 | if dialog::choice2(wind.width()/2 - 200, wind.height()/2 - 100, format!("Do you want to delete {}?", image_files[image_order[current_index]].display()).as_str(), "Cancel", "Delete", "") == Some(1) { 630 | log::debug!("Delete image: {}", image_files[image_order[current_index]].display()); 631 | if let Err(err) = fs::remove_file(&image_files[image_order[current_index]]) { 632 | println!("Failed to delete image: {}", err); 633 | } else { 634 | image_files.remove(image_order[current_index]); 635 | if image_files.is_empty() { 636 | app.quit(); 637 | } else { 638 | current_index = current_index % image_files.len(); 639 | load_and_display_image(&mut original_image, &mut frame, &mut wind, &image_files[image_order[current_index]], &mut zoom_factor, is_fullscreen, is_scaled_to_fit); 640 | } 641 | } 642 | } else { 643 | log::debug!("Delete cancelled"); 644 | }; 645 | } 646 | fltk::enums::Key::Escape => { 647 | app.quit(); 648 | } 649 | KEY_C => { 650 | let eventstate = app::event_state(); 651 | //Check if the Control key was held down when the 'C' key was pressed 652 | if eventstate.contains(fltk::enums::Shortcut::Ctrl) { 653 | let clipboard = Arc::new(Mutex::new(Clipboard::new())); 654 | match Arc::clone(&clipboard).lock() { 655 | Ok(mut clipboard_lock) => { 656 | let mut clipboard = clipboard_lock.as_mut().unwrap(); 657 | log::debug!("Copy image to clipboard"); 658 | match copy_to_clipboard(&mut original_image, &mut clipboard) { 659 | Ok(_) => { 660 | log::debug!("Image copied to clipboard"); 661 | }, 662 | Err(err) => { 663 | log::error!("Failed to copy image to clipboard: {}", err); 664 | } 665 | } 666 | }, 667 | Err(err) => { 668 | log::error!("Failed to initialize clipboard: {}", err); 669 | } 670 | } 671 | } 672 | return true; 673 | } 674 | _ => { 675 | if let Some(ch) = app::event_text().chars().next() { 676 | if ch.eq_ignore_ascii_case(&'F') { 677 | //Toggle fullscreen 678 | wind.make_resizable(true); 679 | is_fullscreen = !is_fullscreen; 680 | wind.fullscreen(is_fullscreen); 681 | } 682 | if ch.eq_ignore_ascii_case(&'R') { //Randomize the sequence of images in the directory when viewing the next/prev image 683 | order_random(&mut image_order, &mut current_index, &mut is_randomized); 684 | } 685 | if ch.eq_ignore_ascii_case(&'N') { // Sort images by name when viewing the next/prev image 686 | order_by_name(&mut image_order, &mut current_index, &mut is_randomized); 687 | } 688 | } 689 | } 690 | } 691 | true 692 | } 693 | _ => false, 694 | } 695 | }); 696 | 697 | app.run()?; 698 | Ok(()) 699 | } 700 | -------------------------------------------------------------------------------- /src/notwindows.rs: -------------------------------------------------------------------------------- 1 | use std::io; 2 | 3 | 4 | pub fn register_urlhandler() -> io::Result<()> { 5 | } 6 | 7 | pub fn unregister_urlhandler() { 8 | } 9 | -------------------------------------------------------------------------------- /src/windows.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | use const_format::concatcp; 3 | use std::{ 4 | error::Error, 5 | io, 6 | path::PathBuf, 7 | }; 8 | use winreg::{enums::*, RegKey}; 9 | 10 | use crate::{FLTK_SUPPORTED_FORMATS, IMAGEREADER_SUPPORTED_FORMATS, RAW_SUPPORTED_FORMATS}; 11 | const CANONICAL_NAME: &str = "lightningview.exe"; 12 | const PROGID: &str = "LightningViewImageFile"; 13 | 14 | // Configuration for "Default Programs". StartMenuInternet is the key for browsers 15 | // and they're expected to use the name of the exe as the key. 16 | const DPROG_PATH: &str = concatcp!(r"SOFTWARE\Clients\StartMenuInternet\", CANONICAL_NAME); 17 | const DPROG_INSTALLINFO_PATH: &str = concatcp!(DPROG_PATH, "InstallInfo"); 18 | 19 | const APPREG_BASE: &str = r"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\"; 20 | const PROGID_PATH: &str = concatcp!(r"SOFTWARE\Classes\", PROGID); 21 | const REGISTERED_APPLICATIONS_PATH: &str = 22 | concatcp!(r"SOFTWARE\RegisteredApplications\", DISPLAY_NAME); 23 | 24 | const DISPLAY_NAME: &str = "Lightning View Image Viewer"; 25 | const DESCRIPTION: &str = "Simple No-Fuss image viewer and browser"; 26 | 27 | /// Retrieve an EXE path by looking in the registry for the App Paths entry 28 | fn get_exe_path(exe_name: &str) -> Result> { 29 | for root_name in &[HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE] { 30 | let root = RegKey::predef(*root_name); 31 | if let Ok(subkey) = root.open_subkey(format!("{}{}", APPREG_BASE, exe_name)) { 32 | if let Ok(value) = subkey.get_value::("") { 33 | let path = PathBuf::from(value); 34 | if path.is_file() { 35 | return Ok(path); 36 | } 37 | } 38 | } 39 | } 40 | 41 | Err(Box::new(io::Error::new( 42 | io::ErrorKind::NotFound, 43 | format!("Could not find path for {}", exe_name), 44 | ))) 45 | } 46 | 47 | /// Register associations with Windows for being a browser 48 | pub fn register_urlhandler() -> io::Result<()> { 49 | // This is used both by initial registration and OS-invoked reinstallation. 50 | // The expectations for the latter are documented here: https://docs.microsoft.com/en-us/windows/win32/shell/reg-middleware-apps#the-reinstall-command 51 | use std::env::current_exe; 52 | 53 | let exe_path = current_exe()?; 54 | let exe_name = exe_path 55 | .file_name() 56 | .and_then(|s| s.to_str()) 57 | .unwrap_or_default() 58 | .to_owned(); 59 | 60 | let exe_path = exe_path.to_str().unwrap_or_default().to_owned(); 61 | let icon_path = format!("\"{}\",0", exe_path); 62 | let open_command = format!("\"{}\" \"%1\"", exe_path); 63 | 64 | let hkcu = RegKey::predef(HKEY_CURRENT_USER); 65 | 66 | // Configure our ProgID to point to the right command 67 | { 68 | let (progid_class, _) = hkcu.create_subkey(PROGID_PATH)?; 69 | progid_class.set_value("", &DISPLAY_NAME)?; 70 | 71 | let (progid_class_defaulticon, _) = progid_class.create_subkey("DefaultIcon")?; 72 | progid_class_defaulticon.set_value("", &icon_path)?; 73 | 74 | let (progid_class_shell_open_command, _) = 75 | progid_class.create_subkey(r"shell\open\command")?; 76 | progid_class_shell_open_command.set_value("", &open_command)?; 77 | } 78 | 79 | // Set up the Default Programs configuration for the app (https://docs.microsoft.com/en-us/windows/win32/shell/default-programs) 80 | { 81 | let (dprog, _) = hkcu.create_subkey(DPROG_PATH)?; 82 | dprog.set_value("", &DISPLAY_NAME)?; 83 | dprog.set_value("LocalizedString", &DISPLAY_NAME)?; 84 | 85 | let (dprog_capabilites, _) = dprog.create_subkey("Capabilities")?; 86 | dprog_capabilites.set_value("ApplicationName", &DISPLAY_NAME)?; 87 | dprog_capabilites.set_value("ApplicationIcon", &icon_path)?; 88 | dprog_capabilites.set_value("ApplicationDescription", &DESCRIPTION)?; 89 | 90 | let (dprog_capabilities_startmenu, _) = dprog_capabilites.create_subkey("Startmenu")?; 91 | dprog_capabilities_startmenu.set_value("StartMenuInternet", &CANONICAL_NAME)?; 92 | 93 | // Register for various file types, so that we'll be invoked for file:// URLs for these types (e.g. 94 | // by `cargo doc --open`.) 95 | let (dprog_capabilities_fileassociations, _) = 96 | dprog_capabilites.create_subkey("FileAssociations")?; 97 | 98 | let mut all_supported_formats: Vec<&str> = Vec::new(); 99 | all_supported_formats.extend(&IMAGEREADER_SUPPORTED_FORMATS); 100 | all_supported_formats.extend(&FLTK_SUPPORTED_FORMATS); 101 | all_supported_formats.extend(&RAW_SUPPORTED_FORMATS); 102 | 103 | for filetype in all_supported_formats { 104 | dprog_capabilities_fileassociations.set_value(filetype, &PROGID)?; 105 | } 106 | 107 | let (dprog_defaulticon, _) = dprog.create_subkey("DefaultIcon")?; 108 | dprog_defaulticon.set_value("", &icon_path)?; 109 | 110 | // Set up reinstallation and show/hide icon commands (https://docs.microsoft.com/en-us/windows/win32/shell/reg-middleware-apps#registering-installation-information) 111 | let (dprog_installinfo, _) = dprog.create_subkey("InstallInfo")?; 112 | dprog_installinfo.set_value("ReinstallCommand", &format!("\"{}\" register", exe_path))?; 113 | dprog_installinfo.set_value("HideIconsCommand", &format!("\"{}\" hide-icons", exe_path))?; 114 | dprog_installinfo.set_value("ShowIconsCommand", &format!("\"{}\" show-icons", exe_path))?; 115 | 116 | // Only update IconsVisible if it hasn't been set already 117 | if dprog_installinfo 118 | .get_value::("IconsVisible") 119 | .is_err() 120 | { 121 | dprog_installinfo.set_value("IconsVisible", &1u32)?; 122 | } 123 | 124 | let (dprog_shell_open_command, _) = dprog.create_subkey(r"shell\open\command")?; 125 | dprog_shell_open_command.set_value("", &open_command)?; 126 | } 127 | 128 | // Set up a registered application for our Default Programs capabilities (https://docs.microsoft.com/en-us/windows/win32/shell/default-programs#registeredapplications) 129 | { 130 | let (registered_applications, _) = 131 | hkcu.create_subkey(r"SOFTWARE\RegisteredApplications")?; 132 | let dprog_capabilities_path = format!(r"{}\Capabilities", DPROG_PATH); 133 | registered_applications.set_value(DISPLAY_NAME, &dprog_capabilities_path)?; 134 | } 135 | 136 | // Application Registration (https://docs.microsoft.com/en-us/windows/win32/shell/app-registration) 137 | { 138 | let appreg_path = format!(r"{}{}", APPREG_BASE, exe_name); 139 | let (appreg, _) = hkcu.create_subkey(appreg_path)?; 140 | // This is used to resolve "lightningview.exe" -> full path, if needed. 141 | appreg.set_value("", &exe_path)?; 142 | } 143 | 144 | refresh_shell(); 145 | 146 | Ok(()) 147 | } 148 | 149 | fn refresh_shell() { 150 | use windows::Win32::UI::Shell::{SHChangeNotify, SHCNE_ASSOCCHANGED, SHCNF_DWORD, SHCNF_FLUSH}; 151 | 152 | // Notify the shell about the updated URL associations. (https://docs.microsoft.com/en-us/windows/win32/shell/default-programs#becoming-the-default-browser) 153 | unsafe { 154 | SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_DWORD | SHCNF_FLUSH, None, None); 155 | } 156 | } 157 | 158 | /// Remove all the registry keys that we've set up 159 | pub fn unregister_urlhandler() { 160 | use std::env::current_exe; 161 | 162 | // Find the current executable's name, so we can unregister it 163 | let exe_name = current_exe() 164 | .unwrap() 165 | .file_name() 166 | .and_then(|s| s.to_str()) 167 | .unwrap_or_default() 168 | .to_owned(); 169 | 170 | let hkcu = RegKey::predef(HKEY_CURRENT_USER); 171 | let _ = hkcu.delete_subkey_all(DPROG_PATH); 172 | let _ = hkcu.delete_subkey_all(PROGID_PATH); 173 | let _ = hkcu.delete_subkey(REGISTERED_APPLICATIONS_PATH); 174 | let _ = hkcu.delete_subkey_all(format!("{}{}", APPREG_BASE, exe_name)); 175 | refresh_shell(); 176 | } 177 | 178 | /// Set the "IconsVisible" flag to true (we don't have any icons) 179 | fn show_icons() -> io::Result<()> { 180 | // The expectations for this are documented here: https://docs.microsoft.com/en-us/windows/win32/shell/reg-middleware-apps#the-show-icons-command 181 | let hkcu = RegKey::predef(HKEY_CURRENT_USER); 182 | let (dprog_installinfo, _) = hkcu.create_subkey(DPROG_INSTALLINFO_PATH)?; 183 | dprog_installinfo.set_value("IconsVisible", &1u32) 184 | } 185 | 186 | /// Set the "IconsVisible" flag to false (we don't have any icons) 187 | fn hide_icons() -> io::Result<()> { 188 | // The expectations for this are documented here: https://docs.microsoft.com/en-us/windows/win32/shell/reg-middleware-apps#the-hide-icons-command 189 | let hkcu = RegKey::predef(HKEY_CURRENT_USER); 190 | if let Ok(dprog_installinfo) = hkcu.open_subkey(DPROG_INSTALLINFO_PATH) { 191 | dprog_installinfo.set_value("IconsVisible", &0u32) 192 | } else { 193 | Ok(()) 194 | } 195 | } 196 | 197 | fn get_exe_relative_path(filename: &str) -> io::Result { 198 | let mut path = std::env::current_exe()?; 199 | path.set_file_name(filename); 200 | Ok(path) 201 | } 202 | 203 | 204 | -------------------------------------------------------------------------------- /wix/main.wxs: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 46 | 47 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 69 | 70 | 80 | 81 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 106 | 111 | 112 | 113 | 114 | 122 | 123 | 124 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 145 | 146 | 150 | 151 | 152 | 153 | 154 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 173 | 174 | 175 | 176 | 177 | 186 | 187 | 188 | 189 | 190 | 191 | 201 | 1 202 | 1 203 | 204 | 205 | 206 | 207 | 212 | 213 | 214 | 215 | 223 | 224 | 225 | 226 | 234 | 235 | 236 | 237 | 238 | 239 | --------------------------------------------------------------------------------