[package]
name = "httm"
authors = ["Robert Swinford <robert.swinford <...at...> gmail.com>"]
version = "0.50.1"
edition = "2024"
keywords = ["zfs", "backup", "restore", "cli-utility", "snapshot"]
description = "A CLI tool for viewing snapshot file versions on ZFS and btrfs datasets"
repository = "https://github.com/kimono-koans/httm"
readme = "README.md"
categories = ["command-line-utilities", "os"]
license = "MPL-2.0"
documentation = "https://github.com/kimono-koans/httm/blob/master/README.md"

[badges]
maintenance = { status = "actively-developed" }

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

[features]
default = ["std"]
std = ["xattrs", "malloc_trim"]
# acls feature - requires libacl1-dev to build
acls = ["exacl"]
xattrs = ["xattr"]
malloc_trim = ["libc"]
licensing = ["lms"]

[target.'cfg(unix)'.dependencies]
libc = { version = "0.2.186", default-features = false, optional = true }
exacl = { version = "0.13.0", default-features = false, optional = true }
xattr = { version = "1.6.1", default-features = false, optional = true }

[dependencies]
foldhash = { version = "0.2.0", default-features = false }
clap = { version = "4.6.1", default-features = true, features = ["cargo"] }
crossbeam-channel = { version = "0.5.15", features = ["std"] }
time = { version = "0.3.47", default-features = false, features = [
    "formatting",
    "local-offset",
] }
unit-prefix = { version = "0.5.2", default-features = false }
skim = { version = "4.7.0", default-features = false }
nu-ansi-term = { version = "0.50.3", default-features = false }
lscolors = { version = "0.21.0", default-features = false, features = [
    "nu-ansi-term",
] }
terminal_size = { version = "0.4.4", default-features = false }
which = { version = "8.0.3", default-features = false, features = ["real-sys"] }
rayon = { version = "1.12.0", default-features = false }
indicatif = { version = "0.18.4", default-features = false }
proc-mounts = { version = "0.3.0", default-features = false }
hashbrown = { version = "0.17.1", default-features = false, features = [
    "rayon",
    "inline-more",
    "default-hasher",
] }
nix = { version = "0.31.3", default-features = false, features = [
    "user",
    "zerocopy",
] }
serde = { version = "1.0.228", default-features = false, features = ["alloc"] }
serde_json = { version = "1.0.150", default-features = false, features = [
    "alloc",
    "preserve_order",
] }
realpath-ext = { version = "0.1.3", default-features = false, features = [
    "std",
] }
itertools = { version = "0.14.0", default-features = false }
ratatui-core = { version = "0.1.1", default-features = false }
ansi-to-tui = { version = "8.0.1", features = ["zero-copy"] }

# these are strictly not required to build, only included for attribution sake (to be picked up by cargo_about)
lms = { version = "0.4.0", default-features = false, optional = true }


[package.metadata.deb]
maintainer = "kimono koans <https://github.com/kimono-koans/>"
copyright = "2024, Robert Swinford <robert.swinford<...at...>gmail.com>"
extended-description = """\

Prints the size, date and corresponding locations of available unique versions of files \
residing on snapshots.  May also be used interactively to select and restore from such \
versions, and even to snapshot datasets which contain certain files.
"""
license-file = ["LICENSE", "4"]
depends = ["libc6"]
recommends = [
    "bash",
    "coreutils",
    "grep",
    "tree",
    "strace",
    "awk",
    "util-linux",
]
section = "utility"
priority = "optional"
features = ["xattrs", "malloc_trim"]
assets = [
    [
        "target/release/httm",
        "usr/bin/",
        "755",
    ],
    [
        "scripts/ounce.bash",
        "usr/bin/ounce",
        "755",
    ],
    [
        "scripts/bowie.bash",
        "usr/bin/bowie",
        "755",
    ],
    [
        "scripts/nicotine.bash",
        "usr/bin/nicotine",
        "755",
    ],
    [
        "scripts/equine.bash",
        "usr/bin/equine",
        "755",
    ],
    [
        "httm.1",
        "usr/share/man/man1/httm.1",
        "644",
    ],
    [
        "README.md",
        "usr/share/doc/httm/README.md",
        "644",
    ],
    [
        "LICENSE",
        "usr/share/doc/httm/LICENSE",
        "644",
    ],
    [
        "third_party/LICENSES_THIRD_PARTY.html",
        "usr/share/doc/httm/LICENSES_THIRD_PARTY.html",
        "644",
    ],
]
