moonshine-sys 0.1.0

Low-level FFI bindings to libmoonshine
docs.rs failed to build moonshine-sys-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: moonshine-sys-0.1.2

moonshine-sys

Low-level C FFI bindings to Moonshine Voice (libmoonshine).

crates.io docs.rs License: MIT OR Apache-2.0

moonshine-sys compiles libmoonshine C++ core via CMake and generates raw extern "C" Rust FFI declarations using bindgen. It statically links ONNX Runtime.

Note: This crate exposes unsafe raw FFI bindings. Most Rust developers should use the safe, high-level wrapper crate moonshine-rs instead.

Build Prerequisites

Building moonshine-sys requires a local clone of the moonshine-ai/moonshine repository:

git clone https://github.com/moonshine-ai/moonshine.git
export MOONSHINE_DIR=/path/to/moonshine
cargo build

The build script (build.rs) invokes CMake to compile libmoonshine with -DMOONSHINE_BUILD_SHARED=OFF and generates Rust FFI bindings targeting moonshine-c-api.h.

License

Dual-licensed under either of:

at your option.