# 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.92.0"
name = "gcop-rs"
version = "0.6.0"
authors = [
    "AptS-1547 <apts-1547@esaps.net>",
    "AptS-1738 <apts-1738@esaps.net>",
    "uaih3k9x <uaih3k9x@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI-powered Git commit message generator and code reviewer"
homepage = "https://github.com/AptS-1547/gcop-rs"
readme = "README.md"
keywords = [
    "git",
    "commit",
    "ai",
    "code-review",
    "cli",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/AptS-1547/gcop-rs"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/gcop-rs-v{ version }-{ target }{ archive-suffix }"
bin-dir = "gcop-rs-v{ version }-{ target }{ binary-ext }"
pkg-fmt = "bin"

[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/gcop-rs-v{ version }-macos-amd64"

[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/gcop-rs-v{ version }-macos-arm64"

[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/gcop-rs-v{ version }-linux-amd64"

[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/gcop-rs-v{ version }-linux-arm64"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/gcop-rs-v{ version }-windows-amd64.exe"

[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/gcop-rs-v{ version }-windows-aarch64.exe"

[features]
test-utils = ["mockall"]

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.bytes]
version = "1.10"

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

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "color",
]

[dependencies.colored]
version = "3"

[dependencies.config]
version = "0.15"

[dependencies.dialoguer]
version = "0.12"
features = ["editor"]

[dependencies.directories]
version = "6.0"

[dependencies.edit]
version = "0.1"

[dependencies.futures]
version = "0.3"

[dependencies.git2]
version = "0.20"
default-features = false

[dependencies.httpdate]
version = "1.0"

[dependencies.indicatif]
version = "0.18.3"

[dependencies.mockall]
version = "0.13"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "socks",
    "stream",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.toml]
version = "0.9"

[dependencies.tracing]
version = "0.1"

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

[dependencies.which]
version = "8.0.0"

[dev-dependencies.mockito]
version = "1.6"

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.serial_test]
version = "3.1"

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

[profile.dev]
opt-level = 1
lto = false
codegen-units = 16
panic = "unwind"
incremental = true
strip = false

[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
panic = "abort"
strip = false

[profile.release-debug]
lto = false
codegen-units = 1
debug = 2
inherits = "release"
strip = false
