10 releases

new 0.1.9 Feb 20, 2025
0.1.8 Feb 19, 2025

#1496 in Development tools

Download history

295 downloads per month

MIT license

10KB
190 lines

MR Utils Macro

A collection of practical derive macros for Rust to enhance struct functionality and reduce boilerplate code.

Features

ToVec Derive Macro

Automatically implements a to_vec method for structs that converts selected or all fields into a vector of strings. Useful for data conversion, serialization, and integration with other systems.

Installation

Add this to your Cargo.toml:

[dependencies]
mr_utils_macro = "0.1.0"

Feature Roadmap

  • ToVec derive macro
  • FromRow derive macro (planned)
  • ToMap derive macro (planned)
  • Custom field attributes support (planned)

License

MIT

Contributing

Feel free to:

  • Submit bug reports and feature requests
  • Submit pull requests
  • Propose new utility macros

Dependencies

~210–650KB
~15K SLoC