#builder-pattern #macro-derive #bon #codegen

macro bon-macros

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

32 stable releases

new 3.6.1 Apr 15, 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

#2801 in Procedural macros

Download history 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 86703/week @ 2025-03-21 83600/week @ 2025-03-28 86991/week @ 2025-04-04 74230/week @ 2025-04-11

351,740 downloads per month
Used in 387 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
~29K SLoC