#proc-macro #declarative-macro #macro #proc

macro macron-map

The key-value collection parser

2 releases

0.1.1 May 25, 2025
0.1.0 Apr 6, 2025

#40 in #declarative-macro

Download history 33/week @ 2025-08-05 19/week @ 2025-08-12 41/week @ 2025-08-19 31/week @ 2025-08-26 50/week @ 2025-09-02 35/week @ 2025-09-09 34/week @ 2025-09-16 33/week @ 2025-09-23 26/week @ 2025-09-30 10/week @ 2025-10-07 38/week @ 2025-10-14 34/week @ 2025-10-21 12/week @ 2025-10-28 14/week @ 2025-11-04 17/week @ 2025-11-11 18/week @ 2025-11-18

66 downloads per month
Used in 5 crates (2 directly)

MIT license

5KB

githubcrates-iodocs-rs

Map Collection Parser

Introduction:

The key-value collection parser.

P.s.: More useful macros you can find here.

Examples:

let (k, v) = ("one", 1);
    
let map = map! {
    k => v,
    "two": 2,
    "three" => 3,
    "four": 4,
};

assert_eq!(map, [("one", 1), ("two", 2), ("three", 3), ("four", 4)])

Licensing:

Distributed under the MIT license.

Feedback:

You can contact me via GitHub or send a message to my Telegram @fuderis.

This library is constantly evolving, and I welcome your suggestions and feedback.

Dependencies

~155–560KB
~13K SLoC