[package]
name = "thread-ast-engine"
version = "0.1.1"
edition.workspace = true
rust-version.workspace = true
description = "Core AST engine for Thread - parsing, matching, and transforming code using AST patterns. Forked from ast-grep-core."
documentation.workspace = true
readme = "README.md"
homepage.workspace = true
repository.workspace = true
license = "AGPL-3.0-or-later AND MIT"
keywords = ["ast", "codemod", "pattern", "rewrite", "search"]
categories.workspace = true
include.workspace = true
[dependencies]
bit-set.workspace = true
mimalloc = { workspace = true, optional = true }
regex = { workspace = true, optional = true }
thiserror.workspace = true
thread-utilities = { workspace = true, default-features = false, features = [
"hashers",
"simd",
] }
tree-sitter = { workspace = true, optional = true }
[dev-dependencies]
criterion = { version = "0.8.2", features = ["html_reports"] }
tree-sitter-typescript = "0.23.2"
[build-dependencies]
cc = "1.2.30"
[features]
default = ["matching", "mimalloc", "parsing"]
matching = ["dep:regex"]
mimalloc = ["dep:mimalloc", "thread-utilities/mimalloc"]
parsing = ["dep:tree-sitter"]
worker = [
"thread-utilities/worker"
]
[lints]
workspace = true