#proc-macro #lombok #get-set

macro lombok-macros

A Rust procedural macro collection providing Lombok-like functionality. Automatically generates getters/setters with field-level visibility control, custom Debug implementations with field skipping, and Display trait implementations. Supports structs, enums, generics and lifetimes.

93 stable releases

Uses new Rust 2024

new 2.0.27 Mar 3, 2026
2.0.20 Jan 25, 2026
1.15.7 Jan 10, 2026
1.13.18 Dec 28, 2025
0.2.0 Dec 25, 2024

#1221 in Procedural macros

Download history 96/week @ 2025-11-11 95/week @ 2025-11-18 140/week @ 2025-11-25 130/week @ 2025-12-02 142/week @ 2025-12-09 102/week @ 2025-12-16 261/week @ 2025-12-23 345/week @ 2025-12-30 276/week @ 2026-01-06 100/week @ 2026-01-13 354/week @ 2026-01-20 385/week @ 2026-01-27 294/week @ 2026-02-03 219/week @ 2026-02-10 52/week @ 2026-02-17 269/week @ 2026-02-24

849 downloads per month
Used in 16 crates (3 directly)

MIT license

115KB
2K SLoC

lombok-macros

Official Documentation

Api Docs

A Rust procedural macro collection providing Lombok-like functionality. Automatically generates getters/setters with field-level visibility control, custom Debug implementations with field skipping, and Display trait implementations. Supports structs, enums, generics and lifetimes.

Installation

To use this crate, you can run cmd:

cargo add lombok-macros

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please reach out to the author at root@ltpp.vip.

Dependencies

~115–480KB
~11K SLoC