Cargo Features

[dependencies]
divan = { version = "0.1.14", default-features = false, features = ["help", "wrap_help", "dyn_thread_local", "internal_benches"] }
default = wrap_help

The wrap_help feature is set by default whenever divan is added without default-features = false somewhere in the dependency tree.

help wrap_help

Enables help of clap

wrap_help default = help

Enables wrap_help of clap

dyn_thread_local

Opt out of faster static thread-local access and instead always dynamically allocate thread-local storage.

On x86_64 macOS we use TLS key 11 (reserved for Windows ABI compatability): https://github.com/apple-oss-distributions/libpthread/blob/libpthread-519/private/pthread/tsd_private.h#L99

internal_benches

Benchmark internals. Not meant for public use.