Skip to content

Commit cfd075a

Browse files
committed
Add the option to make TLS connections to the database
Also add the option to specify an additional root certificate for the client to trust.
1 parent 01bb95b commit cfd075a

File tree

6 files changed

+313
-50
lines changed

6 files changed

+313
-50
lines changed

rust/Cargo.lock

Lines changed: 153 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/impls/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ tokio-postgres = { version = "0.7.12", features = ["with-chrono-0_4"] }
1111
bb8-postgres = "0.7"
1212
bytes = "1.4.0"
1313
tokio = { version = "1.38.0", default-features = false }
14+
native-tls = { version = "0.2.14", default-features = false }
15+
postgres-native-tls = { version = "0.5.2", default-features = false, features = ["runtime"] }
1416

1517
[dev-dependencies]
1618
tokio = { version = "1.38.0", default-features = false, features = ["rt-multi-thread", "macros"] }

0 commit comments

Comments
 (0)