lean-ctx-server 3.12.3

The LeanCTX MCP server and its tools on top of LeanCTX | OSS.
Documentation
# 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 = "lean-ctx-server"
version = "3.12.3"
build = false
exclude = [
    "tests/",
    "examples/",
    "benches/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The LeanCTX MCP server and its tools on top of LeanCTX | OSS."
homepage = "https://leanctx.com"
readme = "README.md"
keywords = [
    "lean-ctx",
    "llm",
    "mcp",
    "context",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/yvgude/lean-ctx"

[features]
default = [
    "tree-sitter",
    "embeddings",
    "http-server",
    "shape-xlat",
    "secure-update",
    "jemalloc",
    "qdrant",
    "pgvector",
    "wasm",
]
dev-tools = ["lean-ctx-engine/dev-tools"]
embeddings = ["lean-ctx-engine/embeddings"]
enterprise = ["lean-ctx-engine/enterprise"]
grammar-haskell = ["lean-ctx-engine/grammar-haskell"]
grammar-julia = ["lean-ctx-engine/grammar-julia"]
grammar-ocaml = ["lean-ctx-engine/grammar-ocaml"]
grammars-long-tail = ["lean-ctx-engine/grammars-long-tail"]
http-server = [
    "lean-ctx-hive/http-server",
    "lean-ctx-engine/http-server",
]
jemalloc = ["lean-ctx-engine/jemalloc"]
no-jail = [
    "lean-ctx-hooks/no-jail",
    "lean-ctx-engine/no-jail",
]
onnx = ["lean-ctx-engine/onnx"]
ort-coreml = ["lean-ctx-engine/ort-coreml"]
ort-cuda = ["lean-ctx-engine/ort-cuda"]
ort-directml = ["lean-ctx-engine/ort-directml"]
ort-rocm = ["lean-ctx-engine/ort-rocm"]
ort-webgpu = ["lean-ctx-engine/ort-webgpu"]
pgvector = ["lean-ctx-engine/pgvector"]
qdrant = ["lean-ctx-engine/qdrant"]
secure-update = ["lean-ctx-engine/secure-update"]
shape-xlat = ["lean-ctx-engine/shape-xlat"]
test-support = [
    "lean-ctx-engine/test-support",
    "lean-ctx-hive/test-support",
]
tree-sitter = [
    "lean-ctx-hooks/tree-sitter",
    "lean-ctx-engine/tree-sitter",
    "dep:tree-sitter",
]
wasm = ["lean-ctx-engine/wasm"]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1.91"

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1.8"

[dependencies.bytecount]
version = "0.6"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dirs]
version = "6.0"

[dependencies.ed25519-dalek]
version = "2.2"
features = ["rand_core"]

[dependencies.fs2]
version = "0.4"

[dependencies.futures]
version = "0.3"

[dependencies.glob]
version = "0.3"

[dependencies.ignore]
version = "0.4"

[dependencies.lean-ctx-doc]
version = "0.2.0"

[dependencies.lean-ctx-engine]
version = "=3.12.3"
default-features = false

[dependencies.lean-ctx-hive]
version = "=3.12.3"
default-features = false

[dependencies.lean-ctx-hooks]
version = "=3.12.3"
default-features = false

[dependencies.lean-ctx-ocla]
version = "6.0.0"

[dependencies.lean-ctx-protocol]
version = "0.6.0"

[dependencies.lean-ctx-shell-policy]
version = "=3.12.3"
default-features = false

[dependencies.lean-ctx-tasks]
version = "0.1.0"

[dependencies.libc]
version = "0.2"

[dependencies.lsp-types]
version = "0.97"

[dependencies.md-5]
version = "0.11"

[dependencies.rayon]
version = "1.12"

[dependencies.regex]
version = "1.12"

[dependencies.rmcp]
version = "3"
features = [
    "server",
    "client",
    "transport-io",
    "transport-streamable-http-server",
    "transport-child-process",
    "transport-streamable-http-client-reqwest",
    "auth",
    "elicitation",
]

[dependencies.rusqlite]
version = "0.41"
features = ["bundled"]

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

[dependencies.serde_json]
version = "1.0"
features = [
    "float_roundtrip",
    "raw_value",
]

[dependencies.sha2]
version = "0.11"

[dependencies.similar]
version = "3.1"

[dependencies.tempfile]
version = "3.27"

[dependencies.tokio]
version = "1.52"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "io-std",
    "io-util",
    "net",
    "sync",
    "time",
    "signal",
    "process",
]

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

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

[dependencies.tree-sitter]
version = "0.26"
optional = true

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

[dependencies.walkdir]
version = "2.5"

[dev-dependencies.axum]
version = "0.8"
features = ["ws"]

[dev-dependencies.jsonschema]
version = "0.46"
default-features = false

[dev-dependencies.lean-ctx-engine]
version = "=3.12.3"
features = ["test-support"]
default-features = false

[dev-dependencies.lean-ctx-hive]
version = "=3.12.3"
features = ["test-support"]
default-features = false

[dev-dependencies.serial_test]
version = "3.5"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_Globalization",
    "Win32_System_Threading",
    "Win32_System_ProcessStatus",
    "Win32_System_SystemInformation",
    "Win32_System_JobObjects",
    "Win32_System_Diagnostics_ToolHelp",
    "Win32_Security",
    "Win32_Security_Authorization",
    "Win32_System_Pipes",
    "Win32_Storage_FileSystem",
    "Wdk_Foundation",
    "Wdk_Storage_FileSystem",
    "Wdk_System_SystemServices",
    "Win32_System_IO",
]

[lints.clippy]
assert_is_empty = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collapsible_if = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
enum_variant_names = "allow"
float_cmp = "allow"
format_push_string = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
manual_pattern_char_comparison = "allow"
map_unwrap_or = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrow = "allow"
no_effect_underscore_binding = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_self = "allow"
unwrap_used = "warn"
used_underscore_binding = "allow"
useless_conversion = "allow"

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

[lints.rust]
unreachable_pub = "warn"

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