#rustc #filename #file #checks #requirements #cargo #with

bin+lib ruri

Calculates the CRC-32 of a file and checks it against the filename

1 stable release

2.0.0 Jan 31, 2021

AGPL-3.0-or-later

25KB
387 lines

Ruri

A program that calculates the CRC-32 of a file and checks it against the filename.

Requirements

  • Cargo 1.49.0 (with RustC)

Installation

From repo

Ruri is available in the following repos:

  • Arch Linux AUR

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

  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 target/release/:
    $ cargo build --release --package ruri --bin ruri
    
  4. Move or link the exe executable to a logical location such as your /usr/bin/ or /usr/local/bin/ directory.

Usage

USAGE:
    ruri [FLAGS] [OPTIONS] <file path>...

FLAGS:
    -h, --help       Prints help information
    -q, --quiet      Don't print progressbars, for piping to files
    -V, --version    Prints version information

OPTIONS:
    -t, --threads <THREADS>    Override the amount of threads, 0 is CPU max [default: 0]

ARGS:
    <file path>...    The files you want to check

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

~2.5MB
~61K SLoC