Local workflow, smart-HTTP clone/fetch/push and public HTTPS clone/fetch match native git in stdout and exit codes. Only WASI imports (wasi:http, exit-with-code).
65 lines
2.1 KiB
TOML
65 lines
2.1 KiB
TOML
lints.workspace = true
|
|
|
|
[package]
|
|
name = "gix-tempfile"
|
|
version = "26.0.0"
|
|
repository = "https://github.com/GitoxideLabs/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 = "2024"
|
|
include = ["/src/**/*", "/LICENSE-*", "/README.md"]
|
|
rust-version = "1.88"
|
|
|
|
[[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 = true
|
|
test = true
|
|
|
|
[dependencies]
|
|
gix-fs = { version = "^0.24.0", path = "../gix-fs" }
|
|
parking_lot = "0.12.4"
|
|
dashmap = { version = "6.2.1", optional = true }
|
|
tempfile = "3.26.0"
|
|
|
|
signal-hook = { version = "0.4.3", default-features = false, optional = true }
|
|
signal-hook-registry = { version = "1.4.8", optional = true }
|
|
|
|
document-features = { version = "0.2.0", optional = true }
|
|
|
|
[features]
|
|
default = ["hp-hashmap"]
|
|
## Support for signal handlers to cleanup tempfiles when a signal is received.
|
|
signals = ["dep:signal-hook", "dep:signal-hook-registry"]
|
|
## Use a high-performance concurrent hashmap implementation for optimal performance with less contention if there are many tempfiles opening at the same time.
|
|
## It also allows to potentially cleanup more tempfiles in a signal handler as the hashmap can be partially locked.
|
|
hp-hashmap = ["dep:dashmap"]
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
libc = { version = "0.2.186", default-features = false }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61.1", features = ["Win32_Storage_FileSystem"] }
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
features = ["document-features"]
|
|
|
|
[dev-dependencies]
|
|
gix-testtools = { path = "../tests/tools", default-features = false, features = ["sha1"] }
|
|
insta = "1.46.3"
|