# 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"
name = "flusso-cli"
version = "0.3.0"
authors = ["Alias2k"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "flusso command-line interface: keep OpenSearch in sync with Postgres from declarative config."
homepage = "https://github.com/alias2k/flusso"
readme = "README.md"
keywords = [
    "postgres",
    "opensearch",
    "cdc",
    "search",
    "replication",
]
categories = [
    "command-line-utilities",
    "database",
]
license = "Apache-2.0"
repository = "https://github.com/alias2k/flusso"

[[bin]]
name = "flusso"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0.*"
features = ["backtrace"]

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

[dependencies.axum]
version = "0.8.*"

[dependencies.base64]
version = "0.22"

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

[dependencies.daemon]
version = "0.3.0"
package = "flusso-daemon"

[dependencies.opentelemetry]
version = "0.32.*"
features = ["metrics"]

[dependencies.opentelemetry-otlp]
version = "0.32.*"
features = ["metrics"]

[dependencies.opentelemetry-prometheus]
version = "0.32.*"

[dependencies.opentelemetry_sdk]
version = "0.32.*"
features = [
    "rt-tokio",
    "metrics",
    "spec_unstable_metrics_views",
]

[dependencies.prometheus]
version = "0.14.*"

[dependencies.reqwest]
version = "0.12.*"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.schema]
version = "0.3.0"
package = "flusso-schema"

[dependencies.serde_json]
version = "1.*"

[dependencies.sinks-core]
version = "0.3.0"
package = "flusso-sinks-core"

[dependencies.sinks-opensearch]
version = "0.3.0"
package = "flusso-sinks-opensearch"

[dependencies.sinks-stdout]
version = "0.3.0"
package = "flusso-sinks-stdout"

[dependencies.sources-core]
version = "0.3.0"
package = "flusso-sources-core"

[dependencies.sources-postgres]
version = "0.3.0"
package = "flusso-sources-postgres"

[dependencies.tokio]
version = "1.*"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "signal",
    "time",
]
default-features = false

[dependencies.tracing]
version = "0.1.*"

[dependencies.tracing-opentelemetry]
version = "0.33.*"

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

[dependencies.url]
version = "2.*"

[lints.clippy]
expect_used = "deny"
indexing_slicing = "deny"
iter_next_slice = "allow"
len_zero = "deny"
match_bool = "deny"
print_stderr = "deny"
print_stdout = "deny"
unwrap_used = "deny"

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "deny"
priority = -1

[lints.rust]
missing_debug_implementations = "deny"
non_camel_case_types = "deny"
non_snake_case = "deny"
non_upper_case_globals = "deny"
unreachable_patterns = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unused_crate_dependencies = "warn"
unused_imports = "deny"
unused_mut = "deny"
unused_variables = "deny"
warnings = "deny"
