thread-flow 0.1.0

Thread dataflow integration for data processing pipelines, using CocoIndex.
Documentation
# 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.89"
name = "thread-flow"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Thread dataflow integration for data processing pipelines, using CocoIndex."
readme = "README.md"
keywords = [
    "analysis",
    "ast",
    "caching",
    "dataflow",
    "incremental",
]
categories = [
    "algorithms",
    "caching",
    "development-tools",
    "parsing",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/knitli/thread"

[features]
caching = ["dep:moka"]
d1-backend = []
default = [
    "mimalloc",
    "parallel",
    "postgres-backend",
    "recoco-minimal",
]
mimalloc = ["dep:mimalloc"]
parallel = ["dep:rayon"]
postgres-backend = [
    "dep:deadpool-postgres",
    "dep:tokio-postgres",
    "recoco-postgres",
]
recoco-minimal = ["recoco/source-local-file"]
recoco-postgres = [
    "recoco-minimal",
    "recoco/target-postgres",
]
worker = [
    "thread-ast-engine/worker",
    "thread-language/worker",
    "thread-services/worker",
    "thread-utilities/worker",
]

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

[[example]]
name = "d1_integration_test"
path = "examples/d1_integration_test/main.rs"

[[example]]
name = "d1_local_test"
path = "examples/d1_local_test/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "d1_profiling"
path = "benches/d1_profiling.rs"
harness = false

[[bench]]
name = "fingerprint_benchmark"
path = "benches/fingerprint_benchmark.rs"
harness = false

[[bench]]
name = "incremental_benchmarks"
path = "benches/incremental_benchmarks.rs"

[[bench]]
name = "load_test"
path = "benches/load_test.rs"
harness = false

[[bench]]
name = "parse_benchmark"
path = "benches/parse_benchmark.rs"
harness = false

[dependencies.async-trait]
version = "0.1.89"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.10"

[dependencies.deadpool-postgres]
version = "0.14"
optional = true

[dependencies.env_logger]
version = "0.11"

[dependencies.futures]
version = "0.3.31"

[dependencies.log]
version = "0.4"

[dependencies.metrics]
version = "0.24"

[dependencies.mimalloc]
version = "0.1.48"
features = ["v3"]
optional = true

[dependencies.moka]
version = "0.12"
features = ["future"]
optional = true

[dependencies.rayon]
version = "1.11.0"
optional = true

[dependencies.recoco]
version = "0.2.1"
features = ["source-local-file"]
default-features = false

[dependencies.reqwest]
version = "0.12"
features = ["json"]

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.thread-ast-engine]
version = "0.1.0"
default-features = false

[dependencies.thread-language]
version = "0.1.0"
features = [
    "go",
    "javascript",
    "matching",
    "python",
    "rust",
    "tsx",
    "typescript",
]
default-features = false

[dependencies.thread-services]
version = "0.1.0"
features = [
    "ast-grep-backend",
    "serialization",
]
default-features = false

[dependencies.thread-utilities]
version = "0.1.3"
features = ["hashers"]
default-features = false

[dependencies.tokio]
version = "1.49"
features = ["full"]

[dependencies.tokio-postgres]
version = "0.7"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "json",
]

[dependencies.tree-sitter]
version = ">=0.25.0"

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

[dev-dependencies.deadpool-postgres]
version = "0.14"

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

[dev-dependencies.metrics-exporter-prometheus]
version = "0.18"

[dev-dependencies.rusqlite]
version = "0.32.1"
features = ["bundled"]

[dev-dependencies.tempfile]
version = "3.13"

[dev-dependencies.testcontainers]
version = "0.27.1"

[dev-dependencies.testcontainers-modules]
version = "0.15.0"
features = ["postgres"]

[dev-dependencies.tokio-postgres]
version = "0.7"