# 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 = "cyt-indexer"
version = "0.2.2"
authors = ["Damien Berezenko"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tool schema decomposition and catalog indexing for MCP tool gating"
readme = "README.md"
keywords = [
    "mcp",
    "json-schema",
    "tool-gating",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/qdrddr/clear-your-tools"
resolver = "2"

[features]
cli = []
default = ["cli"]
node = [
    "napi",
    "napi-derive",
]
python = ["pyo3"]

[lib]
name = "cyt_indexer"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "cyt-indexer"
path = "src/bin/cyt-indexer.rs"
required-features = ["cli"]

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

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

[dependencies.napi]
version = "3"
features = [
    "napi4",
    "serde-json",
]
optional = true

[dependencies.napi-derive]
version = "3"
features = ["type-def"]
optional = true

[dependencies.pyo3]
version = "0.24.1"
features = [
    "extension-module",
    "abi3-py312",
]
optional = true

[dependencies.serde_json]
version = "1"

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

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