1[package]
2name = "tempfile"
3version = "3.19.1"
4authors = [
5 "Steven Allen <steven@stebalien.com>",
6 "The Rust Project Developers",
7 "Ashley Mannix <ashleymannix@live.com.au>",
8 "Jason White <me@jasonwhite.io>",
9]
10documentation = "https://docs.rs/tempfile"
11edition = "2021"
12rust-version = "1.63"
13homepage = "https://stebalien.com/projects/tempfile-rs/"
14keywords = ["tempfile", "tmpfile", "filesystem"]
15license = "MIT OR Apache-2.0"
16repository = "https://github.com/Stebalien/tempfile"
17description = "A library for managing temporary files and directories."
18
19[dependencies]
20fastrand = "2.1.1"
21# Not available in stdlib until 1.70, but we support 1.63 to support Debian stable.
22once_cell = { version = "1.19.0", default-features = false, features = ["std"] }
23
24[target.'cfg(any(unix, windows, target_os = "wasi"))'.dependencies]
25getrandom = { version = "0.3.0", default-features = false, optional = true }
26
27[target.'cfg(any(unix, target_os = "wasi"))'.dependencies]
28rustix = { version = "1.0.0", features = ["fs"] }
29
30[target.'cfg(windows)'.dependencies.windows-sys]
31version = ">=0.52,<0.60"
32features = [
33 "Win32_Storage_FileSystem",
34 "Win32_Foundation",
35]
36
37[dev-dependencies]
38doc-comment = "0.3"
39
40[features]
41default = ["getrandom"]
42nightly = []
43# DEPRECATED unstable feature, will be removed in the near future.
44unstable-windows-keep-open-tempfile = []
45