Cargo Features

[dependencies]
gix-tempfile = { version = "13.1.1", default-features = false, features = ["signals", "hp-hashmap", "document-features"] }
default = hp-hashmap

The hp-hashmap feature is set by default whenever gix-tempfile is added without default-features = false somewhere in the dependency tree.

signals

Support for signal handlers to cleanup tempfiles when a signal is received.

Enables signal-hook and signal-hook-registry

Affects gix-tempfile::signal

hp-hashmap default

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.

Enables dashmap

Features from optional dependencies

document-features implicit feature

Enables document-features

document-features:

Extract documentation for the feature flags from comments in Cargo.toml