[package]
edition = "2021"
rust-version = "1.85"
name = "tfio"
version = "0.3.0"
authors = ["Tanishq Jain <tanishqjain1002@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library that provides a Transaction-like interface traditionally used in databases, applied to FileIO operations."
documentation = "https://docs.rs/tfio"
readme = "README.md"
license = "MIT"
repository = "https://github.com/MovAh13h/tfio"
[features]
tokio = ["dep:tokio"]
[lib]
name = "tfio"
path = "src/lib.rs"
[[example]]
name = "async_transaction"
path = "examples/async_transaction.rs"
required-features = ["tokio"]
[[example]]
name = "rollback_on_error"
path = "examples/rollback_on_error.rs"
[[example]]
name = "transaction"
path = "examples/transaction.rs"
[dependencies.tokio]
version = "1"
features = [
"rt",
"fs",
"io-util",
]
optional = true
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"rt-multi-thread",
]