Add this to your Cargo.toml:
[dependencies]
vec-map = "0.8"Since Rust 2018, extern crate is no longer mandatory. If your edition is old (Rust 2015),
add this to your crate root:
extern crate vec_map;If you want serde support, include the feature like this:
[dependencies]
vec-map = { version = "0.8", features = ["serde"] }If you want to use vec-map in a program that has #![no_std], just drop default features:
[dependencies]
vec-map = { version = "0.8", default-features = false }If you want to use serde with the alloc crate instead of std, just use the serde_no_std feature:
[dependencies]
vec-map = { version = "0.8", default-features = false, features = ["serde", "serde_no_std"] }A simple map based on a vector for small integer keys. Space requirements are O(highest integer key).
Dual-licensed for compatibility with the Rust project.
Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0, or the MIT license: http://opensource.org/licenses/MIT, at your option.