Skip to content

Commit 4acfa1a

Browse files
authored
ci: update workspace workflow (#103)
And fix new warnings.
1 parent 294e6fc commit 4acfa1a

17 files changed

Lines changed: 53 additions & 27 deletions

File tree

.github/workflows/workspace.yml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,50 @@ on:
66
- README.md
77
push:
88
branches: master
9-
paths-ignore:
10-
- README.md
119

1210
jobs:
1311
clippy:
1412
runs-on: ubuntu-latest
1513
steps:
16-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1715
- uses: RustCrypto/actions/cargo-cache@master
1816
- uses: dtolnay/rust-toolchain@master
1917
with:
20-
toolchain: 1.85.0
18+
toolchain: 1.93.0
2119
components: clippy
22-
- run: cargo clippy --all --all-features -- -D warnings
20+
- run: cargo clippy --all --all-features --tests -- -D warnings
2321

24-
rustfmt:
22+
doc:
2523
runs-on: ubuntu-latest
2624
steps:
27-
- name: Checkout sources
28-
uses: actions/checkout@v4
25+
- uses: actions/checkout@v6
26+
- uses: dtolnay/rust-toolchain@master
27+
with:
28+
toolchain: nightly
29+
- env:
30+
RUSTDOCFLAGS: "-Dwarnings --cfg docsrs"
31+
run: cargo doc --workspace --all-features --no-deps
2932

30-
- name: Install stable toolchain
31-
uses: dtolnay/rust-toolchain@master
33+
rustfmt:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v6
37+
- uses: dtolnay/rust-toolchain@master
3238
with:
3339
toolchain: stable
3440
components: rustfmt
35-
- name: Run cargo fmt
36-
run: cargo fmt --all -- --check
41+
- run: cargo fmt --all -- --check
42+
43+
typos:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v6
47+
- uses: crate-ci/typos@v1.43.1
48+
49+
lock:
50+
name: Check Cargo.lock
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v6
54+
- uses: dtolnay/rust-toolchain@stable
55+
- run: cargo check --workspace --locked

.typos.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[files]
2+
extend-exclude = [
3+
".git/"
4+
]
5+
6+
[default.extend-words]
7+
"GOST" = "GOST"

belt-ctr/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
66
)]
77
#![forbid(unsafe_code)]
8-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
8+
#![cfg_attr(docsrs, feature(doc_cfg))]
99
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms)]
1010

1111
pub use cipher;

cbc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
9797
)]
9898
#![forbid(unsafe_code)]
99-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
99+
#![cfg_attr(docsrs, feature(doc_cfg))]
100100
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms)]
101101

102102
mod decrypt;

cfb-mode/src/decrypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ where
147147
C: BlockCipherEncrypt,
148148
{
149149
fn decrypt_with_backend(&mut self, f: impl BlockModeDecClosure<BlockSize = Self::BlockSize>) {
150-
/// This closure is used to recieve block cipher backend and
150+
/// This closure is used to receive block cipher backend and
151151
/// create respective [`CbcDecryptBackend`] based on it.
152152
struct Closure<'a, BS, BC>
153153
where

cfb-mode/src/encrypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ where
3636
C: BlockCipherEncrypt,
3737
{
3838
fn encrypt_with_backend(&mut self, f: impl BlockModeEncClosure<BlockSize = Self::BlockSize>) {
39-
/// This closure is used to recieve block cipher backend and create
39+
/// This closure is used to receive block cipher backend and create
4040
/// respective `Backend` based on it.
4141
struct Closure<'a, BS, BC>
4242
where

cfb-mode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
6161
)]
6262
#![forbid(unsafe_code)]
63-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
63+
#![cfg_attr(docsrs, feature(doc_cfg))]
6464
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms)]
6565

6666
mod decrypt;

cfb8/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
6161
)]
6262
#![forbid(unsafe_code)]
63-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
63+
#![cfg_attr(docsrs, feature(doc_cfg))]
6464
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms)]
6565

6666
mod decrypt;

ctr/src/flavors/ctr128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! 128-bit counter falvors.
1+
//! 128-bit counter flavors.
22
use super::CtrFlavor;
33
use cipher::{
44
array::{Array, ArraySize},

ctr/src/flavors/ctr32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! 32-bit counter falvors.
1+
//! 32-bit counter flavors.
22
use super::CtrFlavor;
33
use cipher::{
44
array::{Array, ArraySize},

0 commit comments

Comments
 (0)