[package]
edition = "2021"
rust-version = "1.74.1"
name = "setup_read_cleanup"
version = "0.7.2"
authors = ["Takayuki Sato <sttk.xslet@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for safely transitioning through the three phases of shared resource access: setup, read, and cleanup."
documentation = "https://docs.rs/setup_read_cleanup"
readme = "README.md"
keywords = [
"shared-resource",
"thread-safe",
"static-safe",
"phase-transition",
"graceful",
]
categories = [
"concurrency",
"asynchronous",
"rust-patterns",
]
license = "MIT"
repository = "https://github.com/sttk/setup_read_cleanup-rust"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
full = [
"tokio",
"graceful",
]
graceful = []
tokio = [
"dep:tokio",
"dep:futures",
]
[lib]
name = "setup_read_cleanup"
path = "src/lib.rs"
[[test]]
name = "conditional_data_send_sync_impl_test"
path = "tests/conditional_data_send_sync_impl_test.rs"
[[test]]
name = "graceful_phased_cell_async_test"
path = "tests/graceful_phased_cell_async_test.rs"
[[test]]
name = "graceful_phased_cell_sync_test"
path = "tests/graceful_phased_cell_sync_test.rs"
[[test]]
name = "graceful_phased_cell_test"
path = "tests/graceful_phased_cell_test.rs"
[[test]]
name = "phased_cell_async_test"
path = "tests/phased_cell_async_test.rs"
[[test]]
name = "phased_cell_sync_test"
path = "tests/phased_cell_sync_test.rs"
[[test]]
name = "phased_cell_test"
path = "tests/phased_cell_test.rs"
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]
optional = true
[dev-dependencies.once_cell]
version = "1"