Skip to content

Commit 33ba71a

Browse files
committed
digest-io-async: initial commit
This introduces a new crate providing `HashReader`/`HashWriter` wrappers implementing `AsyncRead`/`AsyncWrite`, mirroring `digest-io`'s sync API. This only implement the tokio's async API for now, and it is gated behind a `tokio` feature. The intent is to fold it in `digest-io` when the `AsyncReader`/`AsyncWriter` eventually make their way into `std`.
1 parent e94573d commit 33ba71a

11 files changed

Lines changed: 995 additions & 3 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: digest-io-async
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "digest-io-async/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
11+
permissions:
12+
contents: read
13+
14+
defaults:
15+
run:
16+
working-directory: digest-io-async
17+
18+
env:
19+
CARGO_INCREMENTAL: 0
20+
RUSTFLAGS: "-Dwarnings"
21+
22+
# Cancels CI jobs when new commits are pushed to a PR branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
minimal-versions:
29+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
30+
with:
31+
working-directory: ${{ github.workflow }}
32+
33+
test:
34+
runs-on: ubuntu-latest
35+
strategy:
36+
matrix:
37+
rust:
38+
- 1.85.0 # MSRV
39+
- stable
40+
steps:
41+
- uses: actions/checkout@v7
42+
- uses: RustCrypto/actions/cargo-cache@master
43+
- uses: dtolnay/rust-toolchain@master
44+
with:
45+
toolchain: ${{ matrix.rust }}
46+
- run: cargo test --no-default-features
47+
- run: cargo test
48+
- run: cargo test --all-features

Cargo.lock

Lines changed: 233 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ members = [
99
"ctutils",
1010
"cpufeatures",
1111
"dbl",
12+
"digest-io",
13+
"digest-io-async",
1214
"hex-literal",
1315
"inout",
1416
"sponge-cursor",

digest-io-async/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## Unreleased
8+
- Initial release

0 commit comments

Comments
 (0)