#builder #bon #macro #detail #private #proc-macro #items

macro bon-macros

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

27 stable releases

new 3.4.0 Mar 6, 2025
3.3.2 Dec 28, 2024
3.1.1 Nov 27, 2024
2.3.0 Sep 14, 2024
1.0.5 Jul 31, 2024

#1166 in Procedural macros

Download history 25313/week @ 2024-11-19 30589/week @ 2024-11-26 37741/week @ 2024-12-03 47637/week @ 2024-12-10 56518/week @ 2024-12-17 27887/week @ 2024-12-24 44296/week @ 2024-12-31 70209/week @ 2025-01-07 66426/week @ 2025-01-14 71709/week @ 2025-01-21 72054/week @ 2025-01-28 73269/week @ 2025-02-04 74083/week @ 2025-02-11 82935/week @ 2025-02-18 88515/week @ 2025-02-25 97319/week @ 2025-03-04

357,560 downloads per month
Used in 174 crates (via bon)

MIT/Apache

330KB
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