pgwire-replication 0.2.0

Tokio-based Postgres wire-protocol logical replication client (pgoutput) with TLS and SCRAM.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.88"
name = "pgwire-replication"
version = "0.2.0"
authors = ["Vahid Negahdari <vahid.negahdari@gmail.com>"]
build = false
exclude = ["Cargo.lock"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tokio-based Postgres wire-protocol logical replication client (pgoutput) with TLS and SCRAM."
homepage = "https://github.com/vnvo/pgwire-replication"
documentation = "https://docs.rs/pgwire-replication"
readme = "README.md"
keywords = [
    "postgres",
    "pgoutput",
    "replication",
    "wal",
    "pgwire",
]
categories = [
    "database",
    "network-programming",
    "asynchronous",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/vnvo/pgwire-replication"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "tls-rustls",
    "scram",
]
integration-tests = [
    "dep:testcontainers",
    "dep:tokio-postgres",
    "dep:tracing-subscriber",
]
md5 = ["dep:md5"]
scram = [
    "dep:base64",
    "dep:hmac",
    "dep:sha2",
    "dep:rand",
]
tls-rustls = [
    "dep:rustls",
    "dep:tokio-rustls",
    "dep:webpki-roots",
    "dep:rustls-pemfile",
]

[lib]
name = "pgwire_replication"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "bounded_replay"
path = "examples/bounded_replay.rs"

[[example]]
name = "checkpointed"
path = "examples/checkpointed.rs"

[[example]]
name = "control_and_stream"
path = "examples/control_and_stream.rs"

[[example]]
name = "with_mtls"
path = "examples/with_mtls.rs"
required-features = ["tls-rustls"]

[[example]]
name = "with_tls"
path = "examples/with_tls.rs"
required-features = ["tls-rustls"]

[[test]]
name = "integration_postgres"
path = "tests/integration_postgres.rs"

[[bench]]
name = "protocol_bench"
path = "benches/protocol_bench.rs"
harness = false

[dependencies.anyhow]
version = "1"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.md5]
version = "0.7"
optional = true

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rustls]
version = "0.23"
features = ["ring"]
optional = true

[dependencies.rustls-pemfile]
version = "2"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.testcontainers]
version = "0.25"
optional = true

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "io-util",
    "time",
    "macros",
    "rt-multi-thread",
    "sync",
]

[dependencies.tokio-postgres]
version = "0.7"
optional = true

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

[dependencies.webpki-roots]
version = "0.26"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio-postgres]
version = "0.7"