tracing-unlikely 0.1.1

A wrapper around `tracing` that minimizes overhead when tracing is disabled.
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented0 out of 0 items with examples
  • Size
  • Source code size: 81.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.85 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ibraheemdev/tracing-unlikely
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ibraheemdev

tracing-unlikely

A wrapper around tracing that minimizes overhead when tracing is disabled.

This crate exports API-compatible tracing macros that avoid inlining debug machinery into the hot path when any relevant tracing levels are disabled. This is useful for crates where tracing is used heavily for debugging but rarely enabled in practice.

Note that the rest of the tracing public API is also re-exported, and all crate-level features are mirrored, so this crate serves as a drop-in replacement for the entire tracing crate.