Cargo Features
neptune-cash has no features set by default.
[dependencies]
neptune-cash = { version = "0.1.2", features = ["log-slow-write-lock", "log-slow-read-lock", "log-lock_events", "track-lock-location", "track-lock-time", "arbitrary-impls", "tokio-console", "proptest"] }
- log-slow-write-lock = track-lock-location, track-lock-time
-
logs write-lock acquisitions that are held over 100 millis. requires nightly.
to enable: cargo +nightly build --features log-slow-write-lock note: nothing logged until lock is released (guard dropped)
alternative: run tokio-console - log-slow-read-lock = track-lock-location, track-lock-time
-
logs read-lock acquisitions that are held over 100 millis. requires nightly.
to enable: cargo +nightly build --features log-slow-read-lock note: nothing logged until lock is released (guard dropped)
alternative: run tokio-console - log-lock_events
-
logs all lock events (try_acquire, acquire, release).
useful for debugging deadlocks, or if a lock is never being released.
includes acquisition location if track-lock-location feature is enabled.
alternative: run tokio-console - track-lock-location log-slow-read-lock? log-slow-write-lock?
-
locks::sync::tokio support for tracking location of lock acquisition requires nightly. not generally useful by itself.
- track-lock-time log-slow-read-lock? log-slow-write-lock?
-
locks::sync::tokio support for tracking instant of lock acquisition not generally useful by itself.
Affects
shared::now
… - arbitrary-impls
-
implements arbitrary::Arbitrary for various types
Enables arbitrary and proptest-arbitrary-interop
arbitrary:
note: arbitrary, proptest, proptest-arbitrary-interop are duplicated in [dev-dependencies]
because they are optional deps but required for unit tests.
please ensure versions match in both sections. - tokio-console
-
for sending trace events to tokio-console utility
Enables console-subscriber ^0.2