# 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"
name = "rivven-cdc"
version = "0.0.6"
authors = ["hupe1980"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Change Data Capture for Rivven - PostgreSQL, MySQL, MariaDB"
readme = "README.md"
keywords = [
    "cdc",
    "postgres",
    "mysql",
    "mariadb",
    "replication",
]
license = "Apache-2.0"
repository = "https://github.com/hupe1980/rivven"

[package.metadata.cargo-machete]
ignored = ["flate2"]

[features]
default = [
    "postgres",
    "mysql",
]
full = [
    "postgres",
    "postgres-tls",
    "mysql",
    "mysql-tls",
    "mariadb",
]
mariadb = ["mysql"]
mysql = [
    "dep:sha1",
    "dep:base64",
    "dep:mysql_async",
    "dep:flate2",
]
mysql-tls = [
    "mysql",
    "dep:rustls",
    "dep:rustls-pemfile",
    "dep:webpki-roots",
    "dep:tokio-rustls",
]
postgres = [
    "dep:tokio-postgres",
    "dep:postgres-protocol",
    "dep:md-5",
    "dep:hmac",
    "dep:pbkdf2",
    "dep:base64",
    "dep:fallible-iterator",
]
postgres-tls = [
    "postgres",
    "dep:tokio-postgres-rustls",
    "dep:rustls",
    "dep:rustls-pemfile",
    "dep:webpki-roots",
    "dep:tokio-rustls",
]

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

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

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

[[test]]
name = "cdc_advanced"
path = "tests/cdc_advanced.rs"
required-features = ["postgres"]

[[test]]
name = "cdc_integration"
path = "tests/cdc_integration.rs"
required-features = ["postgres"]

[[test]]
name = "cdc_mysql_integration"
path = "tests/cdc_mysql_integration.rs"
required-features = ["mysql"]

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

[[test]]
name = "cdc_stress"
path = "tests/cdc_stress.rs"
required-features = ["postgres"]

[[test]]
name = "mysql_version_matrix"
path = "tests/mysql_version_matrix.rs"
required-features = ["mysql"]

[[test]]
name = "postgres_version_matrix"
path = "tests/postgres_version_matrix.rs"
required-features = ["postgres"]

[[bench]]
name = "cdc_latency"
path = "benches/cdc_latency.rs"
harness = false
required-features = ["postgres"]

[[bench]]
name = "cdc_throughput"
path = "benches/cdc_throughput.rs"
harness = false
required-features = ["postgres"]

[dependencies.aes-gcm]
version = "0.10"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

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

[dependencies.bytes]
version = "1.11"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.chrono-tz]
version = "0.10"

[dependencies.ed25519-dalek]
version = "2.1"
features = ["rand_core"]

[dependencies.fallible-iterator]
version = "0.2"
optional = true

[dependencies.flate2]
version = "1.1"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

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

[dependencies.md-5]
version = "0.10"
optional = true

[dependencies.metrics]
version = "0.24"

[dependencies.mysql_async]
version = "0.34"
optional = true
default-features = false

[dependencies.once_cell]
version = "1.19"

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

[dependencies.postgres-protocol]
version = "0.6"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1.10"

[dependencies.rsa]
version = "0.9"

[dependencies.rustls]
version = "0.23"
features = ["aws-lc-rs"]
optional = true

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

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

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

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.35"
features = ["full"]

[dependencies.tokio-postgres]
version = "0.7"
features = ["with-chrono-0_4"]
optional = true

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"

[dependencies.uuid]
version = "1.6"
features = ["v4"]

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

[dev-dependencies.async-trait]
version = "0.1"

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

[dev-dependencies.fake]
version = "3.0"
features = [
    "derive",
    "chrono",
]

[dev-dependencies.paste]
version = "1.0"

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.serial_test]
version = "3.2"

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

[dev-dependencies.testcontainers]
version = "0.23"

[dev-dependencies.testcontainers-modules]
version = "0.11"
features = [
    "postgres",
    "mysql",
    "mariadb",
]

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

[dev-dependencies.uuid]
version = "1.6"
features = ["v4"]
