# 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 = "dbmcp-sql"
version = "0.10.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQL validation and identifier utilities for dbmcp"
homepage = "https://dbmcp.haymon.ai"
readme = false
license = "MIT"
repository = "https://github.com/haymon-ai/dbmcp"

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

[dependencies.rmcp]
version = "1.6"
features = [
    "macros",
    "server",
    "transport-io",
    "transport-streamable-http-server",
]

[dependencies.serde_json]
version = "1"

[dependencies.sqlparser]
version = "0.61"
features = ["visitor"]

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

[dependencies.sqlx-json]
version = "0.10.3"

[dependencies.thiserror]
version = "2"

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

[lints.clippy]
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
struct_excessive_bools = "allow"

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

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

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

[lints.clippy.suspicious]
level = "warn"
priority = -1

[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
