# 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 = "arai"
version = "0.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLAUDE.md that actually works. Enforce AI coding assistant instruction files via hooks."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/taniwhaai/arai"

[features]
code-graph = [
    "tree-sitter",
    "lang-python",
    "lang-javascript",
    "lang-typescript",
    "lang-rust",
    "lang-go",
    "lang-ruby",
    "lang-java",
]
default = ["code-graph"]
enrich = [
    "ort",
    "ndarray",
    "tokenizers",
]
lang-go = ["tree-sitter-go"]
lang-java = ["tree-sitter-java"]
lang-javascript = ["tree-sitter-javascript"]
lang-python = ["tree-sitter-python"]
lang-ruby = ["tree-sitter-ruby"]
lang-rust = ["tree-sitter-rust"]
lang-typescript = ["tree-sitter-typescript"]

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

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

[dependencies.dirs]
version = "6"

[dependencies.ignore]
version = "0.4"

[dependencies.ndarray]
version = "0.17"
optional = true

[dependencies.ort]
version = "2.0.0-rc.12"
features = [
    "std",
    "ndarray",
    "download-binaries",
    "copy-dylibs",
    "tls-native",
]
optional = true
default-features = false

[dependencies.regex]
version = "1"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.tokenizers]
version = "0.22"
features = ["onig"]
optional = true
default-features = false

[dependencies.toml]
version = "1"

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

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

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

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

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

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

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

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

[dependencies.walkdir]
version = "2"

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