#proc-macro #private #builder #supposed #re-exports #named-arguments #item #generator #api #bon

macro bon-macros

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

35 stable releases

3.6.4 Jun 9, 2025
3.5.1 Mar 19, 2025
3.3.2 Dec 28, 2024
3.1.1 Nov 27, 2024
1.0.5 Jul 31, 2024

#1257 in Procedural macros

Download history 86050/week @ 2025-03-22 84744/week @ 2025-03-29 86403/week @ 2025-04-05 88348/week @ 2025-04-12 104716/week @ 2025-04-19 101143/week @ 2025-04-26 127717/week @ 2025-05-03 139229/week @ 2025-05-10 148653/week @ 2025-05-17 142819/week @ 2025-05-24 164759/week @ 2025-05-31 173752/week @ 2025-06-07 169535/week @ 2025-06-14 202293/week @ 2025-06-21 164956/week @ 2025-06-28 216039/week @ 2025-07-05

788,671 downloads per month
Used in 584 crates (via bon)

MIT/Apache

355KB
7.5K 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
~28K SLoC