Skip to content

Commit 75dec90

Browse files
committed
release: 0.4.3
2 parents 7b63e03 + 86cf859 commit 75dec90

File tree

11 files changed

+31
-15
lines changed

11 files changed

+31
-15
lines changed

CREDITS.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Project Dependencies
22
Package: pxsum
3-
Version: 0.4.2
3+
Version: 0.4.3
44
Target: x86_64-unknown-linux-gnu
5-
Generated: 2025-04-04 03:28:40 UTC
5+
Generated: 2025-04-11 06:22:27 UTC
66

77
| Package | Version | Author(s) | License |
88
| ---- | ---- | ---- | ---- |
@@ -17,13 +17,13 @@
1717
| [bytemuck](https://github.com/Lokathor/bytemuck) | 1.22.0 | [Lokathor](mailto:[email protected]) | Zlib OR Apache-2.0 OR MIT |
1818
| [byteorder](https://github.com/BurntSushi/byteorder) | 1.5.0 | [Andrew Gallant](mailto:[email protected]) | Unlicense OR MIT |
1919
| [byteorder-lite](https://github.com/image-rs/byteorder-lite) | 0.1.0 | | Unlicense OR MIT |
20-
| [cc](https://github.com/rust-lang/cc-rs) ⚒️ | 1.2.17 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
20+
| [cc](https://github.com/rust-lang/cc-rs) ⚒️ | 1.2.18 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
2121
| [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
2222
| [cmake](https://github.com/rust-lang/cmake-rs) ⚒️ | 0.1.54 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
2323
| [color_quant](https://github.com/image-rs/color_quant.git) | 1.1.0 | [nwin](mailto:[email protected]) | MIT |
2424
| [constant_time_eq](https://github.com/cesarb/constant_time_eq) | 0.3.1 | [Cesar Eduardo Barros](mailto:[email protected]) | CC0-1.0 OR MIT-0 OR Apache-2.0 |
2525
| [crc32fast](https://github.com/srijs/rust-crc32fast) | 1.4.2 | [Sam Rijs](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
26-
| [**crossbeam-channel**](https://github.com/crossbeam-rs/crossbeam) | 0.5.14 | | MIT OR Apache-2.0 |
26+
| [**crossbeam-channel**](https://github.com/crossbeam-rs/crossbeam) | 0.5.15 | | MIT OR Apache-2.0 |
2727
| [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) | 0.8.21 | | MIT OR Apache-2.0 |
2828
| [**dactyl**](https://github.com/Blobfolio/dactyl) | 0.10.1 | [Josh Stoik](mailto:[email protected]) | WTFPL |
2929
| [darling](https://github.com/TedDriggs/darling) | 0.20.11 | [Ted Driggs](mailto:[email protected]) | MIT |
@@ -36,9 +36,10 @@
3636
| [fdeflate](https://github.com/image-rs/fdeflate) | 0.3.7 | The image-rs Developers | MIT OR Apache-2.0 |
3737
| [flate2](https://github.com/rust-lang/flate2-rs) | 1.1.1 | [Alex Crichton](mailto:[email protected]) and [Josh Triplett](mailto:[email protected]) | MIT OR Apache-2.0 |
3838
| [fnv](https://github.com/servo/rust-fnv) | 1.0.7 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 OR MIT |
39-
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.0.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
39+
| [**fyi_ansi**](https://github.com/Blobfolio/fyi) | 2.0.2 | [Josh Stoik](mailto:[email protected]) | WTFPL |
40+
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.0.2 | [Josh Stoik](mailto:[email protected]) | WTFPL |
4041
| [gif](https://github.com/image-rs/image-gif) | 0.13.1 | The image-rs Developers | MIT OR Apache-2.0 |
41-
| [half](https://github.com/starkat99/half-rs) | 2.5.0 | [Kathryn Long](mailto:[email protected]) | MIT OR Apache-2.0 |
42+
| [half](https://github.com/VoidStarKat/half-rs) | 2.6.0 | [Kathryn Long](mailto:[email protected]) | MIT OR Apache-2.0 |
4243
| [hash32](https://github.com/japaric/hash32) | 0.3.1 | [Jorge Aparicio](mailto:[email protected]) | MIT OR Apache-2.0 |
4344
| [heapless](https://github.com/rust-embedded/heapless) | 0.8.0 | [Jorge Aparicio](mailto:[email protected]), [Per Lindgren](mailto:[email protected]), and [Emil Fresk](mailto:[email protected]) | MIT OR Apache-2.0 |
4445
| [ident_case](https://github.com/TedDriggs/ident_case) | 1.0.1 | [Ted Driggs](mailto:[email protected]) | MIT OR Apache-2.0 |
@@ -54,7 +55,7 @@
5455
| [libc](https://github.com/rust-lang/libc) | 0.2.171 | The Rust Project Developers | MIT OR Apache-2.0 |
5556
| [libdav1d-sys](https://github.com/njaard/libavif-rs) | 0.7.1+libdav1d.1.4.3 | [Charles Samuels](mailto:[email protected]), [Paolo Barbolini](mailto:[email protected]), and [Kornel](mailto:[email protected]) | BSD-2-Clause |
5657
| [log](https://github.com/rust-lang/log) | 0.4.27 | The Rust Project Developers | MIT OR Apache-2.0 |
57-
| [miniz_oxide](https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide) | 0.8.7 | [Frommi](mailto:[email protected]), [oyvindln](mailto:[email protected]), and Rich Geldreich [email protected] | MIT OR Zlib OR Apache-2.0 |
58+
| [miniz_oxide](https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide) | 0.8.8 | [Frommi](mailto:[email protected]), [oyvindln](mailto:[email protected]), and Rich Geldreich [email protected] | MIT OR Zlib OR Apache-2.0 |
5859
| [num-traits](https://github.com/rust-num/num-traits) | 0.2.19 | The Rust Project Developers | MIT OR Apache-2.0 |
5960
| [openjpeg-sys](https://github.com/kornelski/openjpeg-sys) | 1.0.11 | [Kornel](mailto:[email protected]) | BSD-2-Clause |
6061
| [pkg-config](https://github.com/rust-lang/pkg-config-rs) ⚒️ | 0.3.32 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pxsum"
3-
version = "0.4.2"
3+
version = "0.4.3"
44
license = "WTFPL"
55
authors = ["Josh Stoik <[email protected]>"]
66
edition = "2024"
@@ -93,6 +93,7 @@ description = "One or more image file paths to checksum, or if -c/--check, one o
9393
[dependencies]
9494
crossbeam-channel = "=0.5.*"
9595
dactyl = "0.10.*"
96+
fyi_ansi = "2.0.*"
9697
fyi_msg = "2.0.*"
9798
trimothy = "0.7.*"
9899
walkdir = "=2.5.*"

release/man/pxsum.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH "PXSUM" "1" "April 2025" "pxsum v0.4.2" "User Commands"
1+
.TH "PXSUM" "1" "April 2025" "pxsum v0.4.3" "User Commands"
22
.SH NAME
3-
PXSUM \- Manual page for pxsum v0.4.2.
3+
PXSUM \- Manual page for pxsum v0.4.3.
44
.SH DESCRIPTION
55
Calculate and verify checksums for decoded image pixel data.
66
.SS USAGE:

skel/assets/coolbear.avif

36 KB
Binary file not shown.

skel/loose-g.chk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ a4fc68ef9c97524c08c21728677c0d60e5fb1dfa053f9ecd57b3e493a4f7571b
3838
./assets/atom.png
3939
a6a36520b473a998e995da6085c9ddebfdb1a780d0e187fac880996ef78e4e10
4040
./assets/poe.png
41+
c2ef98aef1f18f50acd2b08efcd72ee49b049fb6c18d5cf418023579b4775e0a
42+
./assets/coolbear.avif
4143
cc8a755c15807e2ae4047e27aa2a61eecf04973df73ea7d17a0ef1dec76d262f
4244
./assets/carl.jpg

skel/loose.chk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ a4fc68ef9c97524c08c21728677c0d60e5fb1dfa053f9ecd57b3e493a4f7571b ./assets/atom.
88
82f83e0346bf4c54a12bb09b8ce772e02c308346e78441496c19bf4bc6ebde23 ./assets/blue-4x1.png
99
cc8a755c15807e2ae4047e27aa2a61eecf04973df73ea7d17a0ef1dec76d262f ./assets/carl.jpg
1010
686be0f491094213c03bf707f7fcd7a4d63d52a7c22b4681ad6283c4d9501c07 ./assets/cmyk.JPG
11+
c2ef98aef1f18f50acd2b08efcd72ee49b049fb6c18d5cf418023579b4775e0a ./assets/coolbear.avif
1112
9072d2d6fe159f09af577c1267393a9b2d26aa05a29316360c284d79d2c4f1d1 ./assets/dingo.png
1213
a48d73026eb940d01f255638499d6f6d08109a2619e92b724ee1c48827324e79 ./assets/down_arrow.gif
1314
5ec921b3d970cfb945e521ce7cd212297b383ce6702de8f103f6b58b3297f53b ./assets/firefox.png

skel/strict-g.chk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ d9ae6834d48983bd611d7b729330311cba79b9b783c71d5c1bd1a43833934ab3
4343
./assets/waldorf.png
4444
f3de89a1cc59e0397fe9b9bca7530c526741601b1c852e683c4a1648a60aeb1e
4545
./assets/down_arrow.gif
46+
fb3391ae076cc67d88efe0c6b8a59c581fdff8c8689d5acd65af3bec192695ae
47+
./assets/coolbear.avif

skel/strict.chk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ a5fc68ef9c97524c08c21728677c0d60e5fb1dfa053f9ecd57b3e493a4f7571b ./assets/atom.
88
83f83e0346bf4c54a12bb09b8ce772e02c308346e78441496c19bf4bc6ebde23 ./assets/blue-4x1.png
99
cd8a755c15807e2ae4047e27aa2a61eecf04973df73ea7d17a0ef1dec76d262f ./assets/carl.jpg
1010
696be0f491094213c03bf707f7fcd7a4d63d52a7c22b4681ad6283c4d9501c07 ./assets/cmyk.JPG
11+
fb3391ae076cc67d88efe0c6b8a59c581fdff8c8689d5acd65af3bec192695ae ./assets/coolbear.avif
1112
9172d2d6fe159f09af577c1267393a9b2d26aa05a29316360c284d79d2c4f1d1 ./assets/dingo.png
1213
f3de89a1cc59e0397fe9b9bca7530c526741601b1c852e683c4a1648a60aeb1e ./assets/down_arrow.gif
1314
1bc87478d6b037c2de02186b2c5c22cd6b789cfe9100bd3bc5a987b363ddf419 ./assets/firefox.png

src/error.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# pxsum: Errors.
33
*/
44

5+
use fyi_ansi::{
6+
ansi,
7+
csi,
8+
};
59
use fyi_msg::MsgKind;
610
use image::error::ImageError;
711
use std::{
@@ -24,7 +28,7 @@ const HELP: &str = concat!(r"
2428
\ _T_/-._( (
2529
/ `. \
2630
| _ \ |
27-
\ \ , / | ", "\x1b[38;5;199mpxsum\x1b[0;38;5;69m v", env!("CARGO_PKG_VERSION"), "\x1b[0m", r#"
31+
\ \ , / | ", csi!(199), "pxsum", ansi!((cornflower_blue) " v", env!("CARGO_PKG_VERSION")), r#"
2832
|| |-_\__ / Checksum decoded
2933
((_/`(____,-' image pixel data.
3034

src/img.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl PxKind {
195195
Some([0x89, b'P', b'N', b'G', 0x0d, 0x0a, 0x1a, 0x0a, ..]) => Ok(Self::Png),
196196
Some([b'G', b'I', b'F', b'8', b'7' | b'9', b'a', ..]) => Ok(Self::Gif),
197197
Some([b'R', b'I', b'F', b'F', _, _, _, _, b'W', b'E', b'B', b'P']) => Ok(Self::WebP),
198-
Some([0x00, 0x00, 0x00, 0x20 | 0x1c, b'f', b't', b'y', b'p', b'a', b'v', b'i', b'f']) => Ok(Self::Avif),
198+
Some([_, _, _, _, b'f', b't', b'y', b'p', b'a', b'v', b'i', b'f']) => Ok(Self::Avif),
199199
Some([0xff, 0x0a, ..] | [0x00, 0x00, 0x00, 0x0c, b'J', b'X', b'L', 0x20, 0x0d, 0x0a, 0x87, 0x0a]) => Ok(Self::JpegXl),
200200
Some([b'B', b'M', ..]) => Ok(Self::Bmp),
201201
Some([0x00, 0x00, 0x01, 0x00, ..]) => Ok(Self::Ico),
@@ -333,6 +333,7 @@ mod test {
333333
("skel/assets/atom.png", Some(PxKind::Png)),
334334
("skel/assets/carl.jpg", Some(PxKind::Jpeg)),
335335
("skel/assets/cmyk.JPG", Some(PxKind::Jpeg)),
336+
("skel/assets/coolbear.avif", Some(PxKind::Avif)),
336337
("skel/assets/dingo.png", Some(PxKind::Png)),
337338
("skel/assets/down_arrow.gif", Some(PxKind::Gif)),
338339
("skel/assets/empty.jpg", None), // Empty file.

0 commit comments

Comments
 (0)