# 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.85"
name = "logdb-client"
version = "0.4.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client SDK for logdbd — the append-only audit log database"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/lv-agent/lv-logdb"
resolver = "2"

[features]
broker = [
    "dep:logdb-broker-proto",
    "dep:tokio-stream",
]
default = []

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

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

[dependencies.logdb-broker-proto]
version = "0.1.0"
optional = true

[dependencies.logdbd-proto]
version = "0.4.0"

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

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.tonic]
version = "0.12"
features = ["tls"]

[dev-dependencies.logdb]
version = "0.6.0"

[dev-dependencies.logdbd]
version = "0.8.0"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "rt-multi-thread",
    "macros",
]

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