# 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"
name = "backup"
version = "0.0.11"
authors = ["Nicolas Embriz <nbari@tequila.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "create encrypted backups"
homepage = "https://github.com/nbari/backup"
documentation = "https://github.com/nbari/backup"
readme = "README.md"
keywords = [
    "backup",
    "cli",
    "restore",
]
categories = [
    "command-line-interface",
    "command-line-utilities",
]
license = "BSD-3-Clause"
repository = "https://github.com/nbari/backup"

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

[package.metadata.deb]
assets = [[
    "target/release/backup",
    "/usr/bin/backup",
    "755",
]]
depends = ""

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

[[bin]]
name = "backup"
path = "src/bin/backup.rs"

[dependencies.anyhow]
version = "1"

[dependencies.base64]
version = "0.22.1"

[dependencies.bip39]
version = "2.2.2"
features = [
    "rand",
    "zeroize",
]

[dependencies.blake3]
version = "1.8"

[dependencies.chacha20poly1305]
version = "0.10.1"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4"
features = [
    "string",
    "env",
]

[dependencies.config]
version = "0.15"
features = ["yaml"]
default-features = false

[dependencies.dirs]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4.3"

[dependencies.hkdf]
version = "0.12.4"

[dependencies.ignore]
version = "0.4.26"

[dependencies.num_cpus]
version = "1.17"

[dependencies.r2d2]
version = "0.8.10"

[dependencies.r2d2_sqlite]
version = "0.31.0"

[dependencies.rand]
version = "0.9.4"

[dependencies.rusqlite]
version = "0.37"
features = [
    "bundled",
    "unlock_notify",
]

[dependencies.sha2]
version = "0.10.9"

[dependencies.tempfile]
version = "3.27"

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.x25519-dalek]
version = "2.0.1"
features = [
    "getrandom",
    "static_secrets",
]

[lints.clippy]
all = "deny"
await_holding_lock = "deny"
complexity = "deny"
correctness = "deny"
expect_used = "deny"
indexing_slicing = "deny"
large_stack_arrays = "deny"
needless_borrow = "deny"
needless_collect = "deny"
panic = "deny"
pedantic = "deny"
perf = "deny"
suspicious = "deny"
unwrap_used = "deny"

[lints.clippy.nursery]
level = "allow"
priority = -1

[lints.rust]
warnings = "deny"

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