file_backed 0.6.7

Provides types for managing collections of large objects, using an in-memory LRU cache backed by persistent storage (typically the filesystem).
Documentation
# 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 = "file_backed"
version = "0.6.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provides types for managing collections of large objects, using an in-memory LRU cache backed by persistent storage (typically the filesystem)."
documentation = "https://docs.rs/file_backed"
readme = "README.md"
license = "MIT"
repository = "https://github.com/dspyz-matician/file_backed"

[features]
bincodec = [
    "fbstore",
    "dep:bincode",
    "dep:serde",
]
fbstore = [
    "dep:anyhow",
    "dep:nix",
    "dep:walkdir",
    "tokio/fs",
]
prostcodec = [
    "fbstore",
    "dep:prost",
]
redb-bincodec = [
    "redbstore",
    "dep:bincode",
    "dep:serde",
]
redb-prostcodec = [
    "redbstore",
    "dep:prost",
]
redbstore = [
    "dep:anyhow",
    "dep:redb",
]

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

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

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

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

[dependencies.anyhow]
version = "1.0.98"
optional = true

[dependencies.bincode]
version = "2.0.1"
features = ["serde"]
optional = true

[dependencies.consume_on_drop]
version = "0.1.1"

[dependencies.cutoff_list]
version = "0.2.0"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.get_mut_drop_weak]
version = "0.2.0"

[dependencies.log]
version = "0.4.27"

[dependencies.nix]
version = "0.30.1"
features = ["fs"]
optional = true

[dependencies.parking_lot]
version = "0.12.3"

[dependencies.prost]
version = ">= 0.13, <= 0.14"
optional = true

[dependencies.redb]
version = "4.1.0"
optional = true

[dependencies.serde]
version = "1.0.219"
optional = true

[dependencies.tokio]
version = ">= 1.44.2, <= 1.52"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
]

[dependencies.tokio-util]
version = "0.7.15"
features = ["rt"]

[dependencies.uuid]
version = "1.16.0"
features = ["v4"]

[dependencies.walkdir]
version = "2.5.0"
optional = true

[dev-dependencies.futures]
version = "0.3.31"

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

[dev-dependencies.tokio]
version = ">= 1.44.2, <= 1.47"
features = ["time"]