1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! PostgreSQL connection backends.
//!
//! This module provides two interchangeable connection implementations,
//! selected at compile time via feature flags:
//!
//! - **`libpq`** (default): Uses the C libpq library via FFI. Requires
//! `libpq-dev` and `libssl-dev` at build time.
//!
//! - **`rustls-tls`**: Pure-Rust implementation using `rustls` with the
//! `aws-lc-rs` crypto backend for hardware-accelerated TLS (AES-NI, AVX2).
//! Requires `cmake` + C compiler at build time.
//! When enabled alongside the default `libpq` feature, `rustls-tls` takes
//! priority so that `features = ["rustls-tls"]` works without needing
//! `default-features = false`.
//!
//! Both backends expose the same public types: `PgReplicationConnection` and
//! `PgResult`.
compile_error!;
// ── libpq backend (default) ──────────────────────────────────────────────────
pub use ;
// ── rustls-tls backend ──────────────────────────────────────────────────────
pub
pub use ;