# 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 = "2024"
rust-version = "1.94"
name = "oversync"
version = "0.5.0"
build = "build.rs"
exclude = [
    ".github/",
    "tests/fixtures/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight data sync engine: poll, delta, sink."
readme = "README.md"
keywords = [
    "data-sync",
    "delta",
    "surrealdb",
    "etl",
]
categories = [
    "database",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/overrealdb/oversync"
resolver = "2"

[features]
api = [
    "dep:oversync-api",
    "dep:axum",
    "dep:metrics-exporter-prometheus",
    "dep:utoipa",
]
cli = [
    "api",
    "schema",
    "oversync-core/cli",
    "dep:clap",
    "dep:reqwest",
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:tracing-opentelemetry",
]
default = []
parallel = [
    "oversync-core/parallel",
    "oversync-delta/parallel",
]
schema = ["dep:overshift"]
validate-docker = []

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

[[bin]]
name = "oversync"
path = "bin/oversync.rs"
required-features = ["cli"]

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

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

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

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

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

[[example]]
name = "http_api"
path = "examples/http_api.rs"
required-features = ["api"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"

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

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.hostname]
version = "0.4"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.16"
optional = true

[dependencies.opentelemetry]
version = "0.28"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.28"
features = ["grpc-tonic"]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.28"
features = ["rt-tokio"]
optional = true

[dependencies.overshift]
version = "0.2"
optional = true

[dependencies.oversync-api]
version = "0.5.0"
optional = true

[dependencies.oversync-connectors]
version = "0.5.0"

[dependencies.oversync-core]
version = "0.5.0"

[dependencies.oversync-delta]
version = "0.5.0"

[dependencies.oversync-links]
version = "0.5.0"

[dependencies.oversync-queries]
version = "0.5.0"

[dependencies.oversync-sinks]
version = "0.5.0"

[dependencies.oversync-transforms]
version = "0.5.0"

[dependencies.rand]
version = "0.9"

[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "mysql",
    "json",
]

[dependencies.surql-macros]
version = "0.1.2"

[dependencies.surrealdb]
version = "3"
features = [
    "kv-mem",
    "protocol-http",
    "protocol-ws",
]

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

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

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.29"
optional = true

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

[dependencies.utoipa]
version = "5"
features = [
    "axum_extras",
    "chrono",
]
optional = true

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

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

[dev-dependencies.axum]
version = "0.8"

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

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

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.overshift]
version = "0.2"

[dev-dependencies.oversync-api]
version = "0.5.0"

[dev-dependencies.oversync-connectors]
version = "0.5.0"

[dev-dependencies.oversync-core]
version = "0.5.0"

[dev-dependencies.oversync-delta]
version = "0.5.0"

[dev-dependencies.oversync-queries]
version = "0.5.0"

[dev-dependencies.oversync-sinks]
version = "0.5.0"

[dev-dependencies.rdkafka]
version = "0.37"
features = ["cmake-build"]

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

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

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "mysql",
    "json",
]

[dev-dependencies.surql-macros]
version = "0.1.2"

[dev-dependencies.surrealdb]
version = "3"
features = [
    "kv-mem",
    "protocol-http",
    "protocol-ws",
]

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tokio-stream]
version = "0.1"

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

[dev-dependencies.tower]
version = "0.5"

[dev-dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[build-dependencies.surql-parser]
version = "0.1.4"
features = ["build"]

[profile.dev.package."*"]
debug = 0

[profile.release]
lto = "thin"
codegen-units = 1
strip = true
