#cargo #bin

app ruri

Calculates the CRC-32 of files and checks them against their filename

3 stable releases

2.1.0 Jun 4, 2023
2.0.1 Aug 3, 2022
2.0.0 Jan 31, 2021

#254 in Development tools

AGPL-3.0-or-later

26KB
377 lines

Ruri

Pipeline status Crates version AUR version AUR version Homebrew tap

Calculates the CRC-32 of files and checks them against their filename.

Installation

From repo

Ruri is available in the following repos:

From release

  1. Download a pre-built binary archive from the releases page.
  2. Extract the archive.
  3. Move the executable to a logical location such as your /usr/bin/ or /usr/local/bin/ directory.

From source

Requirements

  • Rust >= 1.64
  1. Pull the project, or download an archive of the source from GitLab and extract it.
  2. Install a Rust toolchain.
  3. Run the following in the root directory to build an executable to ./bin/:
    $ cargo install --locked --bin ruri --path . --root .
    
  4. Move or link the exe executable to a logical location such as your /usr/bin/ or /usr/local/bin/ directory.

Usage

Usage: ruri [OPTIONS] [FILE_PATHS]...

Arguments:
  [FILE_PATHS]...  Paths to files you want to check

Options:
  -t, --threads <THREADS>  Override the amount of threads, 0 is CPU max [default: 0]
  -q, --quiet              Don't print progress bars, for piping to files
  -h, --help               Print help
  -V, --version            Print version

Basic examples:

$ ruri "myFile[ABCD1234].ext" myFiles*.ext
$ ruri -q myFiles*.ext > myFiles.crc32

Licence

GNU Affero General Public License v3.0 or later

Dependencies

~5–15MB
~164K SLoC