# 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 = "heddle-semantic"
version = "0.5.1"
authors = ["Luke"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An AI-native version control system"
readme = false
keywords = [
    "vcs",
    "version-control",
    "ai",
    "git",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/HeddleCo/heddle"
resolver = "2"

[features]
common-languages = [
    "lang-rust",
    "lang-python",
    "lang-javascript",
    "lang-typescript",
]
default = ["common-languages"]
extended-languages = [
    "lang-c",
    "lang-cpp",
    "lang-go",
    "lang-java",
]
lang-c = ["dep:tree-sitter-c"]
lang-cpp = ["dep:tree-sitter-cpp"]
lang-go = ["dep:tree-sitter-go"]
lang-java = ["dep:tree-sitter-java"]
lang-javascript = ["dep:tree-sitter-javascript"]
lang-python = ["dep:tree-sitter-python"]
lang-rust = ["dep:tree-sitter-rust"]
lang-typescript = ["dep:tree-sitter-typescript"]

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

[[example]]
name = "classify_demo"
path = "examples/classify_demo.rs"

[[bench]]
name = "merge_function_level"
path = "benches/merge_function_level.rs"
harness = false
required-features = ["lang-rust"]

[[bench]]
name = "profile_target"
path = "benches/profile_target.rs"
harness = false
required-features = ["lang-rust"]

[dependencies.anyhow]
version = "1"

[dependencies.merge]
version = "0.5"
package = "heddle-merge"

[dependencies.objects]
version = "0.5"
features = ["memory-backend"]
package = "heddle-objects"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.tree-sitter-cpp]
version = "0.23"
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-rust]
version = "0.24"
optional = true

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

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.pprof]
version = "0.15"
features = ["flamegraph"]
default-features = false
