# 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.0.4"
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-or-later"
repository = "https://github.com/oldnordic/mirage"

[features]
backend-native-v3 = [
    "magellan/native-v3",
    "sqlitegraph/native-v3",
]
backend-sqlite = ["sqlitegraph/sqlite-backend"]
default = [
    "unix",
    "backend-sqlite",
]
native-v3 = ["backend-native-v3"]
sqlite = ["backend-sqlite"]
unix = []
windows = []

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

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

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

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

[[test]]
name = "integration_test"
path = "tests/integration_test.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.git2]
version = "0.18"

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

[dependencies.magellan]
version = "2.4"
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 = "2.0"
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
