Cargo Features

static_init has no features set by default.

[dependencies]
static_init = { version = "1.0.3", features = ["debug_order", "thread_local", "spin_loop", "bench_nightly", "test_no_global_lazy_hint", "test_pthread_support", "lock_statistics", "parking_lot_core"] }
debug_order = parking_lot

for detection of lazy static cyclic initialization and detection of dynamic statics access while not initialized

Enables debug_order of static_init_macro

thread_local test_pthread_support?
spin_loop
bench_nightly dev

to be used when benching because the stable criterion black box does not work here

Enables real_blackbox of criterion ^0.3

test_no_global_lazy_hint

internal feature to enable tests

test_pthread_support = thread_local

internal feature to force use of pthread keys for droped thread local on linux

lock_statistics

internal feature to retrieve lock statics during tests

Affects sync::LockStatistics

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

parking_lot debug_order?

Enables parking_lot ^0.11

parking_lot_core implicit feature

Enables parking_lot_core ^0.8

parking_lot_core:

An advanced API for creating custom synchronization primitives