Skip to content

Commit

Permalink
Improve readme description of features
Browse files Browse the repository at this point in the history
  • Loading branch information
pczarn committed May 31, 2024
1 parent 8b89e16 commit bffb7c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ If you want to use bit-vec in a program that has `#![no_std]`, just drop default
bit-vec = { version = "0.6", default-features = false }
```

If you want to use serde with the alloc crate instead of std, just use the `serde_no_std` feature:

```toml
[dependencies]
bit-vec = { version = "0.6", default-features = false, features = ["serde", "serde_no_std"] }
```

If you want [borsh-rs](https://github.com/near/borsh-rs) support, include it like this:

```toml
[dependencies]
bit-vec = { version = "0.6", features = ["borsh"] }
```

<!-- cargo-rdme start -->

### Description
Expand Down

0 comments on commit bffb7c6

Please sign in to comment.