Skip to content

RUST-1748 Convert UUID serde helpers to use serde_conv #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 70 commits into from
Jul 23, 2025

Conversation

JamieTsai1024
Copy link
Collaborator

Converted UUID functions in src/serde_helpers.rs to use serde_conv macro for serializing and deserializing optional and vector fields with serde_with.

  • Added tests for <T>, Option<T>, and Vec<T> fields (de)serialized using converter structs
  • Added documentation for modules and structs
Old New
uuid_1_as_binary uuid_1::AsBinary (UUID → Timestamp)
uuid_1_as_c_sharp_legacy_binary uuid_1::AsCSharpLegacyBinary (UUID → Binary)
uuid_1_as_java_legacy_binary uuid_1::AsJavaLegacyBinary (UUID → Binary)
uuid_1_as_python_legacy_binary uuid_1::AsPythonLegacyBinary (UUID → Binary)

Previously:

  • Rewrote serde converters as structs with SerializeAs and DeserializeAs traits to support Optional and Vector conversions in PR #559
  • Adapted serde_conv macro to support Rustdocs, refactored all ObjectId converters in PR #566
  • Refactored all DateTime converters in PR #570
  • Converted all unsigned (u32 and u64) helpers in PR #575
  • Added rustdoc documentation to ObjectId converters in PR #578

@JamieTsai1024 JamieTsai1024 marked this pull request as ready for review July 22, 2025 16:45
@JamieTsai1024 JamieTsai1024 requested a review from a team as a code owner July 22, 2025 16:45
@JamieTsai1024 JamieTsai1024 requested a review from abr-egn July 22, 2025 17:02
Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a doc fix!

Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

@JamieTsai1024 JamieTsai1024 merged commit 266aa30 into mongodb:main Jul 23, 2025
11 checks passed
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.

2 participants