# 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 = "tilth"
version = "0.6.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tree-sitter indexed lookups — smart code reading for AI agents"
readme = "README.md"
keywords = [
    "mcp",
    "code-search",
    "tree-sitter",
    "developer-tools",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/jahala/tilth"

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

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

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

[dependencies.clap_complete]
version = "4"

[dependencies.dashmap]
version = "6"

[dependencies.globset]
version = "0.4"

[dependencies.grep-regex]
version = "0.1"

[dependencies.grep-searcher]
version = "0.1"

[dependencies.ignore]
version = "0.4"

[dependencies.memchr]
version = "2"

[dependencies.memmap2]
version = "0.9"

[dependencies.rayon]
version = "1"

[dependencies.regex-syntax]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.streaming-iterator]
version = "0.1"

[dependencies.toml]
version = "0.8"

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

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

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

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

[dependencies.tree-sitter-elixir]
version = "0.3"

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

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

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

[dependencies.tree-sitter-kotlin-ng]
version = "1.1"

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

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

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

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

[dependencies.tree-sitter-scala]
version = "0.24"

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

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

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

[profile.fast]
lto = "thin"
codegen-units = 8
inherits = "release"
strip = false

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
overflow-checks = false
strip = true

[profile.release.build-override]
opt-level = 2
