#core #audio #unit #osx #ios

sys coreaudio-sys

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

9 releases

0.2.3 Sep 28, 2019
0.2.2 Jun 8, 2018
0.2.1 May 19, 2018
0.2.0 Jan 27, 2018
0.0.1 Feb 28, 2015

#15 in Audio

Download history 906/week @ 2019-06-15 1042/week @ 2019-06-22 708/week @ 2019-06-29 839/week @ 2019-07-06 986/week @ 2019-07-13 937/week @ 2019-07-20 876/week @ 2019-07-27 995/week @ 2019-08-03 981/week @ 2019-08-10 1002/week @ 2019-08-17 1018/week @ 2019-08-24 1156/week @ 2019-08-31 924/week @ 2019-09-07 939/week @ 2019-09-14 1043/week @ 2019-09-21

4,082 downloads per month
Used in 81 crates (2 directly)

MIT license

7KB
86 lines

coreaudio-sys Build Status Crates.io Crates.io

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–1.4MB
~30K SLoC