blob: cf607516ec2312522ee2da3c8c92d321eed3ba20 [file] [log] [blame]
Container / collection literal macros for `HashMap <>`_, `HashSet <>`_, `BTreeMap <>`_, `BTreeSet <>`_.
You can use these for convenience. Using them has no other implications.
Please read the `API documentation here`__
|build_status|_ |crates|_
.. |build_status| image::
.. _build_status:
.. |crates| image::
.. _crates:
Recent Changes
- 1.0.1
- Fix ``unused_results`` lint in the macros by @povilasb
- 1.0.0
- maplit 1.0!
- Only documentation changes since the last version
- 0.1.6
- Add macro ``convert_args!`` for composable opt-in conversion of the
expressions being used for the maplit macros.
- 0.1.5
- Add license files correctly
- Add category
- Small doc improvements by @seeekr and @sanmai-NL
- 0.1.4
- Update docs to point to
- 0.1.2
- Now supports more arguments in hashset!{} and hashmap!{}
- 0.1.0
- Initial release
**Question:** Very large maps take a long time to compile?
**Answer:** Rustc is very slow to compile big expressions with many literals
(including integers and float literals). Work around this by either
using explicitly typed literals, or explicitly typed conversions.
See for more information.
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 or the MIT license, at your
option. This file may not be copied, modified, or distributed
except according to those terms.