Skip to content

Commit

Permalink
ci: add typos job (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Jan 28, 2025
1 parent 1146b9a commit ae568d4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ jobs:

- name: Run cargo fmt
run: cargo fmt --all -- --check

typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]
8 changes: 8 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[files]
extend-exclude = [
".git/"
]

[default.extend-words]
"GOST" = "GOST"

15 changes: 10 additions & 5 deletions blake2/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
#[cfg(feature = "reset")]
use digest::dev::{fixed_reset_test as fixed_fn, variable_reset_test as varaible_fn};
use digest::dev::{fixed_reset_test as fixed_test, variable_reset_test as variable_test};
#[cfg(not(feature = "reset"))]
use digest::dev::{fixed_test as fixed_fn, variable_test as varaible_fn};
use digest::dev::{fixed_test, variable_test};
use digest::new_test;

new_test!(blake2b_fixed, "blake2b/fixed", blake2::Blake2b512, fixed_fn,);
new_test!(
blake2b_fixed,
"blake2b/fixed",
blake2::Blake2b512,
fixed_test,
);
new_test!(
blake2b_variable,
"blake2b/variable",
blake2::Blake2bVar,
varaible_fn,
variable_test,
);
new_test!(
blake2s_variable,
"blake2s/variable",
blake2::Blake2sVar,
varaible_fn,
variable_test,
);
2 changes: 1 addition & 1 deletion sha2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## 0.9.1 (2020-06-24)
### Added
- x86 hardware acceleration of SHA-256 via SHA extension instrinsics. ([#167])
- x86 hardware acceleration of SHA-256 via SHA extension intrinsics. ([#167])

[#167]: https://github.com/RustCrypto/hashes/pull/167

Expand Down

0 comments on commit ae568d4

Please sign in to comment.