diff --git a/CREDITS.md b/CREDITS.md index 3663234..581397a 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,18 +1,18 @@ # Project Dependencies Package: flaca - Version: 2.0.3 - Generated: 2022-08-11 20:33:47 UTC + Version: 2.0.4 + Generated: 2022-08-19 05:32:31 UTC | Package | Version | Author(s) | License | | ---- | ---- | ---- | ---- | | [adler](https://github.com/jonas-schievink/adler.git) | 1.0.2 | [Jonas Schievink](mailto:jonasschievink@gmail.com) | 0BSD, Apache-2.0, or MIT | | [adler32](https://github.com/remram44/adler32-rs) | 1.2.0 | [Remi Rampin](mailto:remirampin@gmail.com) | Zlib | | [ahash](https://github.com/tkaitchuck/ahash) | 0.8.0 | [Tom Kaitchuck](mailto:tom.kaitchuck@gmail.com) | Apache-2.0 or MIT | -| [argyle](https://github.com/Blobfolio/argyle) | 0.6.1 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [argyle](https://github.com/Blobfolio/argyle) | 0.6.2 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [bit-vec](https://github.com/contain-rs/bit-vec) | 0.6.3 | [Alexis Beingessner](mailto:a.beingessner@gmail.com) | Apache-2.0 or MIT | | [bitflags](https://github.com/bitflags/bitflags) | 1.3.2 | The Rust Project Developers | Apache-2.0 or MIT | | [bytecount](https://github.com/llogiq/bytecount) | 0.6.3 | [Andre Bogus](mailto:bogusandre@gmail.de) and [Joshua Landau](mailto:joshua@landau.ws) | Apache-2.0 or MIT | -| [bytemuck](https://github.com/Lokathor/bytemuck) | 1.11.0 | [Lokathor](mailto:zefria@gmail.com) | Apache-2.0, MIT, or Zlib | +| [bytemuck](https://github.com/Lokathor/bytemuck) | 1.12.1 | [Lokathor](mailto:zefria@gmail.com) | Apache-2.0, MIT, or Zlib | | [byteorder](https://github.com/BurntSushi/byteorder) | 1.4.3 | [Andrew Gallant](mailto:jamslam@gmail.com) | MIT or Unlicense | | [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:alex@alexcrichton.com) | Apache-2.0 or MIT | | [color_quant](https://github.com/image-rs/color_quant.git) | 1.1.0 | [nwin](mailto:nwin@users.noreply.github.com) | MIT | @@ -23,11 +23,11 @@ | [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) | 0.8.2 | | Apache-2.0 or MIT | | [crossbeam-epoch](https://github.com/crossbeam-rs/crossbeam) | 0.9.10 | | Apache-2.0 or MIT | | [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) | 0.8.11 | | Apache-2.0 or MIT | -| [ctrlc](https://github.com/Detegr/rust-ctrlc.git) | 3.2.2 | [Antti Keränen](mailto:detegr@gmail.com) | Apache-2.0 or MIT | -| [dactyl](https://github.com/Blobfolio/dactyl) | 0.4.1 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [ctrlc](https://github.com/Detegr/rust-ctrlc.git) | 3.2.3 | [Antti Keränen](mailto:detegr@gmail.com) | Apache-2.0 or MIT | +| [dactyl](https://github.com/Blobfolio/dactyl) | 0.4.2 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [deflate](https://github.com/image-rs/deflate-rs) | 0.8.6 | [oyvindln](mailto:oyvindln@users.noreply.github.com) | Apache-2.0 or MIT | | [dowser](https://github.com/Blobfolio/dowser) | 0.5.3 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | -| [either](https://github.com/bluss/either) | 1.7.0 | bluss | Apache-2.0 or MIT | +| [either](https://github.com/bluss/either) | 1.8.0 | bluss | Apache-2.0 or MIT | | [fastrand](https://github.com/smol-rs/fastrand) | 1.8.0 | [Stjepan Glavina](mailto:stjepang@gmail.com) | Apache-2.0 or MIT | | [fyi_msg](https://github.com/Blobfolio/fyi) | 0.9.15 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [getrandom](https://github.com/rust-random/getrandom) | 0.2.7 | The Rand Project Developers | Apache-2.0 or MIT | @@ -35,20 +35,20 @@ | [image](https://github.com/image-rs/image) | 0.23.14 | The image-rs Developers | MIT | | [indexmap](https://github.com/bluss/indexmap) | 1.9.1 | | Apache-2.0 or MIT | | [itertools](https://github.com/rust-itertools/itertools) | 0.10.3 | bluss | Apache-2.0 or MIT | -| [libc](https://github.com/rust-lang/libc) | 0.2.129 | The Rust Project Developers | Apache-2.0 or MIT | +| [libc](https://github.com/rust-lang/libc) | 0.2.132 | The Rust Project Developers | Apache-2.0 or MIT | | [libdeflate-sys](https://github.com/adamkewley/libdeflater) | 0.7.5 | [Adam Kewley](mailto:contact@adamkewley.com) | Apache-2.0 | | [libdeflater](https://github.com/adamkewley/libdeflater) | 0.7.5 | [Adam Kewley](mailto:contact@adamkewley.com) | Apache-2.0 | | [log](https://github.com/rust-lang/log) | 0.4.17 | The Rust Project Developers | Apache-2.0 or MIT | | [memoffset](https://github.com/Gilnaa/memoffset) | 0.6.5 | [Gilad Naaman](mailto:gilad.naaman@gmail.com) | MIT | | [miniz_oxide](https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide) | 0.3.7 | [Frommi](mailto:daniil.liferenko@gmail.com) and [oyvindln](mailto:oyvindln@users.noreply.github.com) | MIT | | [miniz_oxide](https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide) | 0.5.3 | [Frommi](mailto:daniil.liferenko@gmail.com) and [oyvindln](mailto:oyvindln@users.noreply.github.com) | Apache-2.0, MIT, or Zlib | -| [mozjpeg-sys](https://github.com/kornelski/mozjpeg-sys.git) | 1.0.2 | [Kornel](mailto:kornel@geekhood.net) | IJG | +| [mozjpeg-sys](https://github.com/kornelski/mozjpeg-sys.git) | 1.0.3 | [Kornel](mailto:kornel@geekhood.net) | IJG | | [num-integer](https://github.com/rust-num/num-integer) | 0.1.45 | The Rust Project Developers | Apache-2.0 or MIT | | [num-iter](https://github.com/rust-num/num-iter) | 0.1.43 | The Rust Project Developers | Apache-2.0 or MIT | | [num-rational](https://github.com/rust-num/num-rational) | 0.3.2 | The Rust Project Developers | Apache-2.0 or MIT | | [num-traits](https://github.com/rust-num/num-traits) | 0.2.15 | The Rust Project Developers | Apache-2.0 or MIT | | [num_cpus](https://github.com/seanmonstar/num_cpus) | 1.13.1 | [Sean McArthur](mailto:sean@seanmonstar.com) | Apache-2.0 or MIT | -| [once_cell](https://github.com/matklad/once_cell) | 1.13.0 | [Aleksey Kladov](mailto:aleksey.kladov@gmail.com) | Apache-2.0 or MIT | +| [once_cell](https://github.com/matklad/once_cell) | 1.13.1 | [Aleksey Kladov](mailto:aleksey.kladov@gmail.com) | Apache-2.0 or MIT | | [oxipng](https://github.com/shssoichiro/oxipng) | 5.0.1 | [Joshua Holmer](mailto:jholmer.in@gmail.com) | MIT | | [png](https://github.com/image-rs/image-png.git) | 0.16.8 | [nwin](mailto:nwin@users.noreply.github.com) | Apache-2.0 or MIT | | [rayon](https://github.com/rayon-rs/rayon) | 1.5.3 | [Niko Matsakis](mailto:niko@alum.mit.edu) and [Josh Stone](mailto:cuviper@gmail.com) | Apache-2.0 or MIT | diff --git a/Cargo.toml b/Cargo.toml index 2e1601e..2372539 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flaca" -version = "2.0.3" +version = "2.0.4" license = "WTFPL" authors = ["Josh Stoik "] edition = "2021" @@ -96,7 +96,7 @@ items = [ [dependencies] argyle = "0.6.*" -ctrlc = "=3.2.2" +ctrlc = "=3.2.3" dowser = "0.5.*" libc = "0.2.*" rayon = "=1.5.3" @@ -107,7 +107,7 @@ version = "0.9.*, >=0.9.8" features = [ "progress" ] [dependencies.mozjpeg-sys] -version = "=1.0.2" +version = "=1.0.3" features = [ "jpegtran" ] [dependencies.oxipng] diff --git a/release/man/flaca.1 b/release/man/flaca.1 index 6110239..ce4367f 100644 --- a/release/man/flaca.1 +++ b/release/man/flaca.1 @@ -1,6 +1,6 @@ -.TH "FLACA" "1" "August 2022" "Flaca v2.0.3" "User Commands" +.TH "FLACA" "1" "August 2022" "Flaca v2.0.4" "User Commands" .SH NAME -Flaca \- Manual page for flaca v2.0.3. +Flaca \- Manual page for flaca v2.0.4. .SH DESCRIPTION Brute\-force, lossless JPEG and PNG compression. .SS USAGE: diff --git a/src/main.rs b/src/main.rs index 8466a90..7ecd680 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,6 +57,7 @@ use fyi_msg::{ Progless, }; use rayon::iter::{ + IndexedParallelIterator, IntoParallelRefIterator, ParallelIterator, }; @@ -153,7 +154,7 @@ fn _main() -> Result<(), FlacaError> { // Process! sigint(Arc::clone(&killed), Some(progress.clone())); - paths.par_iter().for_each(|x| + paths.par_iter().with_max_len(1).for_each(|x| if ! killed.load(Acquire) { let tmp = x.to_string_lossy(); progress.add(&tmp);