# 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 = "mdkb"
version = "2.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Persistent memory, hybrid search, and code intelligence for Claude Code and Codex — with CLI, lifecycle hooks, and MCP"
readme = "README.md"
keywords = [
    "markdown",
    "knowledge-base",
    "search",
    "mcp",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/sstraus/mdkb"

[features]
default = []
http-server = [
    "dep:axum",
    "dep:tower",
    "dep:subtle",
    "rmcp/transport-streamable-http-server",
]
https-server = [
    "http-server",
    "dep:rcgen",
    "dep:axum-server",
    "dep:rustls",
]
llm = []

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

[[bin]]
name = "mdkb"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.axum-server]
version = "0.7"
features = ["tls-rustls-no-provider"]
optional = true

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

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

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.dashmap]
version = "6"

[dependencies.directories]
version = "5"

[dependencies.fastembed]
version = "4"
features = [
    "ort-download-binaries",
    "hf-hub-rustls-tls",
]
default-features = false

[dependencies.fs4]
version = "0.12"

[dependencies.futures]
version = "0.3"
features = ["alloc"]
default-features = false

[dependencies.glob]
version = "0.3"

[dependencies.globset]
version = "0.4"

[dependencies.gray_matter]
version = "0.2"

[dependencies.ignore]
version = "0.4"

[dependencies.libc]
version = "0.2"

[dependencies.libmimalloc-sys]
version = "0.1"
features = ["extended"]

[dependencies.mimalloc]
version = "0.1"

[dependencies.notify]
version = "6"

[dependencies.notify-debouncer-mini]
version = "0.4"

[dependencies.pulldown-cmark]
version = "0.12"

[dependencies.rayon]
version = "1.10"

[dependencies.rcgen]
version = "0.13"
optional = true

[dependencies.regex]
version = "1"

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

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

[dependencies.rustls]
version = "0.23"
features = ["ring"]
optional = true
default-features = false

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.similar]
version = "2"

[dependencies.sqlite-vec]
version = "0.1"

[dependencies.subtle]
version = "2"
optional = true

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tiktoken-rs]
version = "0.6"

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

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

[dependencies.toml]
version = "0.8"

[dependencies.toml_edit]
version = "0.22"

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tracing]
version = "0.1"

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

[dependencies.tree-sitter]
version = "0.26.5"

[dependencies.tree-sitter-c]
version = "0.24.1"

[dependencies.tree-sitter-c-sharp]
version = "0.23.1"

[dependencies.tree-sitter-cpp]
version = "0.23.4"

[dependencies.tree-sitter-gdscript]
version = "6.1.0"

[dependencies.tree-sitter-go]
version = "0.25.0"

[dependencies.tree-sitter-java]
version = "0.23.5"

[dependencies.tree-sitter-kotlin-codanna]
version = "0.3.9"

[dependencies.tree-sitter-lua]
version = "0.4.1"

[dependencies.tree-sitter-php]
version = "0.24.2"

[dependencies.tree-sitter-python]
version = "0.25.0"

[dependencies.tree-sitter-rust]
version = "0.24.0"

[dependencies.tree-sitter-swift]
version = "0.7.1"

[dependencies.tree-sitter-typescript]
version = "0.23.2"

[dependencies.walkdir]
version = "2"

[dependencies.zerocopy]
version = "0.7"
features = ["derive"]

[dev-dependencies.assert_cmd]
version = "2"

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

[dev-dependencies.rmcp]
version = "0.14"
features = [
    "server",
    "transport-io",
    "client",
]

[lints.clippy]
case_sensitive_file_extension_comparisons = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collapsible_if = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
double_must_use = "allow"
format_push_string = "allow"
implicit_clone = "allow"
items_after_statements = "allow"
map_unwrap_or = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_transmute_annotations = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
needless_update = "allow"
redundant_closure_for_method_calls = "allow"
result_large_err = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
used_underscore_binding = "allow"

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

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

[profile.release]
lto = true
codegen-units = 1
strip = true
