easy_macro 0.1.0

Easy macro collection
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 9.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 272.85 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zaqxsw-dev

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

I have created a library for combine all rust macro what i use in one place. I tryed make this macro max readable.

Getting Started

Just add new dependencie in your Cargo.toml file.

  • Cargo.toml
    [dependencies]
    easy_macro = "0.1"
    

Usage

use easy_macro::EasyBuilder;

#[derive(EasyBuilder)]
struct MyStruct {
    field1: i32,
    field2: String,
}

impl Default for MyStruct {
  fn default() -> Self {
    Self {
      field1: 0,
      field2: String::from("123123")
    }
  }
}

fn main() {
  let builded_struct = MyStruct::default().set_field1(42).set_field2(String::from("pewpew"));
}

For more examples, please refer to the Documentation

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Bogdan Lipovtsev - megafreelancer2012@gmail.com

Project Link: https://github.com/zaqxsw-dev/easy_macro