51 lines
1.5 KiB
Markdown
51 lines
1.5 KiB
Markdown
<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 }
|
|
```
|