# 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"
name = "kodex"
version = "0.6.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI knowledge graph with persistent memory across sessions"
homepage = "https://github.com/physwkim/kodex"
documentation = "https://github.com/physwkim/kodex"
readme = "README.md"
license = "MIT"
repository = "https://github.com/physwkim/kodex"

[features]
all = [
    "all-languages",
    "fetch",
    "watch",
    "mcp",
    "svg",
    "parallel",
]
all-languages = [
    "lang-python",
    "lang-javascript",
    "lang-typescript",
    "lang-go",
    "lang-rust",
    "lang-java",
    "lang-c",
    "lang-cpp",
    "lang-ruby",
    "lang-csharp",
    "lang-scala",
    "lang-php",
    "lang-swift",
    "lang-lua",
]
default = [
    "extract",
    "all-languages",
]
extract = ["tree-sitter"]
fetch = ["reqwest"]
lang-c = [
    "extract",
    "tree-sitter-c",
]
lang-cpp = [
    "extract",
    "tree-sitter-cpp",
]
lang-csharp = [
    "extract",
    "tree-sitter-c-sharp",
]
lang-go = [
    "extract",
    "tree-sitter-go",
]
lang-java = [
    "extract",
    "tree-sitter-java",
]
lang-javascript = [
    "extract",
    "tree-sitter-javascript",
]
lang-lua = [
    "extract",
    "tree-sitter-lua",
]
lang-php = [
    "extract",
    "tree-sitter-php",
]
lang-python = [
    "extract",
    "tree-sitter-python",
]
lang-ruby = [
    "extract",
    "tree-sitter-ruby",
]
lang-rust = [
    "extract",
    "tree-sitter-rust",
]
lang-scala = [
    "extract",
    "tree-sitter-scala",
]
lang-swift = [
    "extract",
    "tree-sitter-swift",
]
lang-typescript = [
    "extract",
    "tree-sitter-typescript",
]
mcp = ["tokio"]
parallel = ["rayon"]
svg = ["plotters"]
video = [
    "whisper-rs",
    "hound",
]
watch = ["notify"]

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.dirs]
version = "6"

[dependencies.globset]
version = "0.4"

[dependencies.hound]
version = "3"
optional = true

[dependencies.notify]
version = "7"
optional = true

[dependencies.nucleo-matcher]
version = "0.3"

[dependencies.petgraph]
version = "0.6"

[dependencies.plotters]
version = "0.3"
optional = true

[dependencies.rayon]
version = "1"
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = ["blocking"]
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

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

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

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

[dependencies.tree-sitter-c-sharp]
version = "0.23"
optional = true

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.walkdir]
version = "2"

[dependencies.whisper-rs]
version = "0.16"
optional = true

[dev-dependencies.insta]
version = "1"

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