# 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"
rust-version = "1.81"
name = "hyperdb-mcp"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MCP server for Hyper database — instant SQL analytics for LLM workflows"
homepage = "https://github.com/tableau/hyper-api-rust"
readme = "README.md"
keywords = [
    "database",
    "hyper",
    "mcp",
    "analytics",
    "arrow",
]
categories = [
    "database",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tableau/hyper-api-rust"

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

[[bin]]
name = "hyperdb-mcp"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.arrow]
version = "58"
features = [
    "ipc",
    "json",
    "csv",
]
default-features = false

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"
features = [
    "std",
    "clock",
]
default-features = false

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.csv]
version = "1.3"

[dependencies.hyperdb-api]
version = "0.1.0"

[dependencies.notify]
version = "8"

[dependencies.parquet]
version = "58"
features = ["arrow"]
default-features = false

[dependencies.plotters]
version = "0.3"

[dependencies.rmcp]
version = "1"
features = [
    "server",
    "transport-io",
]

[dependencies.schemars]
version = "1.0"

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

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.sqlformat]
version = "0.5.0"

[dependencies.tempfile]
version = "3.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "io-std",
    "signal",
]

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"

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

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

[build-dependencies.chrono]
version = "0.4"
features = [
    "std",
    "clock",
]
default-features = false

[lints.clippy]
allow_attributes_without_reason = "warn"
as_underscore = "warn"
cast_lossless = "warn"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "warn"
cast_sign_loss = "deny"
clone_on_ref_ptr = "warn"
doc_markdown = "allow"
items_after_statements = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unreadable_literal = "allow"

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

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

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

[lints.clippy.multiple_crate_versions]
level = "allow"
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 = "deny"
priority = -1

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]
