Crates.io | coreaudio-sys |
lib.rs | coreaudio-sys |
version | 0.2.16 |
source | src |
created_at | 2015-02-28 17:01:43.774113 |
updated_at | 2024-09-12 14:20:11.230827 |
description | Bindings for Apple's CoreAudio frameworks generated via rust-bindgen |
homepage | https://github.com/RustAudio/coreaudio-sys |
repository | https://github.com/RustAudio/coreaudio-sys.git |
max_upload_size | |
id | 1495 |
size | 14,112 |
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.
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.
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