lombok

Crates.iolombok
lib.rslombok
version0.4.0
sourcesrc
created_at2020-12-17 09:35:13.32237
updated_at2023-08-15 07:36:07.53219
descriptionLombok port for Rust
homepage
repositoryhttps://github.com/sokomishalov/lombok-rs
max_upload_size
id323861
size38,773
Mikhael Sokolov (sokomishalov)

documentation

https://docs.rs/lombok

README

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.

Commit count: 75

cargo fmt