contain-rs/vec-map

A simple map based on a vector for small integer keys

Rust

66

80 commits

updated Dec 1, 2024

See the code

README

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.

Project health

Overall

3.3/10

Maintained

0/10

Code review

5/10
OpenSSF Scorecard

crates.io

Latest release

0.8.2 · May 6, 2020

Releases this year

0

Significant stargazers

ad hoc

202 followers · starred Dec 2020

Clar Fon

71 followers · starred Jun 2017

Ted Horst

5 followers · starred Feb 2016

contain-rs/vec-map

A simple map based on a vector for small integer keys

Rust

66

80 commits

updated Dec 1, 2024

See the code

README

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.

Project health

Overall

3.3/10

Maintained

0/10

Code review

5/10
OpenSSF Scorecard

crates.io

Latest release

0.8.2 · May 6, 2020

Releases this year

0

Significant stargazers

ad hoc

202 followers · starred Dec 2020

Clar Fon

71 followers · starred Jun 2017

Ted Horst

5 followers · starred Feb 2016