#proc-macro #supposed #builder #re-exports #setter-methods #named-arguments #builder-pattern #bon

macro no-std bon-macros

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

41 stable releases

3.8.1 Oct 8, 2025
3.7.2 Sep 2, 2025
3.6.5 Jul 18, 2025
3.5.1 Mar 19, 2025
1.0.5 Jul 31, 2024

#1372 in Procedural macros

Download history 255369/week @ 2025-08-07 244716/week @ 2025-08-14 244222/week @ 2025-08-21 241194/week @ 2025-08-28 288839/week @ 2025-09-04 269682/week @ 2025-09-11 329298/week @ 2025-09-18 478021/week @ 2025-09-25 487545/week @ 2025-10-02 483660/week @ 2025-10-09 614828/week @ 2025-10-16 627529/week @ 2025-10-23 664044/week @ 2025-10-30 645393/week @ 2025-11-06 724075/week @ 2025-11-13 604578/week @ 2025-11-20

2,767,074 downloads per month
Used in 924 crates (via bon)

MIT/Apache

370KB
8K 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.2MB
~28K SLoC