Skip to content

Add streaming temporal and integer JSON formatting - #840

Open
vanderbr wants to merge 1 commit into
anthropics:mainfrom
reallyme:feature/temporal-json-writers
Open

vanderbr wants to merge 1 commit into
anthropics:mainfrom
reallyme:feature/temporal-json-writers

Conversation

@vanderbr

Copy link
Copy Markdown

Add caller-owned Timestamp/Duration writers with typed errors and unchanged canonical formatting. Stream quoted i64/u64 values through the serializer without Buffa building an intermediate decimal String; retain existing allocating temporal helper signatures and validation.

Streaming serializers can avoid the temporary allocation through collect_str; a serializer using the default collect_str implementation may still allocate internally.

This branch is independently based on the upstream mirror.

Validation: workspace checks for temporal helpers; focused canonical/allocation/error/trait-object tests in debug/release/Rust1.75/Miri; runtime all-feature tests, strict Clippy/rustdoc and no_std ARM 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