# 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 = "2021"
rust-version = "1.63"
name = "tempfile"
version = "3.27.0"
authors = [
    "Steven Allen <steven@stebalien.com>",
    "The Rust Project Developers",
    "Ashley Mannix <ashleymannix@live.com.au>",
    "Jason White <me@jasonwhite.io>",
]
build = false
include = [
    "CHANGELOG.md",
    "Cargo.toml",
    "LICENSE-*",
    "README.md",
    "src/**/*.rs",
    "tests/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for managing temporary files and directories."
homepage = "https://stebalien.com/projects/tempfile-rs/"
documentation = "https://docs.rs/tempfile"
readme = "README.md"
keywords = [
    "tempfile",
    "tmpfile",
    "filesystem",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Stebalien/tempfile"

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]

[features]
default = ["getrandom"]
nightly = []

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

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

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

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

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

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

[dependencies.fastrand]
version = "2.1.1"

[dependencies.once_cell]
version = "1.19.0"
features = ["std"]
default-features = false

[dev-dependencies.doc-comment]
version = "0.3"

[target.'cfg(any(unix, target_os = "wasi"))'.dependencies.rustix]
version = "1.1.4"
features = ["fs"]

[target.'cfg(any(unix, windows, target_os = "wasi"))'.dependencies.getrandom]
version = ">=0.3.0, <0.5"
optional = true
default-features = false

[target."cfg(windows)".dependencies.windows-sys]
version = ">=0.52, <0.62"
features = [
    "Win32_Storage_FileSystem",
    "Win32_Foundation",
]
