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

Introduce feature flagging for time crate #664

Merged
merged 2 commits into from
Aug 31, 2022

Conversation

workingjubilee
Copy link
Member

This complements the deprecation process that has already begun by allowing us to make this crate an optional dependency in a future version of PGX.

@workingjubilee
Copy link
Member Author

For reference, this feature flag doesn't break any user's API as the flagged impls were introduced during 0.5.0-beta.0

Copy link
Contributor

@johnrballard johnrballard left a comment

Choose a reason for hiding this comment

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

LGTM

PGX has optional feature flags for Rust code that do not involve configuring the version of Postgres used,
but rather extend additional support for other kinds of Rust code. These are not included by default.

### "time-crate": interop with the `time` crate
Copy link
Contributor

Choose a reason for hiding this comment

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

This name works for me. Good job finding a name.

Copy link
Contributor

@BradyBonnette BradyBonnette left a comment

Choose a reason for hiding this comment

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

Everything here looks great!

Will this impact builds/testing/CI that much? Or will it only affect how pgx is built for version 0.5.0-beta.0?

@workingjubilee
Copy link
Member Author

Everything here looks great!

Will this impact builds/testing/CI that much? Or will it only affect how pgx is built for version 0.5.0-beta.0?

I don't think it will have much of an impact in practice, since we enable it in pgx-tests.

@workingjubilee workingjubilee merged commit f0c16b1 into develop Aug 31, 2022
@eeeebbbbrrrr eeeebbbbrrrr deleted the feature-flag-time-crate branch June 20, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps About dependency management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants