Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 2.17 KB

README.md

File metadata and controls

81 lines (60 loc) · 2.17 KB

vec-map

A compact vector of bits.

crates.io Documentation Rust CI [rustc 1.63+][Rust 1.63]

Dependency Status Download Status

Usage

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"] }

Description

A simple map based on a vector for small integer keys. Space requirements are O(highest integer key).

License

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.