Skip to content

Allow disabling Config for postgres and tokio-postgres#408

Merged
jxs merged 8 commits intorust-db:mainfrom
asonix:asonix/no-config
Mar 25, 2026
Merged

Allow disabling Config for postgres and tokio-postgres#408
jxs merged 8 commits intorust-db:mainfrom
asonix:asonix/no-config

Conversation

@asonix
Copy link
Copy Markdown
Contributor

@asonix asonix commented Nov 18, 2025

This adds a cargo feature to enable the Config struct and enable it when postgres or tokio-postgres is enabled (or the other drivers)
It adds additional postgres-no-tls and tokio-postgres-no-tls features which do not enable Config and don't depend on postgres-native-tls or native-tls

Fixes #407

Copy link
Copy Markdown
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

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

Hi, thanks for this and sorry for the delay!
Wdyt of reverting the "bad" behavior and just have postgres feature not including tls by default and then having a postgres-tls feature instead?

@asonix
Copy link
Copy Markdown
Contributor Author

asonix commented Feb 14, 2026

How's this?

Copy link
Copy Markdown
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

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

sorry for the delay! LGTM Thanks!

@jxs jxs merged commit 8f0f9d3 into rust-db:main Mar 25, 2026
28 of 29 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.

New version forces compilation of native-TLS

2 participants