# 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 = "aipm"
version = "0.17.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI Plugin Manager — consumer CLI (install, validate, doctor, link)"
readme = "README.md"
keywords = [
    "ai",
    "plugin",
    "package-manager",
    "mcp",
    "skills",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/thelarkinn/aipm"

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

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

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

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

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

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

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

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

[dependencies.clap-verbosity-flag]
version = "3"
features = ["tracing"]
default-features = false

[dependencies.inquire]
version = "0.9"
features = [
    "crossterm",
    "one-liners",
]
default-features = false

[dependencies.libaipm]
version = "0.17.4"

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.insta]
version = "1"

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

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

[lints.clippy]
allow_attributes = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
clone_on_ref_ptr = "warn"
create_dir = "warn"
dbg_macro = "deny"
default_trait_access = "warn"
doc_markdown = "warn"
exit = "deny"
expect_used = "deny"
indexing_slicing = "warn"
items_after_statements = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "deny"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
no_effect_underscore_binding = "warn"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
struct_excessive_bools = "warn"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"

[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 = "deny"
priority = -1

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

[lints.rust]
unsafe_code = "forbid"
