# 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 = "ctxforge"
version = "1.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The missing CLI for AI coding — assemble, count, and export perfect context bundles."
homepage = "https://github.com/sylvester-francis/ctx-forge"
readme = "README.md"
keywords = [
    "ai",
    "llm",
    "cli",
    "context",
    "claude",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/sylvester-francis/ctx-forge"

[features]
default = [
    "tui-v2",
    "mcp",
]
extract = [
    "dep:tree-sitter",
    "dep:tree-sitter-go",
    "dep:tree-sitter-rust",
    "dep:tree-sitter-python",
    "dep:tree-sitter-typescript",
    "dep:tree-sitter-javascript",
]
mcp = []
minimal = []
tui-v2 = [
    "dep:iocraft",
    "dep:smol",
    "dep:syntect",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.arboard]
version = "3.6"

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

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

[dependencies.comfy-table]
version = "7"

[dependencies.crossterm]
version = "0.29"

[dependencies.dialoguer]
version = "0.11"
features = ["editor"]

[dependencies.fuzzy-matcher]
version = "0.3"

[dependencies.git2]
version = "0.20"
features = ["vendored-libgit2"]
default-features = false

[dependencies.globset]
version = "0.4.18"

[dependencies.ignore]
version = "0.4.25"

[dependencies.indicatif]
version = "0.17"

[dependencies.iocraft]
version = "0.8"
optional = true

[dependencies.owo-colors]
version = "4"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.smol]
version = "2"
optional = true

[dependencies.strsim]
version = "0.11"

[dependencies.syntect]
version = "5"
features = ["default-fancy"]
optional = true
default-features = false

[dependencies.tempfile]
version = "3.27"

[dependencies.thiserror]
version = "2.0.18"

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

[dependencies.toml]
version = "0.8"

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

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

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

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

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

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

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

[dev-dependencies.insta]
version = "1.40"
features = ["yaml"]

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

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.temp-env]
version = "0.3"

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