Crate rust_utils

source ·
Expand description

§Rust Utilities

This crate has various utilty functions that I use in the programs I have written

§Features

  • futures: Utilities to make working with async code easier
  • linux: Linux specific utilities

Modules§

  • Basic config API
  • Utilities for dealing with futures and asynchronous Rust APIs
  • Linux specific utilities
  • Rotating logging API This can be used to create a configurable log that saves to a file and optionally prints to stdout as well.
  • Miscellaneous convenience functions

Macros§

  • Convenience macro to create a HashMap from a predfined set of key - value pairs
  • A macro that implements Default for a type if its inherent implementation has a Self::new() -> Self method
  • Convenience macro for generating a test module from a set of functions