# 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 = "txfs"
version = "0.4.0"
authors = ["code@tinychain.net"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cached transactional filesystem layer over tokio::fs"
readme = "README.md"
keywords = [
    "transactional",
    "versioning",
    "file",
    "io",
    "cache",
]
categories = [
    "caching",
    "data-structures",
    "filesystem",
    "memory-management",
]
license = "Apache-2.0"
repository = "https://github.com/haydnv/txfs"

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

[[example]]
name = "example"
path = "examples/example.rs"
required-features = ["stream"]

[dependencies.freqfs]
version = "0.10"
features = ["id"]

[dependencies.futures]
version = "0.3"

[dependencies.get-size]
version = "0.1"

[dependencies.hr-id]
version = "0.6"

[dependencies.log]
version = "0.4"
features = ["release_max_level_info"]
optional = true

[dependencies.safecast]
version = "0.2"

[dependencies.txn_lock]
version = "0.10"
features = ["all"]

[dev-dependencies.destream]
version = "0.8"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.tokio]
version = "1.39"
features = ["macros"]

[features]
all = [
    "logging",
    "stream",
]
logging = [
    "log",
    "freqfs/logging",
    "txn_lock/logging",
]
stream = ["freqfs/stream"]
