# 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.93"
name = "droidsaw"
version = "2.0.0"
build = "build.rs"
exclude = [
    "/tests",
    "/orchestration",
    "/fuzz",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DROIDSAW — unified Android reverse engineering CLI. Hermes, DEX, APK signing. JSON output, MCP server. Bytecode is not a security layer."
homepage = "https://droidsaw.com"
readme = "README.md"
keywords = [
    "android",
    "reverse-engineering",
    "decompiler",
    "security",
    "bytecode",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "BSD-3-Clause"
repository = "https://github.com/droidsaw/droidsaw"

[features]
default = []
mcp = [
    "dep:rmcp",
    "dep:tokio",
    "dep:tracing",
    "dep:tracing-subscriber",
    "dep:tokio-util",
    "dep:libc",
]

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

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

[[bin]]
name = "droidsaw-mcp"
path = "src/bin/mcp.rs"
required-features = ["mcp"]

[dependencies.ahash]
version = "0.8"

[dependencies.anyhow]
version = "1"

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

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

[dependencies.droidsaw-apk]
version = "2"

[dependencies.droidsaw-cli-contract]
version = "2"

[dependencies.droidsaw-common]
version = "2"

[dependencies.droidsaw-dex]
version = "2"

[dependencies.droidsaw-hermes]
version = "2"

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

[dependencies.rayon]
version = "1"

[dependencies.regex]
version = "1"

[dependencies.rmcp]
version = "1.3"
features = [
    "server",
    "transport-io",
]
optional = true

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

[dependencies.rustc-hash]
version = "2"

[dependencies.self_cell]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11.0"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

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

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
optional = true

[dependencies.walkdir]
version = "2"

[dependencies.zip]
version = "2"

[dev-dependencies.cyclonedx-bom]
version = "0.8.1"

[dev-dependencies.droidsaw-apk]
version = "2"
features = ["test-support"]

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

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

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[profile.release]
debug = "line-tables-only"
