2 stable releases
new 1.0.1 | Feb 18, 2025 |
---|
#502 in Audio
40 downloads per month
170KB
4K
SLoC
Contains (obscure autoconf code, 6KB) libopusenc/configure.ac
About
libopusenc-static-sys
is an FFI Rust-binding to the reference Opus Encoder library libopusenc
.
It uses bindgen
to dynamically generate all Rust bindings and documentation, and will
always compile a static version of the underlying Opus Encoder library to ensure
cross-system capability without having to ensure that Opus is installed on the target system.
The library is fully no_std
compatible and represents the minimal amount of overhead
or glue code needed to utilize libopusenc
within a Rust project.
Rust documentation can be found here, which
corresponds directly to the libopusenc
documentation.
Building
In order to use this crate, you will need both cmake
and clang
installed on your
build computer. Most Linux-based operating systems provide these via the built-in package
manager under:
- Clang:
libclang-dev
,libclang
,llvm
, orclang
. On Windows, you may need to manually install Clang from the Official Download Page and set a correspondingLIBCLANG_PATH
environment variable. - Cmake:
cmake
or from the Clang Download Page for Windows.
Installation
To use, add the following to your Cargo.toml
file:
[dependencies]
libopusenc-static-sys = "1.0"
License
This library is licensed under the MIT license.
Dependencies
~6–8.5MB
~118K SLoC