[package]
name = "gix-tempfile"
version = "14.0.2"
repository = "https://github.com/Byron/gitoxide"
license = "MIT OR Apache-2.0"
description = "A tempfile implementation with a global registry to assure cleanup"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "README.md"]
rust-version = "1.65"
[[example]]
name = "delete-tempfiles-on-sigterm"
path = "examples/delete-tempfiles-on-sigterm.rs"
required-features = ["signals"]
[[example]]
name = "delete-tempfiles-on-sigterm-interactive"
path = "examples/delete-tempfiles-on-sigterm-interactive.rs"
required-features = ["signals"]
[[example]]
name = "try-deadlock-on-cleanup"
path = "examples/try-deadlock-on-cleanup.rs"
required-features = ["signals"]
[lib]
doctest = false
test = true
[dependencies]
gix-fs = { version = "^0.11.3", path = "../gix-fs" }
parking_lot = "0.12.1"
dashmap = { version = "6.0.1", optional = true }
once_cell = { version = "1.8.0", default-features = false, features = ["race", "std"] }
tempfile = "3.10.0"
signal-hook = { version = "0.3.9", default-features = false, optional = true }
signal-hook-registry = { version = "1.4.0", optional = true }
document-features = { version = "0.2.0", optional = true }
[features]
default = ["hp-hashmap"]
signals = ["dep:signal-hook", "dep:signal-hook-registry"]
hp-hashmap = ["dep:dashmap"]
[target.'cfg(not(windows))'.dependencies]
libc = { version = "0.2.98", default-features = false }
[package.metadata.docs.rs]
all-features = true
features = ["document-features"]