# 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.91"
name = "lean-host-mcp"
version = "0.3.0"
authors = ["Jacob Reinhold"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MCP server hosting Lean 4 via a supervised lean-rs-worker child"
readme = "README.md"
keywords = [
    "lean",
    "lean4",
    "mcp",
    "theorem-proving",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jcreinhold/lean-host-mcp"

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
features = [
    "http1",
    "tokio",
]
default-features = false

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

[dependencies.dirs]
version = "6"

[dependencies.lean-rs-worker-parent]
version = "0.1.20"

[dependencies.lean-toolchain]
version = "0.1.20"

[dependencies.lru]
version = "0.18"

[dependencies.parking_lot]
version = "0.12"

[dependencies.regex]
version = "1"

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

[dependencies.schemars]
version = "1.2"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.toml]
version = "1"

[dependencies.tracing]
version = "0.1"

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

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

[dependencies.walkdir]
version = "2"

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

[dev-dependencies.reqwest]
version = "0.13"
default-features = false

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

[lints.clippy]
arithmetic_side_effects = "warn"
blanket_clippy_restriction_lints = "warn"
cargo_common_metadata = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
disallowed_methods = "deny"
disallowed_types = "deny"
exit = "warn"
expect_used = "warn"
float_arithmetic = "allow"
get_unwrap = "warn"
implicit_clone = "warn"
indexing_slicing = "warn"
inefficient_to_string = "warn"
items_after_statements = "allow"
large_stack_arrays = "warn"
lint_groups_priority = "warn"
manual_memcpy = "warn"
map_flatten = "warn"
map_unwrap_or = "warn"
match_same_arms = "allow"
mem_forget = "deny"
missing_const_for_fn = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mutex_integer = "warn"
needless_collect = "warn"
option_if_let_else = "allow"
panic = "warn"
ptr_as_ptr = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
similar_names = "allow"
single_match_else = "allow"
todo = "warn"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unimplemented = "warn"
unnecessary_wraps = "allow"
unreachable = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

[lints.clippy.all]
level = "warn"
priority = -10

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

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

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

[lints.clippy.nursery]
level = "warn"
priority = -5

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

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

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

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

[lints.rust]
future-incompatible = "warn"
let-underscore = "warn"
nonstandard-style = "warn"
redundant_lifetimes = "warn"
rust-2018-idioms = "warn"
rust-2024-compatibility = "deny"
single_use_lifetimes = "warn"
trivial_casts = "warn"
unreachable_pub = "warn"
unsafe-code = "forbid"

[lints.rust.unused]
level = "warn"
priority = -1
