Crates.io | lombok-rs |
lib.rs | lombok-rs |
version | 0.4.0 |
source | src |
created_at | 2024-09-14 05:02:52.124216 |
updated_at | 2024-09-14 05:02:52.124216 |
description | Lombok port for Rust |
homepage | |
repository | https://github.com/jerrychir/lombok-rs |
max_upload_size | |
id | 1374469 |
size | 39,159 |
Lombok port for Rust.
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.
@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)]
Update Cargo.toml
[dependencies]
lombok = "0.4"
Source code usage examples you can see in tests.
Thanks to sokomishalov for the idea and inspiration.
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.