# 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"
rust-version = "1.70"
name = "mirage-analyzer"
version = "1.4.3"
authors = ["Mirage Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Path-Aware Code Intelligence Engine for Rust"
documentation = "https://docs.rs/mirage-analyzer"
readme = "README.md"
keywords = [
    "code-analysis",
    "cfg",
    "path-enumeration",
    "mir",
    "control-flow",
]
categories = [
    "development-tools",
    "development-tools::testing",
    "command-line-utilities",
]
license = "GPL-3.0"
repository = "https://github.com/oldnordic/mirage"

[features]
backend-geometric = [
    "magellan/geometric-backend",
    "dep:geographdb-core",
]
backend-sqlite = ["sqlitegraph/sqlite-backend"]
default = [
    "unix",
    "backend-sqlite",
]
geometric = ["backend-geometric"]
sqlite = ["backend-sqlite"]
system-tests = []
unix = []
windows = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.blake3]
version = "1.5"

[dependencies.chrono]
version = "0.4"

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

[dependencies.geographdb-core]
version = "0.1.0"
optional = true

[dependencies.git2]
version = "0.19"

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

[dependencies.magellan]
version = "3.3.9"
features = ["sqlite-backend"]
default-features = false

[dependencies.petgraph]
version = "0.8"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlitegraph]
version = "3.0.1"
features = ["sqlite-backend"]
default-features = false

[dependencies.thiserror]
version = "1.0"

[dependencies.tracing]
version = "0.1"

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

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

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

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
