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

Add feature flag for time 0.3 support #909

Closed
FalkWoldmann opened this issue Jul 4, 2023 · 2 comments
Closed

Add feature flag for time 0.3 support #909

FalkWoldmann opened this issue Jul 4, 2023 · 2 comments
Assignees
Labels

Comments

@FalkWoldmann
Copy link

Hi,
I've seen that you provide a feature flag with support for chrono 0.4. Would it be possible to add an additional flag for time 0.3? It looks like bson already supports this as a feature flag.

@felschr
Copy link

felschr commented Jul 7, 2023

Just to clarify, mongodb 2.6 can already be used with time by adding bson to ones dependencies with the time-0_3 feature flag.

The bson-{x}-style feature flags of mongodb just affect the reexported module.
Of course it's desirable that the corresponding flag for time will be added eventually.

@isabelatkinson
Copy link
Contributor

Hi @FalkWoldmann, thanks for filing this issue! While we do currently have some feature flags in the driver exposing bson features, this is a practice we have decided to move away from, and we plan to remove the bson-related feature flags in our next major release. Instead, we suggest users do what @felschr outlined above: add bson as its own dependency in your Cargo.toml file and toggle whichever feature flags are desired there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants