Skip to content

serdect: no_alloc implementation of serialize_hex#2327

Merged
tarcieri merged 1 commit intomasterfrom
serdect/no-alloc-hex-serialization
May 3, 2026
Merged

serdect: no_alloc implementation of serialize_hex#2327
tarcieri merged 1 commit intomasterfrom
serdect/no-alloc-hex-serialization

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented May 3, 2026

This previously mandated use of alloc and would simply return an error when used without the feature enabled.

This uses serde's built-in integration with core::fmt along with the base16ct::HexDisplay type to implement a simple no_alloc serializer.

This previously mandated use of `alloc` and would simply return an error
when used without the feature enabled.

This uses `serde`'s built-in integration with `core::fmt` along with the
`base16ct::HexDisplay` type to implement a simple `no_alloc` serializer.
@tarcieri tarcieri merged commit 48d36e7 into master May 3, 2026
11 checks passed
@tarcieri tarcieri deleted the serdect/no-alloc-hex-serialization branch May 3, 2026 21:56
@tarcieri tarcieri mentioned this pull request May 3, 2026
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