Crate bitbazaar

source ·
Expand description

BitBazaar - A crate containing miscellaneous public utilities.

Modules

  • Error handling utilities.
  • Hashing utilities.
  • Logging utilities
  • Completely miscellaneous utilities
  • Timing utilities

Macros

  • A macro for creating a TracedErr from a string or another existing error.
  • When working in a function that cannot return a result, wrap a block in this macro to panic with the formatted error if it errors.
  • Spez is a macro used inside our err! macro, need to export from the bb crate itself to prevent downstream needing to import it: Specialize based on the type of an expression.
  • Time a block of code and log to the global time recorder.
  • Warn a user once, with uniqueness determined by the calling location itself.
  • Warn a user once, with uniqueness determined by the given ID.