macro_keeper 0.0.1

A lightweight macro toolkit for generating statically typed configs and utilities
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 26.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 43.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • envkeeper/macro_keeper
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Dandush03

macro_keeper

A lightweight macro toolkit for generating statically typed configs and utilities.

Warning: This crate is still in early development and only includes one macro at the moment. More are coming soon!

Features

  • config_generator! – A macro to define static, thread-safe config structs with global access.

Example

config_generator!(
    AppConfig,
    CONFIG,
    [
        (log_level, LogLevel, LogLevel::Info),
        (environment, String, "production".to_string())
    ]
);