Skip to content

Allow disabling Config for postgres and tokio-postgres - #408

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

jxs merged 8 commits into
rust-db:mainfrom
asonix:asonix/no-config

Conversation

@asonix

@asonix asonix commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

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

@jxs jxs left a comment

Copy link
Copy Markdown
Member

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

asonix commented Feb 14, 2026

Copy link
Copy Markdown
Contributor Author

How's this?

@jxs jxs left a comment

Copy link
Copy Markdown
Member

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
jxs added a commit that referenced this pull request Jun 10, 2026
* Prepare 0.9.2

- Bump versions to 0.9.2 in all crates
- Update inter-crate dependency references
- Add 0.9.2 changelog entries for TLS opt-in (#408),
  tokio-postgres-rustls feature (#426), rusqlite 0.39.x (#425),
  and toml 1.1.2 (#430)

* Bump mysql to 0.28.x and mysql_async to 0.37.x

* Apply suggestion from @jxs

* Apply suggestion from @jxs
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