Skip to content

Commit

Permalink
release: 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Oct 18, 2024
2 parents 5eea7db + 64925cb commit 730726c
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 282 deletions.
27 changes: 14 additions & 13 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Project Dependencies
Package: pxsum
Version: 0.1.0
Generated: 2024-10-01 03:32:08 UTC
Version: 0.1.1
Generated: 2024-10-18 01:54:50 UTC

| Package | Version | Author(s) | License |
| ---- | ---- | ---- | ---- |
| [adler2](https://github.com/oyvindln/adler2) | 2.0.0 | [Jonas Schievink](mailto:[email protected]) and [oyvindln](mailto:[email protected]) | 0BSD, Apache-2.0, or MIT |
| [anyhow](https://github.com/dtolnay/anyhow) | 1.0.89 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
| [argyle](https://github.com/Blobfolio/argyle) | 0.10.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [arrayref](https://github.com/droundy/arrayref) | 0.3.9 | [David Roundy](mailto:[email protected]) | BSD-2-Clause |
| [arrayvec](https://github.com/bluss/arrayvec) | 0.7.6 | bluss | Apache-2.0 or MIT |
| [bitflags](https://github.com/bitflags/bitflags) | 1.3.2 | The Rust Project Developers | Apache-2.0 or MIT |
| [blake3](https://github.com/BLAKE3-team/BLAKE3) | 1.5.4 | [Jack O'Connor](mailto:[email protected]) and Samuel Neves | Apache-2.0, Apache-2.0 WITH LLVM-exception, or CC0-1.0 |
| [bytemuck](https://github.com/Lokathor/bytemuck) | 1.18.0 | [Lokathor](mailto:[email protected]) | Apache-2.0, MIT, or Zlib |
| [bytemuck](https://github.com/Lokathor/bytemuck) | 1.19.0 | [Lokathor](mailto:[email protected]) | Apache-2.0, MIT, or Zlib |
| [byteorder](https://github.com/BurntSushi/byteorder) | 1.5.0 | [Andrew Gallant](mailto:[email protected]) | MIT or Unlicense |
| [byteorder-lite](https://github.com/image-rs/byteorder-lite) | 0.1.0 | | MIT or Unlicense |
| [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
Expand All @@ -24,33 +25,33 @@
| [darling](https://github.com/TedDriggs/darling) | 0.20.10 | [Ted Driggs](mailto:[email protected]) | MIT |
| [darling_core](https://github.com/TedDriggs/darling) | 0.20.10 | [Ted Driggs](mailto:[email protected]) | MIT |
| [darling_macro](https://github.com/TedDriggs/darling) | 0.20.10 | [Ted Driggs](mailto:[email protected]) | MIT |
| [derive_builder](https://github.com/colin-kiegel/rust-derive-builder) | 0.20.1 | [Colin Kiegel](mailto:[email protected]), [Pascal Hertleif](mailto:[email protected]), [Jan-Erik Rediger](mailto:[email protected]), and [Ted Driggs](mailto:[email protected]) | Apache-2.0 or MIT |
| [derive_builder_core](https://github.com/colin-kiegel/rust-derive-builder) | 0.20.1 | [Colin Kiegel](mailto:[email protected]), [Pascal Hertleif](mailto:[email protected]), [Jan-Erik Rediger](mailto:[email protected]), and [Ted Driggs](mailto:[email protected]) | Apache-2.0 or MIT |
| [derive_builder_macro](https://github.com/colin-kiegel/rust-derive-builder) | 0.20.1 | [Colin Kiegel](mailto:[email protected]), [Pascal Hertleif](mailto:[email protected]), [Jan-Erik Rediger](mailto:[email protected]), and [Ted Driggs](mailto:[email protected]) | Apache-2.0 or MIT |
| [derive_builder](https://github.com/colin-kiegel/rust-derive-builder) | 0.20.2 | [Colin Kiegel](mailto:[email protected]), [Pascal Hertleif](mailto:[email protected]), [Jan-Erik Rediger](mailto:[email protected]), and [Ted Driggs](mailto:[email protected]) | Apache-2.0 or MIT |
| [derive_builder_core](https://github.com/colin-kiegel/rust-derive-builder) | 0.20.2 | [Colin Kiegel](mailto:[email protected]), [Pascal Hertleif](mailto:[email protected]), [Jan-Erik Rediger](mailto:[email protected]), and [Ted Driggs](mailto:[email protected]) | Apache-2.0 or MIT |
| [derive_builder_macro](https://github.com/colin-kiegel/rust-derive-builder) | 0.20.2 | [Colin Kiegel](mailto:[email protected]), [Pascal Hertleif](mailto:[email protected]), [Jan-Erik Rediger](mailto:[email protected]), and [Ted Driggs](mailto:[email protected]) | Apache-2.0 or MIT |
| [faster-hex](https://github.com/NervosFoundation/faster-hex) | 0.10.0 | [zhangsoledad](mailto:[email protected]) | MIT |
| [fdeflate](https://github.com/image-rs/fdeflate) | 0.3.5 | The image-rs Developers | Apache-2.0 or MIT |
| [flate2](https://github.com/rust-lang/flate2-rs) | 1.0.34 | [Alex Crichton](mailto:[email protected]) and [Josh Triplett](mailto:[email protected]) | Apache-2.0 or MIT |
| [fnv](https://github.com/servo/rust-fnv) | 1.0.7 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.14.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [fyi_msg](https://github.com/Blobfolio/fyi) | 1.1.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [gif](https://github.com/image-rs/image-gif) | 0.13.1 | The image-rs Developers | Apache-2.0 or MIT |
| [half](https://github.com/starkat99/half-rs) | 2.4.1 | [Kathryn Long](mailto:[email protected]) | Apache-2.0 or MIT |
| [ident_case](https://github.com/TedDriggs/ident_case) | 1.0.1 | [Ted Driggs](mailto:[email protected]) | Apache-2.0 or MIT |
| [image](https://github.com/image-rs/image) | 0.25.2 | The image-rs Developers | Apache-2.0 or MIT |
| [image-webp](https://github.com/image-rs/image-webp) | 0.1.3 | | Apache-2.0 or MIT |
| [image](https://github.com/image-rs/image) | 0.25.4 | The image-rs Developers | Apache-2.0 or MIT |
| [image-webp](https://github.com/image-rs/image-webp) | 0.2.0 | | Apache-2.0 or MIT |
| [jpeg-decoder](https://github.com/image-rs/jpeg-decoder) | 0.3.1 | The image-rs Developers | Apache-2.0 or MIT |
| [jpeg2k](https://github.com/Neopallium/jpeg2k) | 0.9.1 | [Robert G. Jakabosky](mailto:[email protected]) | Apache-2.0 or MIT |
| [jpegxl-rs](https://github.com/inflation/jpegxl-rs) | 0.11.0+libjxl-0.11.0 | [Inflation](mailto:[email protected]) | GPL-3.0-or-later |
| [jpegxl-sys](https://github.com/inflation/jpegxl-rs) | 0.11.0+libjxl-0.11.0 | [Inflation](mailto:[email protected]) | GPL-3.0-or-later |
| [jpegxl-rs](https://github.com/inflation/jpegxl-rs) | 0.11.1+libjxl-0.11.0 | [Inflation](mailto:[email protected]) | GPL-3.0-or-later |
| [jpegxl-sys](https://github.com/inflation/jpegxl-rs) | 0.11.1+libjxl-0.11.0 | [Inflation](mailto:[email protected]) | GPL-3.0-or-later |
| [libavif](https://github.com/njaard/libavif-rs) | 0.14.0 | [Charles Samuels](mailto:[email protected]) and [Paolo Barbolini](mailto:[email protected]) | BSD-2-Clause |
| [libavif-sys](https://github.com/njaard/libavif-rs) | 0.17.0+libavif.1.0.4 | [Charles Samuels](mailto:[email protected]) and [Paolo Barbolini](mailto:[email protected]) | BSD-2-Clause |
| [libc](https://github.com/rust-lang/libc) | 0.2.159 | The Rust Project Developers | Apache-2.0 or MIT |
| [libc](https://github.com/rust-lang/libc) | 0.2.161 | The Rust Project Developers | Apache-2.0 or MIT |
| [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 |
| [log](https://github.com/rust-lang/log) | 0.4.22 | The Rust Project Developers | Apache-2.0 or MIT |
| [miniz_oxide](https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide) | 0.8.0 | [Frommi](mailto:[email protected]) and [oyvindln](mailto:[email protected]) | Apache-2.0, MIT, or Zlib |
| [num-traits](https://github.com/rust-num/num-traits) | 0.2.19 | The Rust Project Developers | Apache-2.0 or MIT |
| [openjpeg-sys](https://github.com/kornelski/openjpeg-sys) | 1.0.11 | [Kornel](mailto:[email protected]) | BSD-2-Clause |
| [png](https://github.com/image-rs/image-png) | 0.17.14 | The image-rs Developers | Apache-2.0 or MIT |
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.86 | [David Tolnay](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.88 | [David Tolnay](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
| [quick-error](http://github.com/tailhook/quick-error) | 2.0.1 | [Paul Colomiets](mailto:[email protected]) and [Colin Kiegel](mailto:[email protected]) | Apache-2.0 or MIT |
| [quote](https://github.com/dtolnay/quote) | 1.0.37 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
| [same-file](https://github.com/BurntSushi/same-file) | 1.0.6 | [Andrew Gallant](mailto:[email protected]) | MIT or Unlicense |
Expand Down
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pxsum"
version = "0.1.0"
version = "0.1.1"
license = "WTFPL"
authors = ["Josh Stoik <[email protected]>"]
edition = "2021"
Expand Down Expand Up @@ -88,10 +88,11 @@ label = "<PATH(s)…>"
description = "One or more image and/or directory paths."

[dependencies]
argyle = "0.10.*"
blake3 = "=1.5.4"
crossbeam-channel = "=0.5.*"
dactyl = "0.7.*"
fyi_msg = "0.14.*"
fyi_msg = "1.1.*"
trimothy = "0.3.*"
walkdir = "=2.5.*"

Expand All @@ -111,7 +112,7 @@ default-features = false
features = [ "image", "openjpeg-sys"]

[dependencies.jpegxl-rs]
version = "=0.11.0"
version = "=0.11.1"
default-features = false
features = [ "image", "vendored" ]

Expand All @@ -121,6 +122,7 @@ default-features = false
features = [ "codec-dav1d" ]

[build-dependencies]
argyle = "0.10.*"
dactyl = "0.7.*"

[build-dependencies.image]
Expand Down
46 changes: 40 additions & 6 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,46 @@
# pxsum: Build Script
*/

use argyle::KeyWordsBuilder;
use dactyl::NiceU32;
use image::ImageFormat;
use std::{
collections::BTreeSet,
io::Write,
path::PathBuf,
};



/// # Pre-Compute Extensions.
/// # Pre-Compute CLI keys and Extensions.
pub fn main() {
build_cli();
build_ext();
}

/// # Build CLI Keys.
fn build_cli() {
let mut builder = KeyWordsBuilder::default();
builder.push_keys([
"--bench",
"-c", "--check",
"-g", "--group-by-checksum",
"-h", "--help",
"--no-warnings",
"--only-dupes",
"-q", "--quiet",
"--strict",
"-V", "--version",
]);
builder.push_keys_with_values([
"-d", "--dir",
"-j"
]);
builder.save(out_path("argyle.rs"));
}

/// # Build Extensions.
fn build_ext() {
// Collect the supported formats.
let formats: Vec<ImageFormat> = ImageFormat::all()
.filter(|f| f.can_read() && f.reading_enabled())
Expand Down Expand Up @@ -85,11 +114,16 @@ const fn check_extension(bytes: &[u8]) -> bool {{
.join(" | "),
);

let out_path = std::fs::canonicalize(std::env::var("OUT_DIR").expect("Missing OUT_DIR."))
.expect("Missing OUT_DIR.")
.join("pxsum-ext.rs");

std::fs::File::create(out_path)
std::fs::File::create(out_path("pxsum-ext.rs"))
.and_then(|mut f| f.write_all(out.as_bytes()).and_then(|_| f.flush()))
.expect("Unable to write file.");
}

/// # Output Path.
///
/// Append the sub-path to OUT_DIR and return it.
fn out_path(stub: &str) -> PathBuf {
std::fs::canonicalize(std::env::var("OUT_DIR").expect("Missing OUT_DIR."))
.expect("Missing OUT_DIR.")
.join(stub)
}
2 changes: 1 addition & 1 deletion release/completions/pxsum.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ _basher___pxsum() {
return 0
fi
case "${prev}" in
-d|--dir)
--dir|-d)
if [ -z "$( declare -f _filedir )" ]; then
COMPREPLY=( $( compgen -f "${cur}" ) )
else
Expand Down
4 changes: 2 additions & 2 deletions release/man/pxsum.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "PXSUM" "1" "October 2024" "pxsum v0.1.0" "User Commands"
.TH "PXSUM" "1" "October 2024" "pxsum v0.1.1" "User Commands"
.SH NAME
pxsum \- Manual page for pxsum v0.1.0.
PXSUM \- Manual page for pxsum v0.1.1.
.SH DESCRIPTION
Calculate and verify checksums for decoded image pixel data.
.SS USAGE:
Expand Down
Loading

0 comments on commit 730726c

Please sign in to comment.