Skip to content

Add error helpers and update README feature table#79

Merged
gvonness-apolitical merged 3 commits into
mainfrom
refactor/error-helpers
Feb 16, 2026
Merged

Add error helpers and update README feature table#79
gvonness-apolitical merged 3 commits into
mainfrom
refactor/error-helpers

Conversation

@gvonness-apolitical
Copy link
Copy Markdown
Collaborator

Summary

  • Add pub(crate) error helper functions (invalid_manifest, encryption_error, network_error, invalid_certificate) to error.rs
  • Replace 55+ verbose map_err closures across 9 security modules with concise helper calls — net reduction of 106 lines
  • Update README feature table with 7 missing features (signatures-es384, signatures-rsa, encryption-chacha, key-wrapping, key-wrapping-rsa, key-wrapping-pbes2, webauthn)
  • Update README algorithm summary to mention ES384, PS256, ML-DSA-65, and ChaCha20-Poly1305

Test plan

  • cargo build --workspace --all-features passes
  • cargo test --workspace --all-features passes (949 tests)
  • cargo clippy --workspace --all-features -- -D warnings passes (0 warnings)

The feature flags table was missing 7 features that exist in Cargo.toml:
signatures-es384, signatures-rsa, encryption-chacha, key-wrapping,
key-wrapping-rsa, key-wrapping-pbes2, and webauthn. Also updated the
algorithm summary line to mention ES384, PS256, and ML-DSA-65.
Reduces boilerplate across security modules by introducing
pub(crate) helper functions (invalid_manifest, encryption_error,
network_error, invalid_certificate) that replace 55+ verbose
inline map_err closures with concise one-liners.
@gvonness-apolitical gvonness-apolitical merged commit 15c5ff5 into main Feb 16, 2026
10 checks passed
@gvonness-apolitical gvonness-apolitical deleted the refactor/error-helpers branch February 16, 2026 10:46
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.

1 participant