Skip to content
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

RUST-960 Deprecate decimal128 feature flag (1.2.x) #288

Merged

Conversation

patrickfreed
Copy link
Contributor

RUST-960

This PR deprecates the decimal128 feature flag due to the reasons highlighted in #282.

semver requires that deprecations happen in minor rather than patch versions, but decimal128 being "unstable and experimental" means it isn't really bound by semver, so I think we're okay to do this in a patch release. Thoughts?

@patrickfreed patrickfreed marked this pull request as ready for review August 4, 2021 19:22
@@ -23,6 +27,8 @@ pub struct Decimal128 {
}

#[cfg(feature = "decimal128")]
#[deprecated = "The feature-gated decimal128 implementation serializes to BSON incorrectly and \
should not be used. It will be removed completely in 2.0.0"]
impl Decimal128 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To only deprecate the feature-flag and not the Decimal128 struct itself, I only added the attribute to this impl block.

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.

releasing in a patch version SGTM

Copy link
Contributor

@abr-egn abr-egn left a comment

Choose a reason for hiding this comment

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

Patch release sounds fine to me as well.

Copy link
Contributor

@NBSquare NBSquare left a comment

Choose a reason for hiding this comment

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

Patch version seems fine.

@patrickfreed patrickfreed merged commit 2d5e6c8 into mongodb:1.2.x Aug 5, 2021
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.

4 participants