# 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.94"
name = "sqry-core"
version = "28.0.3"
authors = ["Verivus Pty Ltd"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for sqry - semantic code search engine"
readme = false
license = "MIT"
repository = "https://github.com/verivus-oss/sqry"
resolver = "2"

[features]
context-tests = []
default = [
    "uses",
    "insights",
    "troubleshoot",
]
dhat-heap = ["dep:dhat"]
insights = ["uses"]
jvm-classpath = []
loom = ["dep:loom"]
rebuild-internals = []
share = ["insights"]
test-support = [
    "dep:env_logger",
    "dep:assert_cmd",
]
troubleshoot = ["insights"]
uses = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.assert_cmd]
version = "2.2.2"
optional = true

[dependencies.blake3]
version = "1.8"

[dependencies.cacache]
version = "13"
features = [
    "mmap",
    "tokio-runtime",
]
default-features = false

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.dashmap]
version = "6.2.1"

[dependencies.dhat]
version = "0.3"
optional = true

[dependencies.dirs]
version = "6.0"

[dependencies.env_logger]
version = "0.11"
features = [
    "auto-color",
    "regex",
]
optional = true
default-features = false

[dependencies.fancy-regex]
version = "0.18"

[dependencies.fs2]
version = "0.4"

[dependencies.globset]
version = "0.4"

[dependencies.grep]
version = "0.4"

[dependencies.grep-regex]
version = "0.1"

[dependencies.grep-searcher]
version = "0.1"

[dependencies.hex]
version = "0.4"

[dependencies.hostname]
version = "0.4"

[dependencies.ignore]
version = "0.4"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.loom]
version = "0.7"
optional = true

[dependencies.lru]
version = "0.18"

[dependencies.memmap2]
version = "0.9"

[dependencies.miette]
version = "7.6"
features = ["fancy"]

[dependencies.moka]
version = "0.12"
features = ["sync"]

[dependencies.notify]
version = "8.2"
features = ["macos_fsevent"]
default-features = false

[dependencies.once_cell]
version = "1.21"

[dependencies.parking_lot]
version = "0.12"

[dependencies.postcard]
version = "1"
features = [
    "use-std",
    "alloc",
]
default-features = false

[dependencies.rapidfuzz]
version = "0.5"

[dependencies.rayon]
version = "1.12"

[dependencies.regex]
version = "1.12"

[dependencies.regex-syntax]
version = "0.8"

[dependencies.semver]
version = "1.0"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_bytes]
version = "0.11"

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.similar]
version = "3.1"

[dependencies.smallvec]
version = "1.15"
features = ["serde"]

[dependencies.static_assertions]
version = "1.1"

[dependencies.streaming-iterator]
version = "0.1"

[dependencies.tempfile]
version = "3.27"

[dependencies.thiserror]
version = "2.0"

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

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

[dependencies.tree-sitter-cpp]
version = "0.23.4"

[dependencies.tree-sitter-go]
version = "0.23.4"

[dependencies.tree-sitter-javascript]
version = "0.23.1"

[dependencies.tree-sitter-python]
version = "0.23.6"

[dependencies.tree-sitter-rust]
version = "0.24.2"

[dependencies.tree-sitter-typescript]
version = "0.23.2"

[dependencies.uuid]
version = "1.23"
features = ["v4"]

[dependencies.walkdir]
version = "2.5"

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh64"]

[dependencies.zstd]
version = "0.13.3"

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dev-dependencies.env_logger]
version = "0.11"
features = [
    "auto-color",
    "regex",
]
default-features = false

[dev-dependencies.filetime]
version = "0.2"

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

[dev-dependencies.jsonschema]
version = "0.46"
default-features = false

[dev-dependencies.proptest]
version = "1.11"

[dev-dependencies.serial_test]
version = "3.4"

[dev-dependencies.syn]
version = "2"
features = [
    "full",
    "visit",
]

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

[dev-dependencies.trybuild]
version = "1.0"

[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = ["signal"]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = ["Win32_Storage_FileSystem"]
