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

Use sqlx without TLS feature #171

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Use sqlx without TLS feature #171

merged 2 commits into from
Dec 19, 2023

Conversation

jirutka
Copy link
Contributor

@jirutka jirutka commented Dec 18, 2023

The pgmq extension doesn't use TLS at all - the resulting so library is not linked against libcrypto, i.e. the part of the code using sqlx connect is not used here.

The TLS support adds unnecessary dependencies that increases the build time and make building on some platform difficult (due to openssl dependency or lack of rustls/ring support for these platforms).

runtime-tokio is a subset of runtime-tokio-native-tls, so if some projects that depend on pgmq-core or pgmq-rs need TLS, they can easily enable runtime-tokio-native-tls on their side.

The pgmq extension doesn't use TLS at all - the resulting so library is
not linked against libcrypto, i.e. the part of the code using sqlx
connect is not used here.

The TLS support adds unnecessary dependencies that increases the
build time and make building on some platform difficult (due to
openssl dependency or lack of rustls/ring support for these platforms).

runtime-tokio is a subset of runtime-tokio-native-tls, so if some
projects that depend on pgmq-core or pgmq-rs need TLS, they can easily
enable runtime-tokio-native-tls on their side.
@v0idpwn v0idpwn merged commit d0f00eb into tembo-io:main Dec 19, 2023
13 of 17 checks passed
@jirutka jirutka deleted the sqlx-no-tls branch December 19, 2023 10:32
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.

4 participants