Registry / utility / map-macro

map-macro

JSON →
library0.3.0rscratesunverified

Declarative macros for statically initializing collections like maps and sets.

# Cargo.toml [dependencies] map-macro = "0.3.0"
INSTALL
IMPORT
SIG · MAP-MACRO
M
map-macro
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

map
use map_macro::map;

Create a static HashMap using the map! macro.

use map_macro::map; fn main() { let m = map!{"key" => 42}; println!("{:?}", m); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
map-macro — cargo add map-macro · libregistry