Expand description
bitbazaar - An assortment of publicly available cross-language utilities useful to my projects.
Modules§
- chrono
- Chrono utilities
- cli
cli - Command line interface utilities.
- command
Non-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
- cookies
cookies_ssrorcookies_wasm - Setting/getting cookies in wasm or ssr.
- crypto
- Hashing & encryption utilities. Most inside is feature gated.
- errors
- Error handling utilities.
- file
Non-WebAssembly - File related utilities. Therefore disabled on wasm.
- log
- Logging utilities
- misc
- Completely miscellaneous utilities
- redis
redis - Redis utilities
- test
test - Useful and reusable testing utilities. Should only be enabled as a feature in dev-dependencies.
- threads
- Concurrency/parallelism utilities
- timing
timing - Timing utilities
Macros§
- anyerr
- A macro for building
Report<AnyErr>objects with string information easily. - assert_
td_ in_ range test - Asserts that the given
chrono::TimeDeltais in the given range. - err
- A macro for building
Report<ArbitraryErrorStackErr>objects with string context easily. - panic_
on_ err - When working in a function that cannot return a result, use this to auto panic with the formatted error if something goes wrong.
- panic_
on_ err_ async - When working in a function that cannot return a result, use this to auto panic with the formatted error if something goes wrong.
- retry_
flexi - Internal version of
Retry::callthat: - timeit
timing - Time a block of code and log to the global time recorder.
- warn_
user_ once - Warn a user once, with uniqueness determined by the calling location itself.
- warn_
user_ once_ by_ id - Warn a user once, with uniqueness determined by the given ID.