Skip to content

New version forces compilation of native-TLS #407

Closed

Description

@TimDiekmann

With the new version, it's enforced that native TLS is compiled as soon as you enable tokio-postgres. Is it possible to move that to another feature?

Previously, we had this feature section:

tokio-postgres = ["dep:tokio-postgres", "tokio", "tokio/rt"]

but now we have

tokio-postgres = ["dep:postgres-native-tls", "dep:native-tls", "dep:tokio-postgres", "tokio", "tokio/rt"]

Activity

  1. asonix commented on Nov 17, 2025

    @asonix
    Contributor

    Just hit this as well. I was previously establishing my own connection with my own TLS based on rustls, but now I have a native-tls dependency I would prefer not to use.

  2. j-baker commented on Jan 13, 2026

    @j-baker

    Also have hit this. It's a little unfortunate as I'm running on a system with no easy access to openssl (which it tries to bring in).

  3. janlugt commented on Jan 21, 2026

    @janlugt

    @jxs, is there any way I can help out getting this merged and released? Would additional testing help?

  4. jxs commented on Feb 11, 2026

    @jxs
    Member

    Hi, and sorry for the delay. I have reviewed #408 (review)

  5. janlugt commented on Mar 26, 2026

    @janlugt

    Thanks for merging that! Can a 0.9.1 release with this PR included be made?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions