[package]
edition = "2021"
rust-version = "1.75"
name = "mod-tempdir"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Temporary directory and file management for Rust. Auto-cleanup on Drop, collision-resistant naming, orphan cleanup, cross-platform paths. Zero runtime deps by default; opt-in mod-rand feature for uniformly distributed naming. tempfile replacement at MSRV 1.75."
homepage = "https://github.com/jamesgober/mod-tempdir"
documentation = "https://docs.rs/mod-tempdir"
readme = "README.md"
keywords = [
"tempfile",
"tempdir",
"temporary",
"filesystem",
"raii",
]
categories = [
"filesystem",
"development-tools::testing",
]
license = "Apache-2.0"
repository = "https://github.com/jamesgober/mod-tempdir"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
mod-rand = ["dep:mod-rand"]
[lib]
name = "mod_tempdir"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[test]]
name = "cleanup_orphans"
path = "tests/cleanup_orphans.rs"
[[test]]
name = "coexistence"
path = "tests/coexistence.rs"
[[test]]
name = "concurrent_create"
path = "tests/concurrent_create.rs"
[[test]]
name = "mod_rand_integration"
path = "tests/mod_rand_integration.rs"
[[test]]
name = "named_file_concurrent"
path = "tests/named_file_concurrent.rs"
[[test]]
name = "named_file_smoke"
path = "tests/named_file_smoke.rs"
[[test]]
name = "named_file_windows_lock"
path = "tests/named_file_windows_lock.rs"
[[test]]
name = "persist_atomic"
path = "tests/persist_atomic.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[dependencies.mod-rand]
version = "0.9.5"
features = ["tier2"]
optional = true
default-features = false
[dev-dependencies]
[profile.release]
opt-level = 3
lto = "thin"