# 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"
rust-version = "1.70"
name = "pctx"
version = "0.1.2"
authors = ["mc-marcocheng"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generate LLM-ready context from your codebase"
homepage = "https://github.com/mc-marcocheng/pctx"
documentation = "https://github.com/mc-marcocheng/pctx#readme"
readme = "README.md"
keywords = [
    "llm",
    "ai",
    "context",
    "cli",
    "code",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/mc-marcocheng/pctx"

[features]
clipboard = ["dep:arboard"]
default = [
    "clipboard",
    "tokens",
]
tokens = ["dep:tiktoken-rs"]

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arboard]
version = "3.4"
optional = true

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
    "string",
    "wrap_help",
]

[dependencies.clap_complete]
version = "4.5"

[dependencies.colored]
version = "2.1"

[dependencies.dunce]
version = "1.0"

[dependencies.glob]
version = "0.3"

[dependencies.ignore]
version = "0.4"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tiktoken-rs]
version = "0.5"
optional = true

[dependencies.toml]
version = "0.8"

[dependencies.walkdir]
version = "2.5"

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

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

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

[profile.dev]
opt-level = 0

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