summaryrefslogtreecommitdiff
path: root/README.md
blob: 364150f8afb88c545a5b813e9dd4802375f9d487 (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
# bchlib

![Crates.io](https://img.shields.io/crates/v/bchlib.svg)

Rust bindings for BCH encoding/decoding library, based on the [bch_codec](https://github.com/mborgerding/bch_codec) fork.

This workspace repo contains both the high-level `bchlib` project as well as the lower-level `bchlib-sys` project that builds the original C library.

## Usage

Add the library to your `Cargo.toml`:

```
[dependencies]
bchlib = "0.2.0"
```

## Build

The usual:

```bash
$ cargo build
$ cargo test
```

Note that due to usage of `bindgen` in the lower level `bchlib-sys` project, you will need `clang` to be installed on your system.

## License

[GPLv2](LICENSE.md)