# 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 = "peek-code"
version = "0.3.0"
authors = ["owniai"]
build = false
exclude = [
    ".dev/",
    ".vibewire/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
peek is a CLI tool that searches for code definitions (functions, classes,
structs, etc.) across multiple programming languages using tree-sitter AST
parsing.
"""
homepage = "https://github.com/owniai/peek"
documentation = "https://github.com/owniai/peek#readme"
readme = "README.md"
keywords = [
    "search",
    "definition",
    "ast",
    "tree-sitter",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/owniai/peek"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/peek-v{ version }-{ target }.tar.gz"
pkg-fmt = "tgz"

[[bin]]
name = "peek"
path = "src/main.rs"
bench = false

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.ignore]
version = "0.4"

[dependencies.memmap2]
version = "0.9"

[dependencies.regex]
version = "1"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.toml]
version = "0.8"

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

[dependencies.tree-sitter-bash]
version = "0.25.1"

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

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

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

[dependencies.tree-sitter-dart]
version = "0.1.0"

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

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

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

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

[dependencies.tree-sitter-lua]
version = "0.5.0"

[dependencies.tree-sitter-luau]
version = "1.2"

[dependencies.tree-sitter-objc]
version = "3.0"

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

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

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

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

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

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

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

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

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
