#macro-derive #builder-pattern #codegen

macro bon-macros

This is a proc-macro crate that is supposed to be a private implementation detail of the bon crate

29 stable releases

3.5.1 Mar 19, 2025
3.5.0 Mar 16, 2025
3.3.2 Dec 28, 2024
3.1.1 Nov 27, 2024
1.0.5 Jul 31, 2024

#2535 in Procedural macros

Download history 44292/week @ 2024-12-06 56843/week @ 2024-12-13 31975/week @ 2024-12-20 34007/week @ 2024-12-27 63400/week @ 2025-01-03 72855/week @ 2025-01-10 67068/week @ 2025-01-17 70454/week @ 2025-01-24 72244/week @ 2025-01-31 75758/week @ 2025-02-07 76545/week @ 2025-02-14 87322/week @ 2025-02-21 92804/week @ 2025-02-28 97876/week @ 2025-03-07 104871/week @ 2025-03-14 70708/week @ 2025-03-21

382,468 downloads per month
Used in 196 crates (via bon)

MIT/Apache

340KB
7K SLoC

bon-macros

This is a proc-macro crate that is supposed to be a private implementation detail of the bon crate. Don't add it to your dependencies directly! The API surface of this crate is unstable, and your code may break if you use items from bon-macros bypassing the bon crate. Instead, use the proc macros from here via the reexports in the bon crate.

Dependencies

~0.8–1.3MB
~29K SLoC