Skip to content

It should warns user if they forgot to install SQLx with rustls feature #3954

@cdestiawan

Description

@cdestiawan

I have found these related issues/pull requests

SQLx version: 0.8.6

How to recreate the problem
Install SQLx with the rustls feature activated, but don't install the rustls library

Description

A couple of days ago, I tried to build an app with Actix Web and SQLx. For the database, I use Postgres hosted by Supabase. Everything was OK when I ran the app on my local Postgres, but when I tried to connect to a cloud database, such as Supabase or Neon, the app ran, but it did not even run the server. I tried to search for the solution online, but nothing worked.
It seemed that I forgot to install Rustls when I activated SQLx's rustls feature. Then, when I installed the library, the problem was solved.

Prefered solution

It should, at least, warn the user to install the required library

Is this a breaking change? Why or why not?

No, but it helps user to install the required library

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions