Skip to content
Open
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
48 changes: 48 additions & 0 deletions .github/workflows/digest-io-async.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: digest-io-async

on:
pull_request:
paths:
- "digest-io-async/**"
- "Cargo.*"
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: digest-io-async

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

# Cancels CI jobs when new commits are pushed to a PR branch
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.85.0 # MSRV
- stable
steps:
- uses: actions/checkout@v7
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exclude = [
"aarch64-dit",
# Results in circular dependencies
"digest-io",
"digest-io-async",
]

[profile.dev]
Expand Down
8 changes: 8 additions & 0 deletions digest-io-async/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
- Initial release
280 changes: 280 additions & 0 deletions digest-io-async/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions digest-io-async/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "digest-io-async"
version = "0.1.0"
authors = ["RustCrypto Developers"]
edition = "2024"
rust-version = "1.85"
documentation = "https://docs.rs/digest-io-async"
readme = "README.md"
repository = "https://github.com/RustCrypto/utils"
license = "MIT OR Apache-2.0"
keywords = ["crypto", "digest", "wrappers", "async", "tokio"]
categories = ["cryptography", "asynchronous"]
description = "Async I/O compatibility wrappers for traits defined in the digest crate"

[dependencies]
digest = "0.11"
pin-project-lite = "0.2"
tokio = { version = "1", default-features = false, features = ["io-util"] }

[dev-dependencies]
bytes = "1"
futures = "0.3"
sha2 = "0.11"
tokio = { version = "1", features = ["macros", "rt"] }
tokio-util = { version = "0.7", features = ["io"] }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
Loading