Skip to content

contain-rs/vec-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple map based on a vector for small integer keys

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages