#macos-ios #macos #unit #ios #core

sys coreaudio-sys

Bindings for Apple's CoreAudio frameworks generated via rust-bindgen

22 releases

Uses old Rust 2015

0.2.16 Sep 12, 2024
0.2.15 Jan 4, 2024
0.2.14 Nov 15, 2023
0.2.12 Mar 25, 2023
0.0.1 Feb 28, 2015

#50 in macOS and iOS APIs

Download history 46010/week @ 2025-01-31 56431/week @ 2025-02-07 51374/week @ 2025-02-14 52283/week @ 2025-02-21 51801/week @ 2025-02-28 55273/week @ 2025-03-07 61492/week @ 2025-03-14 42345/week @ 2025-03-21 38219/week @ 2025-03-28 42337/week @ 2025-04-04 37522/week @ 2025-04-11 37577/week @ 2025-04-18 44944/week @ 2025-04-25 42760/week @ 2025-05-02 39186/week @ 2025-05-09 38251/week @ 2025-05-16

172,045 downloads per month
Used in 921 crates (16 directly)

MIT license

11KB
123 lines

coreaudio-sys Actions Status Crates.io Crates.io docs.rs

Raw bindings to Apple's Core Audio API for macos and iOS generated using rust-bindgen. coreaudio-rs is an attempt at offering a higher level API around this crate.

Cross Compiling

Rust Cross has a good explanation of how cross-compiling Rust works in general. While the author of Rust Cross advises against it, it is perfectly possible to cross-compile Rust for MacOS on Linux. OSXCross can be used to create a compiler toolchain that can compile for MacOS on Linux.

Environment Variables

When cross-compiling for MacOS on Linux there are two environment variables that are used to configure how coreaudio-sys finds the required headers and libraries. The following examples assume that you have OSXCross installed at /build/osxcross.

COREAUDIO_SDK_PATH

This tell coreaudio-sys where to find the MacOS SDK:

export COREAUDIO_SDK_PATH=/build/osxcross/target/SDK/MacOSX10.11.sdk

No runtime deps

~0–2.7MB
~37K SLoC

OSZAR »