Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Fix #108: Serialization of time types - #110

Merged
arendjr merged 4 commits into
mainfrom
fix-108-time-serialization
May 3, 2022
Merged

arendjr merged 4 commits into
mainfrom
fix-108-time-serialization

Conversation

@arendjr

@arendjr arendjr commented May 2, 2022

Copy link
Copy Markdown
Contributor

This PR fixes serialization of types from the time crate so they become usable as RFC3339 strings in TypeScript.

The PR includes rudimentary newtype support so that types can be wrapped in such a way they are usable in any context. This is done in order to work around an unfortunate limitation of Serde annotations, which cannot be applied to function arguments, among other places.

Fixes #108.

@arendjr
arendjr requested a review from a team as a code owner May 2, 2022 15:52
@arendjr
arendjr merged commit 00af9b6 into main May 3, 2022
@arendjr
arendjr deleted the fix-108-time-serialization branch May 3, 2022 09:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serialization issue with time crate

2 participants