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.
| Feature | Default | Enables |
|---|---|---|
counter | yes | StrictCounter, LaxCounter, CounterTrait, CounterOptions |
instance-aware-counter | no | StrictInstanceAwareCounter, LaxInstanceAwareCounter, InstanceAwareCounterTrait and their options |
lock | no | Mutex, RwLock, their guards, LockOptions, LockGuardState, LockError |
trypema | no | The distkit::trypema module (re-export of the trypema crate) |
full | no | All 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.

