#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

#76 in Audio

Download history 1264/week @ 2019-11-07 2189/week @ 2019-11-14 1615/week @ 2019-11-21 1523/week @ 2019-11-28 1257/week @ 2019-12-05 1534/week @ 2019-12-12 1024/week @ 2019-12-19 924/week @ 2019-12-26 892/week @ 2020-01-02 1733/week @ 2020-01-09 1872/week @ 2020-01-16 1773/week @ 2020-01-23 1190/week @ 2020-01-30 1340/week @ 2020-02-06 1183/week @ 2020-02-13

6,150 downloads per month
Used in 103 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