8 releases

0.4.0 Aug 15, 2023
0.3.3 Mar 12, 2022
0.3.1 Jul 6, 2021
0.3.0 Jun 29, 2021
0.1.0 Dec 17, 2020

#314 in Procedural macros

Download history 63/week @ 2023-12-14 81/week @ 2023-12-21 118/week @ 2023-12-28 160/week @ 2024-01-04 199/week @ 2024-01-11 193/week @ 2024-01-18 178/week @ 2024-01-25 139/week @ 2024-02-01 103/week @ 2024-02-08 77/week @ 2024-02-15 346/week @ 2024-02-22 325/week @ 2024-02-29 343/week @ 2024-03-07 238/week @ 2024-03-14 283/week @ 2024-03-21 227/week @ 2024-03-28

1,139 downloads per month

MIT/Apache

21KB
495 lines

Lombok Rust

Lombok port for Rust.

Why?

Just because I can!

This crate is not actually a must-have one for development in Rust (unlike Java world), but if you find it useful - it would be great. Anyway - boilerplate sucks, so get some proc macros stuff to decrease it.

Any feedback is appreciated.

Implementation list so far

  • @Getter - #[derive(Getter)]/#[derive(GetterMut)]
  • @Setter - #[derive(Setter)]
  • @EqualsAndHashCode - #[derive(EqualsAndHashCode)]
  • @ToString - #[derive(ToString)]
  • @Data - #[derive(Data)]
  • @Value - #[derive(Value)]
  • @NoArgsConstructor - #[derive(NoArgsConstructor)]
  • @AllArgsConstructor - #[derive(AllArgsConstructor)]
  • @Builder - #[derive(Builder)]

Usage

Update Cargo.toml

[dependencies]
lombok = "0.4"

Source code usage examples you can see in tests.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~34K SLoC