macaroni 0.1.0

The missing macro std library for Rust
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 39.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • 4thel00z/macaroni
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 4thel00z

Macaroni 🍝🧀

Macaroni is the missing standard library for Rust macros! It provides a collection of useful macros that can be used in any Rust project. Macaroni is designed to be easy to use, easy to integrate, and easy to extend.

Getting Started

To start using Macaroni in your Rust project, add it as a dependency in your Cargo.toml:

[dependencies]
macaroni = "0.1.0"

Usage

The following macros are currently available in Macaroni:

collect!

The collect! macro can be used to create a tuple, array, map, or vector from a list of values. For example:

use std::collections::HashMap;
use macaroni::collect;

fn main() {
    let tuple: (u32, u32, u32) = collect![1, 2, 3];
    println!("Tuple: {:?}", tuple);
    let map: HashMap<&str, u32> = collect!["a" => 1, "b" => 2, "c" => 3];
}

Documentation

For detailed documentation and a full list of available macros, please refer to our Documentation Page.

License

Macaroni is distributed under the terms of the GPL-3 license. See COPYING for details.