# 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.95.0"
name = "aptu-cli"
version = "0.4.2"
authors = ["Hugues Clouâtre"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI for Aptu - Gamified OSS issue triage with AI assistance"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/clouatre-labs/aptu"

[package.metadata.deb]
maintainer = "Hugues Clouâtre <hugues@linux.com>"
copyright = "2025 Hugues Clouâtre <hugues@linux.com>"
license-file = [
    "../../LICENSE",
    "4",
]
extended-description = "Aptu is a gamified CLI for OSS issue triage with AI assistance. It helps developers contribute meaningfully to open source projects through AI-assisted issue analysis and triage."
section = "utility"
priority = "optional"
assets = [
    [
    "target/release/aptu",
    "usr/bin/",
    "755",
],
    [
    "../../README.md",
    "usr/share/doc/aptu/",
    "644",
],
    [
    "../../LICENSE",
    "usr/share/doc/aptu/",
    "644",
],
]

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{version}/aptu-cli-{version}-{target}.tar.gz"
bin-dir = "aptu"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{version}/aptu-cli-{version}-x86_64-unknown-linux-musl.tar.gz"

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

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

[dependencies.anyhow]
version = "1"

[dependencies.aptu-core]
version = "0.4"
features = [
    "keyring",
    "ast-context",
]

[dependencies.backon]
version = "1"
features = ["tokio-sleep"]

[dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dependencies.clap_complete]
version = "4"

[dependencies.comfy-table]
version = "7"

[dependencies.console]
version = "0.16"

[dependencies.dialoguer]
version = "0.12"

[dependencies.dirs]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.indicatif]
version = "0.18"

[dependencies.rayon]
version = "1"

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde-saphyr]
version = "0.0.23"

[dependencies.serde_json]
version = "1"

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

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

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

[dev-dependencies.tokio-test]
version = "0.4"

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

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

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

[lints.rust]
unsafe_code = "warn"
unused_must_use = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("keyring"))']
