Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ env:
CARGO_TERM_COLOR: always
jobs:
test:
name: 'coverage'
name: "coverage"
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [stable]
include:
- build: stable
os: ubuntu-latest
rust: nightly
- build: stable
os: ubuntu-latest
rust: nightly
steps:
- name: 'Checkout repository'
uses: actions/checkout@v2.3.4
with:
fetch-depth: 1
- name: 'Enable caching'
uses: Swatinem/rust-cache@v1.3.0
- name: Push to codecov.io
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml
bash <(curl -s https://codecov.io/bash) -X gcov -t $CODECOV_TOKEN
- name: "Checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: "Enable caching"
uses: Swatinem/rust-cache@v2

- name: Push to codecov.io
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml
bash <(curl -s https://codecov.io/bash) -X gcov -t $CODECOV_TOKEN
46 changes: 23 additions & 23 deletions .github/workflows/crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@ env:
CARGO_TERM_COLOR: always
jobs:
test:
name: 'publish'
name: "publish"
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux]
include:
- build: linux
os: ubuntu-latest
rust: stable
- build: linux
os: ubuntu-latest
rust: stable
steps:
- name: 'Checkout repository'
uses: actions/checkout@v2.3.4
with:
fetch-depth: 1

- name: 'Install Rust'
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: ${{ matrix.rust }}
override: true
profile: default

- name: 'Enable caching'
uses: Swatinem/rust-cache@v1.3.0
- name: "Checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: 'Publish on crates.io'
uses: actions-rs/cargo@v1.0.1
with:
command: publish
args: --verbose --all-features --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: default

- name: "Enable caching"
uses: Swatinem/rust-cache@v2

- name: "Publish on crates.io"
uses: actions-rs/cargo@v1
with:
command: publish
args: --verbose --all-features --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,22 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}

- name: 'Enable caching'
uses: Swatinem/rust-cache@v1
- name: "Enable caching"
uses: Swatinem/rust-cache@v2

- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features --release --target=${{ matrix.target }}
args: --all-features --release --target=${{ matrix.target }}
use-cross: ${{ matrix.cross }}

- name: Compress binaries
Expand All @@ -99,7 +99,7 @@ jobs:
if: ${{ matrix.compress }}

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: ${{ matrix.artifact_name }}
Expand All @@ -116,7 +116,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')

- name: Publish
uses: svenstaro/upload-release-action@v2
uses: svenstaro/upload-release-action@v2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.artifact_name }}
Expand Down
46 changes: 23 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
[package]
name = "quickdash"
description = "A modern alternative to QuickSFV using Rust."
repository = "https://github.com/AndreVuillemot/QuickDash"
repository = "https://github.com/iamtakingithard/QuickDash"
readme = "README.md"
keywords = ["cli", "hash", "verify"]
categories = ["authentication", "filesystem", "command-line-utilities"]
license = "Apache-2.0"
version = "0.6.1"
authors = ["cerda", "b1tzxd", "mjc"]
edition = "2021"
authors = ["cerda", "b1tzxd", "mjc", "taskylizard"]
edition = "2024"

[dependencies]
once_cell = "1.10.0"
tabwriter = "1.2.1"
num_cpus = "1.13.1"
indicatif = { version = "0.16.2", features = ["rayon"] }
rayon = "1.5.1"
walkdir = "2.3.2"
regex = "1.5.5"
clap = { version = "3.1.8", features = ["derive"] }
crc32fast = "1.3.2"
blake2 = "0.10.4"
md-5 = "0.10.1"
blake3 = "1.3.1"
sha-1 = "0.10.0"
sha2 = "0.10.2"
sha3 = "0.10.1"
whirlpool = "0.10.1"
xxhash-rust = { version = "0.8.4", features = ["xxh32", "xxh64", "xxh3"] }
blake2 = "0.10.4"
blake3 = "1.3.1"
clap = { version = "4.4.10", features = ["derive"] }
crc32fast = "1.3.2"
indicatif = { version = "0.17.11", features = ["rayon"] }
md-5 = "0.10.1"
num_cpus = "1.13.1"
once_cell = "1.10.0"
rayon = "1.5.1"
regex = "1.5.5"
sha-1 = "0.10.0"
sha2 = "0.10.2"
sha3 = "0.10.1"
tabwriter = "1.2.1"
walkdir = "2.3.2"
whirlpool = "0.10.1"
xxhash-rust = { version = "0.8.4", features = ["xxh3", "xxh32", "xxh64"] }

[profile.release]
lto = true
codegen-units = 1
debug = false
debug = false
lto = true
# panic = 'abort'

[[bin]]
doc = false
name = "quickdash"
path = "src/main.rs"
test = false
doc = false

[lib]
name = "quickdash"
Expand Down
6 changes: 3 additions & 3 deletions src/algorithms.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,7 +15,7 @@

use std::str::FromStr;

use clap::ArgEnum;
use clap::ValueEnum;

/// A hashing algorithm.
///
Expand All @@ -33,7 +33,7 @@ use clap::ArgEnum;
/// );
/// ```

#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord, ArgEnum)]
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
pub enum Algorithm {
SHA1,
SHA2224,
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/blake2b.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/blake2s.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/blake3.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/crc32.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/md5.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha2_224.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha2_256.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha2_384.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha2_512.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha3_224.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha3_256.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha3_384.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/sha3_512.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/whirlpool.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/xxh3.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/xxh32.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/hashing/xxh64.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
19 changes: 3 additions & 16 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright [2021] [Cerda]
/* Copyright [2025] [Cerda]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -143,7 +143,7 @@
//! up to `jobs` times.
//!
//! No/empty value: # of CPU threads. value = 0: maximum, of u8 (255)
//!
//!
//! ```
//!
//! [DIRECTORY]
Expand Down Expand Up @@ -188,20 +188,7 @@
//! E84E380AEBDA3D98E96267201D61784C3D6FFB128C4D669E6C1D994C7D7BF32B Cross.toml
//! ```

#![deny(
anonymous_parameters,
clippy::all,
const_err,
illegal_floating_point_literal_pattern,
late_bound_lifetime_arguments,
path_statements,
patterns_in_fns_without_body,
rust_2018_idioms,
trivial_casts,
trivial_numeric_casts,
unsafe_code,
unused_extern_crates
)]
#![deny(unsafe_code)]
#![allow(clippy::tabs_in_doc_comments)]

mod algorithms;
Expand Down
Loading