singlefile 0.4.0

Dead simple file data manipulation.
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"
rust-version = "1.85"
name = "singlefile"
version = "0.4.0"
authors = ["ScottyThePilot <scotty.codes@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dead simple file data manipulation."
documentation = "https://docs.rs/singlefile"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ScottyThePilot/singlefile"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
atomic = ["fs-err"]
deadlock-detection = ["parking_lot?/deadlock_detection"]
default = ["tokio-parking-lot"]
fs-err = ["fs-err3"]
fs-err2 = [
    "dep:fs-err2",
    "fs4/fs-err2",
]
fs-err3 = [
    "dep:fs-err3",
    "fs4/fs-err3",
]
shared = [
    "dep:parking_lot",
    "tokio?/parking_lot",
]
shared-async = ["dep:tokio"]
tokio-parking-lot = ["tokio?/parking_lot"]

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

[[example]]
name = "basic"
path = "examples/basic.rs"

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

[dependencies.cfg-if]
version = "1.0.4"

[dependencies.dunce]
version = "1.0.5"

[dependencies.fs-err2]
version = "2"
optional = true
package = "fs-err"

[dependencies.fs-err3]
version = "3"
optional = true
package = "fs-err"

[dependencies.fs4]
version = "0.13.1"

[dependencies.parking_lot]
version = "0.12"
features = ["arc_lock"]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
]
optional = true

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "macros",
]