# 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"
rust-version = "1.89"
name = "bzr"
version = "0.4.4"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A CLI for Bugzilla, inspired by gh"
homepage = "https://github.com/randomparity/bzr"
readme = "README.md"
keywords = [
    "bugzilla",
    "cli",
    "bug-tracker",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/randomparity/bzr"
resolver = "3"

[package.metadata.deb]
assets = [
    [
    "target/release/bzr",
    "usr/bin/",
    "755",
],
    [
    "man/man1/bzr.1",
    "usr/share/man/man1/",
    "644",
],
    [
    "man/man1/bzr-*.1",
    "usr/share/man/man1/",
    "644",
],
    [
    "README.md",
    "usr/share/doc/bzr/README.md",
    "644",
],
    [
    "CHANGELOG.md",
    "usr/share/doc/bzr/CHANGELOG.md",
    "644",
],
]
copyright = "2025-2026 David Christensen <randomparity@gmail.com>"
depends = "libc6, libdbus-1-3"
extended-description = """
bzr is a Bugzilla CLI inspired by GitHub's gh, supporting both REST and
XML-RPC APIs, multi-server configuration, saved queries and templates,
and OS-keychain-backed credential storage."""
license-file = [
    "LICENSE",
    "0",
]
maintainer = "David Christensen <randomparity@gmail.com>"
priority = "optional"
recommends = "ca-certificates"
section = "devel"

[package.metadata.generate-rpm]
auto-req = "no"
summary = "A CLI for Bugzilla, inspired by gh"

[[package.metadata.generate-rpm.assets]]
dest = "/usr/bin/bzr"
mode = "755"
source = "target/release/bzr"

[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/man/man1/bzr.1"
doc = true
mode = "644"
source = "man/man1/bzr.1"

[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/man/man1/"
doc = true
mode = "644"
source = "man/man1/bzr-*.1"

[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/bzr/README.md"
doc = true
mode = "644"
source = "README.md"

[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/bzr/CHANGELOG.md"
doc = true
mode = "644"
source = "CHANGELOG.md"

[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/licenses/bzr/LICENSE"
mode = "644"
source = "LICENSE"

[package.metadata.generate-rpm.requires]
dbus-libs = "*"
glibc = "*"

[features]
default = ["keyring"]
keyring = [
    "dep:apple-native-keyring-store",
    "dep:dbus-secret-service-keyring-store",
    "dep:keyring-core",
    "dep:rpassword",
    "dep:windows-native-keyring-store",
]
test-helpers = [
    "dep:wiremock",
    "dep:tempfile",
]
vendored-keyring = ["dbus-secret-service-keyring-store?/vendored"]

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

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

[[bin]]
name = "bzr_lock_helper"
path = "src/bin/bzr_lock_helper.rs"
required-features = ["test-helpers"]

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

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

[dependencies.base64]
version = "0.22"

[dependencies.clap]
version = ">=4.5.60, <4.7"
features = ["derive"]

[dependencies.colored]
version = "3"

[dependencies.dirs]
version = "6"

[dependencies.keyring-core]
version = "1"
optional = true

[dependencies.percent-encoding]
version = "2"

[dependencies.quick-xml]
version = "0.40"

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

[dependencies.rpassword]
version = "7"
optional = true

[dependencies.rustls]
version = "0.23"
features = ["std"]
default-features = false

[dependencies.rustls-native-certs]
version = "0.8"

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

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

[dependencies.sha2]
version = "0.10"

[dependencies.tabled]
version = "0.21"
features = ["std"]
default-features = false

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "sync",
]

[dependencies.toml]
version = "1"

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2"

[dependencies.webpki-roots]
version = "1.0"

[dependencies.wiremock]
version = ">=0.6, <0.6.6"
optional = true

[dev-dependencies.mutants]
version = "0.0.4"

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

[dev-dependencies.rcgen]
version = "0.14"

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

[dev-dependencies.wiremock]
version = ">=0.6, <0.6.6"

[target.'cfg(target_os = "linux")'.dependencies.dbus-secret-service-keyring-store]
version = "1"
features = ["crypto-rust"]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.apple-native-keyring-store]
version = "1"
features = ["keychain"]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows-native-keyring-store]
version = "1"
optional = true

[lints.clippy]
allow_attributes = "warn"
dbg_macro = "deny"
expect_used = "warn"
module_name_repetitions = "allow"
panic = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
similar_names = "allow"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]
