lombok-macros 1.1.0

A collection of procedural macros for Lombok-like functionality in Rust.
Documentation

lombok-macros

Official Documentation

Api Docs

A collection of procedural macros for Lombok-like functionality in Rust.

Features

Installation

To use this crate, you can run cmd:

cargo add lombok-macros

Use

use lombok_macros::*;

#[derive(Lombok)]
struct LombokMacros {
    list: Vec<String>,
}

fn main() {
    let mut data: LombokMacros = LombokMacros { list: vec![] };
    let list: Vec<String> = vec!["hello".to_string(), "world".to_string()];
    data.set_list(list.clone());
    assert_eq!(*data.get_list(), list);
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please reach out to the author at ltpp-universe root@ltpp.vip.