#pod #struct #utilities

podstru

Bureaucratic structs to speed up rust development

2 releases

0.1.1 Nov 17, 2024
0.1.0 Nov 17, 2024

#1768 in Rust patterns

Download history 208/week @ 2024-11-16 17/week @ 2024-11-23 2/week @ 2024-12-07

227 downloads per month

Custom license

12KB

POD

Apache License Crates.io rust release

The pod crate supports auto-generating the most basic operations on pod-like structs. It alleviates the burden of having to write bureaucratic funcs and patterns.

It currently supports the following:

  • Generating a builder pattern via the Builder derive macro
  • Generating field setters via the Setters derive macro
  • Generating field getters via the Getters derive macro
  • Generating field setters AND getters via the Fields derive macro
  • Generating new constructor via the Ctor derive macro

Crates structure

3 crates are available:

  • internal - this provides the traits used by the derive macros
  • derive - the derive macros
  • public - the reexported traits and derive macros

Examples

Authors

  • Morgan Welsch

Dependencies

~165KB