Skip to content

Add configurable I/O buffer via Chksumer context - #3

Open
ventaquil wants to merge 4 commits into
masterfrom
feature/chksumer-context
Open

ventaquil wants to merge 4 commits into
masterfrom
feature/chksumer-context

Conversation

@ventaquil

Copy link
Copy Markdown
Member

Introduces Chksumer/AsyncChksumer checksum contexts with a configurable
read-buffer capacity, routing all sync and async I/O through a single reusable
buffer. Fixes GH-2.

Changes

  • New context API — Chksumer/AsyncChksumer + builders with configurable
    capacity (with_capacity, DEFAULT_BUFFER_CAPACITY), the update/update_from/
    update_from_reader feed family, reset, into_inner, From<H> conversions,
    and an io::Write impl.
  • Renames — Hashable::hash_with → hash_into, chksum_with → chksum_into.
  • NotARegularFile error variant; directory traversal now skips non-regular
    entries (sockets, fifos) instead of trying to open them.
  • Toolchain — edition 2024, MSRV 1.95.0, thiserror 2.0; CI matrix bumped and
    the three per-OS build jobs collapsed into one os × toolchain matrix.
  • Docs — symlink traversal behavior documented; # Errors sections added to all
    public Result-returning functions.

Notes

  • Breaking API changes; remains unreleased under CHANGELOG [Unreleased] (version
    stays 0.1.0 until a separate release commit).
  • Every commit builds under --all-features; fmt/clippy -D warnings/tests all green.

@ventaquil ventaquil self-assigned this Jun 16, 2026
@ventaquil

Copy link
Copy Markdown
Member Author

Pre-publish check found several bugs - I'll fix them later.

@ventaquil
ventaquil force-pushed the feature/chksumer-context branch from 8d72285 to 6fe76b1 Compare June 27, 2026 12:07
@ventaquil
ventaquil force-pushed the feature/chksumer-context branch from 6fe76b1 to f889744 Compare August 28, 2026 19:14
@ventaquil
ventaquil force-pushed the feature/chksumer-context branch from f889744 to 1d89c3d Compare August 28, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to increase default buffer size for File(s)

1 participant