# 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 = "2021"
name = "splice"
version = "2.6.7"
build = false
exclude = [
    ".planning/",
    ".splice/",
    "CLAUDE.md",
    "AGENTS.md",
    "QUICKSTART.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Span-safe refactoring kernel for 7 languages with Magellan code graph integration"
documentation = "https://github.com/oldnordic/splice/blob/main/README.md"
readme = "README.md"
keywords = [
    "refactoring",
    "cli",
    "code-analysis",
    "ast",
    "tree-sitter",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "development-tools::build-utils",
]
license = "GPL-3.0"
repository = "https://github.com/oldnordic/splice"

[features]
default = [
    "unix",
    "sqlite",
]
geometric = ["magellan/geometric-backend"]
migration = [
    "magellan/sqlite-backend",
    "sqlitegraph/sqlite-backend",
]
sqlite = [
    "magellan/sqlite-backend",
    "sqlitegraph/sqlite-backend",
]
unix = ["libc"]
windows = []

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

[[bin]]
name = "splice"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.blake3]
version = "1.5"

[dependencies.chrono]
version = "0.4"
features = [
    "std",
    "clock",
]
default-features = false

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.csv]
version = "1.3"

[dependencies.env_logger]
version = "0.11"

[dependencies.glob]
version = "0.3"

[dependencies.is-terminal]
version = "0.4"

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.magellan]
version = "3.3.7"
optional = true
default-features = false

[dependencies.nu-ansi-term]
version = "0.50"

[dependencies.regex]
version = "1.10"

[dependencies.ropey]
version = "1.6"

[dependencies.rusqlite]
version = "0.31"
features = ["bundled"]

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.similar]
version = "2.6"

[dependencies.sqlitegraph]
version = "2.2.4"
default-features = false

[dependencies.strsim]
version = "0.11"

[dependencies.tempfile]
version = "3.10"

[dependencies.thiserror]
version = "1.0"

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

[dependencies.tree-sitter-c]
version = "0.21"

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

[dependencies.tree-sitter-java]
version = "0.21"

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

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

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

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

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

[dependencies.which]
version = "6"

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