8 releases (breaking)

0.7.1 Aug 12, 2024
0.7.0 Jun 16, 2024
0.6.0 Feb 13, 2023
0.5.0 Feb 6, 2023
0.1.0 Dec 3, 2022

#125 in Audio

MIT/Apache

65KB
1.5K SLoC

Rust 1K SLoC C++ 566 SLoC

cxx-juce 🧃

Build Status Crates.io Docs.rs

Rust bindings for JUCE using cxx.

Overview

JUCE is something of an industry standard for audio applications, so it would be nice to be able to make use of it from Rust.

Providing bindings for the entirety of JUCE would be a huge undertaking, and much of it would be duplicating functionality already available to Rust in the standard library or via crates.io.

The goal for this crate is to provide bindings for a subset of JUCE, in particular the mature and thoroughly battle-tested audio modules.

Usage

Add this to your Cargo.toml:

[dependencies]
cxx-juce = "0.7"

Dependencies

Refer to the JUCE documentation for the dependencies required to build JUCE on your platform.

Crate Features

asio

To build with ASIO support:

  1. Agree to Steinberg's licensing terms and download the ASIO SDK.
  2. Enable the asio feature for this crate.
  3. Set the CXX_JUCE_ASIO_SDK_DIR environment variable to the path of the extracted ASIO SDK.

License

Licensed under either of

at your option.

The juce_audio_basics, juce_audio_devices, juce_core and juce_events modules are permissively licensed under the terms of the ISC license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.8–2.4MB
~36K SLoC