Skip to content

Commit

Permalink
docs(readme): add more info
Browse files Browse the repository at this point in the history
  • Loading branch information
PsiACE committed Feb 15, 2022
1 parent 32bc01a commit de11481
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
## bitsvec
<div align="center">
<h1><code>bitsvec</code></h1>

A bit vector with [the Rust standard library's portable SIMD API](https://github.com/rust-lang/portable-simd).
<p>
<strong>A bit vector with <a href="https://github.com/rust-lang/portable-simd">the Rust standard library's portable SIMD API</a></strong>
</p>

<p>
<a href="https://crates.io/crates/bitsvec"><img src="https://img.shields.io/crates/v/bitsvec.svg" alt="crates.io page" /></a>
<a href="https://docs.rs/bitsvec"><img src="https://docs.rs/bitsvec/badge.svg" alt="docs.rs docs" /></a>
</p>
</div>

## Usage

Add `bitsvec` to `Cargo.toml`:

```toml
bitsvec = "x.y.z"
```

Write some code like this:

```rust
let mut bitvec = BitVec::ones(1000); // create a bitvec contains 0 ..= 999
bitvec.set(900, false); // delete 900 from bitvec
Expand All @@ -28,8 +45,6 @@ Compared on AMD Ryzen 9 5900hs, aginst:
* [bitvec_simd 0.15.0](https://docs.rs/bitvec_simd/0.15.0/bitvec_simd/index.html)
* [bitvector_simd 0.2.2](https://docs.rs/bitvector_simd/0.2.2/bitvector_simd/index.html)

<summary><strong>:eyes: See all benchmarks</strong></summary>

<details open>

```
Expand Down Expand Up @@ -160,3 +175,12 @@ bitvec 1.0 resize true time: [100.50 us 100.63 us 100.75 us]
## Credits

Most code of this crate is from (https://github.com/GCCFeli/bitvec_simd). On top of that, some changes were made.

## License

This library is licensed under either of:

* MIT license [LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT
* Apache License 2.0 [LICENSE-APACHE](LICENSE-APACHE) or https://opensource.org/licenses/Apache-2.0

at your option.

0 comments on commit de11481

Please sign in to comment.