Skip to content

deps: bump smoothutf8 to 0.2#246

Open
iainmcgin wants to merge 1 commit into
mainfrom
iain/smoothutf8-0.2
Open

deps: bump smoothutf8 to 0.2#246
iainmcgin wants to merge 1 commit into
mainfrom
iain/smoothutf8-0.2

Conversation

@iainmcgin

Copy link
Copy Markdown
Collaborator

verify_with_slack is unchanged in 0.2, so the existing per-field-conditional path in buffa::types is untouched — this is a pure dependency bump. The user-visible win is that wasm32 targets now run smoothutf8's portable shift-DFA validator instead of delegating to core::str::from_utf8 (0.1.x had a cfg(target_arch = "wasm32") fallback).

0.2 also ships SlackBuf<'a>, a safe wrapper for the slack-buffer invariant. Not adopted here — that needs a decode-entry-point change so callers that own the wire buffer (notably connect-rust, which owns the growing Vec) can hand in a pre-padded buffer and let buffa drop the unsafe at types.rs. Separate PR.

First real .changes/unreleased/ fragment on main since #230.

verify_with_slack is unchanged in 0.2, so the existing per-field
conditional path in buffa::types is untouched. The user-visible win is
that wasm32 targets now run the portable shift-DFA validator instead of
delegating to core::str::from_utf8.

0.2 also ships SlackBuf<'a>, a safe wrapper for the slack-buffer
invariant — not adopted here; that's a separate decode-entry-point
change to let callers (notably connect-rust, which owns the wire Vec)
hand in a pre-padded buffer and drop the unsafe at types.rs.

First .changes/unreleased/ fragment on main.
@github-actions

Copy link
Copy Markdown

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

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