# opusic-sys
[![Rust](https://github.com/DoumanAsh/opusic-sys/actions/workflows/rust.yml/badge.svg)](https://github.com/DoumanAsh/opusic-sys/actions/workflows/rust.yml)
[![Crates.io](https://img.shields.io/crates/v/opusic-sys.svg)](https://crates.io/crates/opusic-sys)
[![Documentation](https://docs.rs/opusic-sys/badge.svg)](https://docs.rs/crate/opusic-sys/)
Bindings to [libopus](https://github.com/xiph/opus)
Target version [1.5.2](https://github.com/xiph/opus/releases/tag/v1.5.2)
This crate has the same license requirements as C source code.
## Setup
If the `OPUS_LIB_DIR` environment variable is set, it will be searched for the opus
library. Otherwise, a static library will be built automatically.
## Android build
When building for android, library requires presence of env variable `ANDROID_NDK_HOME` in order to supply
cmake with toolchain file and correct target arch.
## Re-generate bindings
The feature `build-bindgen` is used to generate bindings.
To use it set env variable `LIBCLANG_PATH` to directory that contains clang binaries
## Requirements
- `cmake`
### Optional
- `ninja` - When present, build script defaults to use corresponding CMake's generator