WIP: Simplify CRC updates and strengthen validation #2
No reviewers
Labels
No labels
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/lib-crc!2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/posix-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary and rationale
CRC updates now use slice and fixed-range iteration instead of redundant saturating counters. Public signatures, polynomials, raw seeds and finalization semantics are preserved. Inline documentation and canonical component documents describe the actual checksum contracts, including empty input and raw-state chaining.
Tracking and scope
68f3ffe8d6ad43b805f0bdc72f412994f43667bfonfeature/posix-compat.lib-partition/e2fsdpins and downstream validation remain open. No CRC throughput improvement or guest-build acceptance is claimed.Architecture, authority and failure behavior
The no-std, dependency-free library borrows only caller-provided bytes during each synchronous call and returns a scalar checksum. It performs no allocation, I/O, capability discovery, transfer or retention. Every raw seed and valid slice remains accepted; empty updates preserve the seed. Unsafe code and missing documentation remain denied. Consumer format validation, authentication and scheduling budgets remain the caller's responsibility.
Validation evidence
The workflow-only follow-up selects Integration helper
e2b1cf5995bcf6334839cda9a013e90fa97787d5. Cold and locked preparation preserve original source identities and manifests/locks; formatting, strict default/all-feature host Clippy and all eight tests pass again without warnings on explicit Rust 1.97.1. Current signed revision passes push CI 21 and PR CI 22, with complete logs and no warnings.Validation of the unchanged CRC source used an explicit Rust toolchain and private offline Cargo/output directories with no dependency overrides. Default and all-feature selections each pass 8 unit tests and 1 doctest. Formatting, strict host and freestanding Clippy, host release and freestanding development/release builds, private-item rustdoc, Markdown, workflow syntax and whitespace checks pass without warnings.
No new VM feature is introduced by this pure algorithm refactor. Consumer VM validation is required when the coordinated source graph adopts this revision. Performance measurements and complete guest builds remain separate acceptance gates.
Review checklist
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.