[package]
edition = "2024"
rust-version = "1.89"
name = "thread"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A safe, fast, flexible code analysis and parsing library built in Rust. High-level entry point for the Thread ecosystem."
homepage = "https://knitli.com"
documentation = "https://docs.rs/thread"
readme = "README.md"
keywords = [
"code-analysis",
"parsing",
"repository-tools",
"static-analysis",
"tree-sitter",
]
categories = [
"artificial-intelligence",
"command-line-utilities",
"development-tools",
"parser-implementations",
"text-processing",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/knitli/thread"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
ast = [
"dep:thread-ast-engine",
"thread-ast-engine/matching",
"thread-ast-engine/parsing",
]
default = [
"ast",
"language",
"mimalloc",
"rule",
"services",
]
flow = [
"dep:thread-flow",
"dep:thread-services",
"thread-flow/parallel",
"thread-flow/postgres-backend",
"thread-services/serialization",
]
full = [
"ast",
"flow",
"language",
"rule",
"services",
"thread-language/html-embedded",
"thread-services/tower-services",
"utils",
]
language = [
"dep:thread-language",
"thread-language/all-parsers",
]
mimalloc = ["dep:mimalloc"]
rule = ["dep:thread-rule-engine"]
services = [
"dep:thread-services",
"thread-services/ast-grep-backend",
"thread-services/performance",
"thread-services/serialization",
]
utils = ["dep:thread-utilities"]
worker = [
"ast",
"language",
"rule",
"services",
"thread-ast-engine?/worker",
"thread-flow?/worker",
"thread-language?/worker",
"thread-rule-engine?/worker",
"thread-services?/ast-grep-backend",
"thread-services?/worker",
"thread-utilities?/worker",
]
[lib]
name = "thread"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies.mimalloc]
version = "0.1.48"
features = ["v3"]
optional = true
[dependencies.thread-ast-engine]
version = "0.1.0"
optional = true
default-features = false
[dependencies.thread-flow]
version = "0.1.0"
optional = true
default-features = false
[dependencies.thread-language]
version = "0.1.0"
optional = true
default-features = false
[dependencies.thread-rule-engine]
version = "0.1.0"
optional = true
default-features = false
[dependencies.thread-services]
version = "0.1.0"
optional = true
default-features = false
[dependencies.thread-utilities]
version = "0.1.3"
optional = true
default-features = false