From 7f154ceea33c4c8dcc3719836c89b9a79d39319c Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Sat, 23 May 2020 14:29:04 -0400 Subject: [PATCH] version 0.3.4 Changes since 0.3.3: - `b3sum` now supports the `--check` flag. This is intended to be a drop-in replacement for e.g. `md5sum --check` from Coreutils. The behavior is somewhat stricter than Coreutils with respect to invalid Unicode in filenames. For a complete description of how `--check` works, see the file `b3sum/what_does_check_do.md`. - To support the `--check` feature, backslashes and newlines that appear in filenames are now escaped in the output of `b3sum`. This is done the same way as in Coreutils. - To support `--check` interoperability between Unix and Windows, backslashes in filepaths on Windows are now replaced with forward slashes in the output of `b3sum`. Note that this is different from Coreutils. --- Cargo.toml | 2 +- b3sum/Cargo.toml | 2 +- b3sum/README.md | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 311414839..0d77fc807 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "blake3" -version = "0.3.3" +version = "0.3.4" authors = ["Jack O'Connor "] description = "the BLAKE3 hash function" repository = "https://github.com/BLAKE3-team/BLAKE3" diff --git a/b3sum/Cargo.toml b/b3sum/Cargo.toml index 3b1368c54..56ed38184 100644 --- a/b3sum/Cargo.toml +++ b/b3sum/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "b3sum" -version = "0.3.3" +version = "0.3.4" authors = ["Jack O'Connor "] description = "a command line implementation of the BLAKE3 hash function" repository = "https://github.com/BLAKE3-team/BLAKE3" diff --git a/b3sum/README.md b/b3sum/README.md index d8bf0c2b1..5e6465071 100644 --- a/b3sum/README.md +++ b/b3sum/README.md @@ -5,7 +5,7 @@ A command line utility for calculating Coreutils tools like `b2sum` or `md5sum`. ``` -b3sum 0.3.3 +b3sum 0.3.4 USAGE: b3sum [FLAGS] [OPTIONS] [file]... @@ -18,6 +18,8 @@ FLAGS: --no-mmap Disables memory mapping. Currently this also disables multithreading. --no-names Omits filenames in the output + --quiet Skips printing OK for each successfully verified file. + Must be used with --check. --raw Writes raw output bytes to stdout, rather than hex. --no-names is implied. In this case, only a single input is allowed. @@ -34,7 +36,8 @@ OPTIONS: RAYON_NUM_THREADS is also respected. ARGS: - ... + ... Files to hash, or checkfiles to check. When no file is given, + or when - is given, read standard input. ``` See also [this document about how the `--check` flag