# map-macro
[](https://github.com/jofas/map_macro/actions/workflows/build.yml)
[](https://crates.io/crates/map-macro)
[](https://crates.io/crates/map-macro)
[](https://docs.rs/map-macro/latest/map_macro)
[](https://opensource.org/licenses/MIT)
This crate offers declarative macros for initializing collections from the
[standard library][std] and [hashbrown][hashbrown].
This crate has zero dependencies and is `#![no_std]` if you opt-out of
support for the standard library collections.
## Example
```rust
use map_macro::hash_map;
let hello = hash_map! {
"en" => "Hello",
"de" => "Hallo",
"fr" => "Bonjour",
"es" => "Hola",
"cat" => "Hola",
"🌍" => "👋",
};
```
[std]: https://doc.rust-lang.org/std/collections/index.html
[hashbrown]: https://docs.rs/hashbrown/latest/hashbrown/