#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

34 stable releases

new 3.6.3 Apr 21, 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

#2793 in Procedural macros

Download history 39918/week @ 2024-12-30 68688/week @ 2025-01-06 69017/week @ 2025-01-13 67219/week @ 2025-01-20 74278/week @ 2025-01-27 70826/week @ 2025-02-03 76364/week @ 2025-02-10 80137/week @ 2025-02-17 85908/week @ 2025-02-24 97768/week @ 2025-03-03 96362/week @ 2025-03-10 99949/week @ 2025-03-17 85235/week @ 2025-03-24 86554/week @ 2025-03-31 84696/week @ 2025-04-07 90818/week @ 2025-04-14

351,373 downloads per month
Used in 388 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