Skip to content

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
#[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.

@patrickfreed patrickfreed requested a review from NBSquare August 4, 2021 19:24
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