# 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"
name = "timberfs"
version = "0.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Experimental append-only, transparently compressed, write-time-indexed filesystem for log files"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/torstei/timberfs"

[package.metadata.deb]
maintainer = "Torstein Tauno Svendsen <torstei@gmail.com>"
copyright = "2026, Torstein Tauno Svendsen"
section = "admin"
priority = "optional"
depends = [
    "$auto",
    "fuse3",
]
extended-description = 'Experimental FUSE filesystem purpose-built for log files. Files in the mount are append-only and stored as chunked zstd frames with a per-chunk write-time index, so "give me what was written between 13:42 and 13:43" is a binary search plus a few frame decompressions regardless of file size. Includes time-based rotation and retention that relocate compressed frames verbatim, and the data files remain recoverable with stock zstd. Ships a systemd template unit (timberfs@.service) for mounting instances at boot.'
assets = [
    [
    "target/release/timberfs",
    "usr/bin/",
    "755",
],
    [
    "packaging/timberfs.1",
    "usr/share/man/man1/",
    "644",
],
    [
    "README.md",
    "usr/share/doc/timberfs/README.md",
    "644",
],
    [
    "packaging/timberfs@.service",
    "lib/systemd/system/timberfs@.service",
    "644",
],
    [
    "packaging/timberfs.conf.example",
    "usr/share/doc/timberfs/examples/timberfs.conf.example",
    "644",
],
    [
    "packaging/etc-README",
    "etc/timberfs/README",
    "644",
],
]

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

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.fuser]
version = "0.15"
features = ["abi-7-19"]
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.regex]
version = "1"

[dependencies.tar]
version = "0.4"

[dependencies.zstd]
version = "0.13"

[profile.release]
lto = true
