distkit
Reference

Feature flags

Every distkit feature flag and what it pulls in.

distkit gates each primitive behind a Cargo feature so you compile only what you use.

FeatureDefaultEnables
counteryesStrictCounter, LaxCounter, CounterTrait, CounterOptions
instance-aware-counternoStrictInstanceAwareCounter, LaxInstanceAwareCounter, InstanceAwareCounterTrait and their options
locknoMutex, RwLock, their guards, LockOptions, LockGuardState, LockError
trypemanoThe distkit::trypema module (re-export of the trypema crate)
fullnoAll of the above

Common shapes

Default (counters only):

[dependencies]
distkit = "0.5"

Counters plus locks:

[dependencies]
distkit = { version = "0.5", features = ["lock"] }

Everything:

[dependencies]
distkit = { version = "0.5", features = ["full"] }

The error variants on DistkitError are themselves feature-gated, so you never match on a primitive you didn't compile in.