opusic-sys

Crates.ioopusic-sys
lib.rsopusic-sys
version0.5.8
created_at2018-11-12 19:07:56.349969+00
updated_at2025-10-11 02:03:25.575869+00
descriptionBindings to libopus
homepage
repositoryhttps://github.com/DoumanAsh/opusic-sys
max_upload_size
id96323
size23,098,197
Douman (DoumanAsh)

documentation

README

opusic-sys

Rust Crates.io Documentation

Bindings to libopus

Target version 1.5.2

This crate has the same license requirements as C source code.

All modifications to the source code are described in opus.patch

Setup

By default, libopus is bundled, this can be deactivated using default-features=false. To explicitly enable bundling, enable feature bundled.

If feature bundled is not enabled, then by default $PATH is searched for libopus. Alternatively, environment variable OPUS_LIB_DIR can be set to link against a specific library. (ex. /usr/lib)

You can specify environment variable OPUS_LIB_STATIC=true to indicate preference for static linkage during dynamic lookup

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 - when building with bundled feature

Optional

  • ninja - When present, build script, if bundled feature enabled, defaults to use corresponding CMake's generator
Commit count: 55

cargo fmt