[package]
edition = "2024"
rust-version = "1.89"
name = "thread-ast-engine"
version = "0.1.1"
build = false
include = [
"CHANGELOG.md",
"CONTRIBUTING.md",
"CONTRIBUTORS_LICENSE_AGREEMENT.md",
"LICENSE.md",
"README.md",
"VENDORED.md",
"examples/**",
"sbom.spdx",
"src/**",
"tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core AST engine for Thread - parsing, matching, and transforming code using AST patterns. Forked from ast-grep-core."
homepage = "https://knitli.com"
documentation = "https://docs.rs/thread"
readme = "README.md"
keywords = [
"ast",
"codemod",
"pattern",
"rewrite",
"search",
]
categories = [
"artificial-intelligence",
"command-line-utilities",
"development-tools",
"parser-implementations",
"text-processing",
]
license = "AGPL-3.0-or-later AND MIT"
repository = "https://github.com/knitli/thread"
[features]
default = [
"matching",
"mimalloc",
"parsing",
]
matching = ["dep:regex"]
mimalloc = [
"dep:mimalloc",
"thread-utilities/mimalloc",
]
parsing = ["dep:tree-sitter"]
worker = ["thread-utilities/worker"]
[lib]
name = "thread_ast_engine"
path = "src/lib.rs"
[dependencies.bit-set]
version = "0.8.0"
[dependencies.mimalloc]
version = "0.1.48"
features = ["v3"]
optional = true
[dependencies.regex]
version = "1.12.2"
optional = true
[dependencies.thiserror]
version = "2.0.17"
[dependencies.thread-utilities]
version = "0.1.3"
features = [
"hashers",
"simd",
]
default-features = false
[dependencies.tree-sitter]
version = ">=0.25.0"
optional = true
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[dev-dependencies.tree-sitter-typescript]
version = "0.23.2"
[build-dependencies.cc]
version = "1.2.30"
[lints.clippy]
branches_sharing_code = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "allow"
cognitive_complexity = "warn"
collection_is_never_read = "allow"
dbg_macro = "deny"
fallible_impl_from = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
inline_always = "allow"
items_after_statements = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
negative_feature_names = "allow"
obfuscated_if_else = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
range_plus_one = "allow"
redundant_clone = "allow"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
similar_names = "allow"
string_lit_as_bytes = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
todo = "allow"
too_many_lines = "allow"
transmute_undefined_repr = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
used_underscore_items = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1