Crate bitbazaar

source ·
Expand description

bitbazaar - An assortment of publicly available cross-language utilities useful to my projects.

Modules§

  • Chrono utilities
  • clicli
    Command line interface utilities.
  • commandNon-WebAssembly
    OS Command related utilities. Much lighter weight than cli module (which will probably be deprecated as badly written and not maintainable). Not applicable to wasm
  • cookiescookies_ssr or cookies_wasm
    Setting/getting cookies in wasm or ssr.
  • Hashing & encryption utilities. Most inside is feature gated.
  • Error handling utilities.
  • fileNon-WebAssembly
    File related utilities. Therefore disabled on wasm.
  • Logging utilities
  • Completely miscellaneous utilities
  • redisredis
    Redis utilities
  • Concurrency/parallelism utilities
  • timingtiming
    Timing utilities

Macros§

  • A macro for building Report<AnyErr> objects with string information easily.
  • A macro for building Report<ArbitraryErrorStackErr> objects with string context easily.
  • When working in a function that cannot return a result, use this to auto panic with the formatted error if something goes wrong.
  • When working in a function that cannot return a result, use this to auto panic with the formatted error if something goes wrong.
  • Internal version of Retry::call that:
  • timeittiming
    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.