Skip to content

Commit 0b15cb5

Browse files
authored
digest-io: initial implementation (#1172)
This crate contains `std::io`-compatibility wrappers which are moved from the `digest` crate.
1 parent 7560ec8 commit 0b15cb5

File tree

12 files changed

+835
-0
lines changed

12 files changed

+835
-0
lines changed

.github/workflows/digest-io.yml

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

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ members = [
88
"cmov",
99
"cpufeatures",
1010
"dbl",
11+
"digest-io",
1112
"fiat-constify",
1213
"hex-literal",
1314
"inout",

digest-io/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
## 0.1.0 (UNRELEASED)
8+
- Initial release ([#1172])
9+
10+
[#1172]: https://github.com/RustCrypto/utils/pull/1172

digest-io/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "digest-io"
3+
version = "0.1.0"
4+
description = "std::io-compatibility wrappers for traits defined in the digest crate"
5+
authors = ["RustCrypto Developers"]
6+
license = "MIT OR Apache-2.0"
7+
edition = "2024"
8+
rust-version = "1.85"
9+
documentation = "https://docs.rs/digest-io"
10+
repository = "https://github.com/RustCrypto/utils"
11+
categories = ["cryptography"]
12+
readme = "README.md"
13+
14+
[dependencies]
15+
digest = "0.11.0-pre.10"
16+
sha2 = "0.11.0-pre.5"
17+
sha3 = "0.11.0-pre.5"

0 commit comments

Comments
 (0)