-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
109 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ on: | |
push: | ||
branches: | ||
- master | ||
- dev | ||
paths: | ||
- ".github/workflows/*.yml" | ||
- "Cargo.toml" | ||
|
@@ -19,7 +18,6 @@ on: | |
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
paths: | ||
- ".github/workflows/*.yml" | ||
- "Cargo.toml" | ||
|
@@ -55,55 +53,14 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features -- --deny clippy::cargo | ||
|
||
deny: | ||
runs-on: ubuntu-latest | ||
name: Deny | ||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
default: true | ||
profile: minimal | ||
- name: Install cargo deny | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-deny | ||
- name: Run cargo deny | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: deny | ||
args: --all-features check | ||
|
||
security-audit: | ||
name: Security Audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
default: true | ||
profile: minimal | ||
- name: Run audit check | ||
uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-and-test-linux: | ||
needs: | ||
- deny | ||
- lint | ||
- security-audit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [1.66.0, stable, nightly] | ||
toolchain: [1.70.0, stable, nightly] | ||
name: "Build and test (OS: Linux, Toolchain: ${{ matrix.toolchain }})" | ||
steps: | ||
- name: Repository checkout | ||
|
@@ -127,14 +84,12 @@ jobs: | |
|
||
build-and-test-macos: | ||
needs: | ||
- deny | ||
- lint | ||
- security-audit | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [1.66.0, stable, nightly] | ||
toolchain: [1.70.0, stable, nightly] | ||
name: "Build and test (OS: MacOS, Toolchain: ${{ matrix.toolchain }})" | ||
steps: | ||
- name: Repository checkout | ||
|
@@ -158,14 +113,12 @@ jobs: | |
|
||
build-and-test-windows: | ||
needs: | ||
- deny | ||
- lint | ||
- security-audit | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [1.66.0, stable, nightly] | ||
toolchain: [1.70.0, stable, nightly] | ||
name: "Build and test (OS: Windows, Toolchain: ${{ matrix.toolchain }})" | ||
steps: | ||
- name: Repository checkout | ||
|
@@ -186,32 +139,3 @@ jobs: | |
with: | ||
command: test | ||
args: --all-features --verbose | ||
|
||
coverage: | ||
needs: | ||
- deny | ||
- lint | ||
- security-audit | ||
runs-on: ubuntu-latest | ||
name: Coverage | ||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
default: true | ||
profile: minimal | ||
- name: Install cargo tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-tarpaulin | ||
- name: Run cargo tarpaulin | ||
run: cargo tarpaulin --all-features --engine llvm --fail-under 50 --follow-exec --ignore-tests --out xml --timeout 120 | ||
- name: Upload to codecov.io | ||
if: ${{ always() }} | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "chksum-cli" | ||
version = "0.3.2" | ||
version = "0.4.0" | ||
authors = ["Konrad Goławski <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.66.0" | ||
rust-version = "1.70.0" | ||
description = "A simple checksum calculator." | ||
readme = ".cargo/README.md" | ||
repository = "https://github.com/ferric-bytes/chksum-cli" | ||
repository = "https://github.com/chksum-rs/cli" | ||
license = "MIT" | ||
keywords = ["checksum", "digest", "directory-checksum", "file-checksum", "hash"] | ||
categories = ["command-line-utilities", "cryptography", "filesystem"] | ||
|
@@ -19,31 +19,28 @@ all-features = true | |
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[dependencies] | ||
anyhow = "1.0.72" | ||
chksum = "0.2.2" | ||
clap = { version = "4.3.19", features = ["cargo", "derive", "wrap_help", "unicode"] } | ||
colored = { version = "2.0.4", optional = true } | ||
anyhow = "1.0.76" | ||
chksum = { version = "0.3.0", default-features = false } | ||
clap = { version = "4.4.11", features = ["cargo", "derive", "wrap_help", "unicode"] } | ||
colored = { version = "2.1.0", optional = true } | ||
exitcode = "1.1.2" | ||
rayon = "1.7.0" | ||
|
||
[dev-dependencies] | ||
assert_cmd = { version = "2.0.12", features = ["color-auto"] } | ||
assert_fs = { version = "1.0.13", features = ["color-auto"] } | ||
thiserror = "1.0.44" | ||
thiserror = "1.0.51" | ||
|
||
[features] | ||
default = [ | ||
# compilation | ||
"color", | ||
# algorithms | ||
"md5", | ||
"sha1", | ||
"sha2", | ||
"md5", "sha1", "sha2", | ||
] | ||
|
||
# compilation | ||
color = ["colored"] | ||
unstable = ["chksum/unstable"] | ||
|
||
# algorithms | ||
md5 = ["chksum/md5"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.