# 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.85"
name = "mycelium-rcig-cli"
version = "0.1.9"
authors = ["aimasteracc and the Mycelium contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The `mycelium` command-line tool."
homepage = "https://github.com/aimasteracc/mycelium"
documentation = "https://docs.rs/mycelium-core"
readme = "README.md"
keywords = [
    "code-intelligence",
    "cli",
    "graph",
    "tree-sitter",
    "ai",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/aimasteracc/mycelium"
resolver = "2"

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.ignore]
version = "0.4"

[dependencies.mycelium-core]
version = "0.1.9"
package = "mycelium-rcig-core"

[dependencies.mycelium-hyphae]
version = "0.1.9"
package = "mycelium-rcig-hyphae"

[dependencies.mycelium-mcp]
version = "0.1.9"
package = "mycelium-rcig-mcp"

[dependencies.mycelium-pack]
version = "0.1.9"
package = "mycelium-rcig-pack"

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "fs",
    "io-util",
    "signal",
]

[dependencies.tracing]
version = "0.1"

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

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

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

[dependencies.tree-sitter-c-sharp]
version = "0.23"

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

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

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

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

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

[dependencies.tree-sitter-ruby]
version = "0.23"

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

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

[dependencies.walkdir]
version = "2"

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

[lints.clippy]
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust.missing_docs]
level = "warn"
priority = 1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unreachable_pub]
level = "warn"
priority = 1

[lints.rust.unsafe_code]
level = "deny"
priority = 1
