blob: dcc47e6a9edb0a508de4cc4ac0fc987a4d16ec81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<div align="center">
<h1>bit-vec</h1>
<p>
<strong>A vector of bits.</strong>
</p>
<p>
[](https://crates.io/crates/bit-vec)
[](https://docs.rs/bit-vec/0.6.2/bit_vec/)
[](https://blog.rust-lang.org/2020/03/12/Rust-1.42.html)
<br />
[](https://deps.rs/crate/bit-vec/0.6.2)
[](https://travis-ci.org/contain-rs/bit-vec)
[](https://crates.io/crates/bit-vec)
</p>
</div>
Documentation is available at https://contain-rs.github.io/bit-vec/bit_vec.
[](https://travis-ci.org/contain-rs/bit-vec)
[](https://crates.io/crates/bit-vec)
## Usage
Add this to your Cargo.toml:
```toml
[dependencies]
bit-vec = "0.6"
```
and this to your crate root:
```rust
extern crate bit_vec;
```
If you want [serde](https://github.com/serde-rs/serde) support, include the feature like this:
```toml
[dependencies]
bit-vec = { version = "0.6", features = ["serde"] }
```
If you want to use bit-vec in a program that has `#![no_std]`, just drop default features:
```toml
[dependencies]
bit-vec = { version = "0.6", default-features = false }
```
|