# 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.82"
name = "rtb-update"
version = "0.5.2"
authors = ["Matt Cockayne <matt@phpboyscout.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust Tool Base — self-update subsystem. Composes on rtb-vcs to fetch signed release assets and atomically swap the running binary."
homepage = "https://rtb.phpboyscout.uk"
documentation = "https://rtb.phpboyscout.uk"
readme = "README.md"
keywords = [
    "cli",
    "framework",
    "scaffolding",
    "ai",
    "mcp",
]
categories = [
    "command-line-interface",
    "development-tools",
]
license = "MIT"
repository = "https://gitlab.com/phpboyscout/rust-tool-base"

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.clap]
version = "4.6"
features = [
    "derive",
    "env",
    "wrap_help",
    "string",
]

[dependencies.directories]
version = "5"

[dependencies.ed25519-dalek]
version = "2"

[dependencies.flate2]
version = "1"

[dependencies.linkme]
version = "0.3"

[dependencies.miette]
version = "7"
features = ["fancy"]

[dependencies.rtb-app]
version = "0.5.2"

[dependencies.rtb-credentials]
version = "0.5.2"

[dependencies.rtb-error]
version = "0.5.2"

[dependencies.rtb-vcs]
version = "0.5.2"
default-features = false

[dependencies.self-replace]
version = "1.5"

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

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

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-util]
version = "0.7"
features = ["io"]

[dependencies.tracing]
version = "0.1"

[dependencies.zip]
version = "8"
features = ["deflate"]
default-features = false

[dev-dependencies.cucumber]
version = "0.21"
features = ["macros"]

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

[dev-dependencies.time]
version = "0.3"
features = [
    "serde",
    "formatting",
    "parsing",
    "macros",
]

[dev-dependencies.tokio]
version = "1.47"
features = [
    "full",
    "macros",
    "rt-multi-thread",
]

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

[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 = "warn"
unsafe_code = "deny"
