# 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.85"
name = "prx"
version = "0.5.14"
build = "build.rs"
exclude = [
    "models/",
    "benchmarks/",
    "book/",
    "docs/",
    ".prx/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Praxis — agent-native Unix tools. Single binary replacing grep, cat, find, sed, diff for AI coding agents."
readme = "README.md"
keywords = [
    "cli",
    "ai",
    "agent",
    "search",
    "tools",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/civitas-io/prx"

[features]
default = ["mcp"]
mcp = [
    "rmcp",
    "tokio",
    "schemars",
]
watch = [
    "notify",
    "tokio",
]

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.ast-grep-core]
version = "0.42"

[dependencies.base64]
version = "0.22"

[dependencies.bloomfilter]
version = "3.0"

[dependencies.bytemuck]
version = "1"
features = ["extern_crate_alloc"]

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

[dependencies.dirs-next]
version = "2"

[dependencies.half]
version = "2"

[dependencies.ignore]
version = "0.4"

[dependencies.memmap2]
version = "0.9"

[dependencies.ndarray]
version = "0.17"

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

[dependencies.postcard]
version = "1"
features = ["alloc"]

[dependencies.rayon]
version = "1"

[dependencies.regex]
version = "1"

[dependencies.rmcp]
version = "1"
features = [
    "server",
    "transport-io",
    "schemars",
]
optional = true

[dependencies.safetensors]
version = "0.7"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.similar]
version = "3.1"

[dependencies.sprs]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.23"

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

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

[dependencies.tree-sitter-bash]
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-css]
version = "0.25"

[dependencies.tree-sitter-dockerfile]
version = "0.8"
package = "tree-sitter-containerfile"

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

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

[dependencies.tree-sitter-hcl]
version = "1.1"

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

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

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

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

[dependencies.tree-sitter-kotlin]
version = "0.4"
package = "tree-sitter-kotlin-sg"

[dependencies.tree-sitter-make]
version = "1.1"

[dependencies.tree-sitter-markdown]
version = "0.5"
package = "tree-sitter-md"

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

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

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

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

[dependencies.tree-sitter-sql]
version = "0.3"
package = "tree-sitter-sequel"

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

[dependencies.tree-sitter-toml]
version = "0.7"
package = "tree-sitter-toml-ng"

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

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

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]

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

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

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

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

[build-dependencies.half]
version = "2"

[build-dependencies.serde_json]
version = "1"

[build-dependencies.sha2]
version = "0.10"

[build-dependencies.ureq]
version = "3"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true
