Skip to content

Add optional wiping ownership for eager message views - #841

Open
vanderbr wants to merge 1 commit into
anthropics:mainfrom
reallyme:feature/guarded-owned-views
Open

vanderbr wants to merge 1 commit into
anthropics:mainfrom
reallyme:feature/guarded-owned-views

Conversation

@vanderbr

Copy link
Copy Markdown

Add GuardedOwnedView with a private wiping wire allocation, borrowed access and typed construction errors. Bound direct encoding before writing, wipe failed constructions, and keep decoded-view cleanup distinct from wire ownership.

Bytes::from_owner requires bytes 1.9 or newer, so this raises that dependency floor. Wiping ownership is opt-in through the optional zeroize feature. Rust 1.75 is validated with an MSRV-compatible lockfile selecting zeroize 1.8.2; modern consumers can select newer compatible versions.

This branch is independently based on the upstream mirror.

Validation: runtime default/all-feature tests and strict Clippy/rustdoc; Rust1.75 consumer; Miri allocator observer with dirty control; ARM/Wasm checks.

@github-actions

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

This branch has not been deployed

No deployments
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