Crates.io | coremidi-sys |
lib.rs | coremidi-sys |
version | 3.2.0 |
created_at | 2016-12-13 07:43:46.027644+00 |
updated_at | 2025-05-29 14:59:21.451524+00 |
description | Low-level FFI bindings for the CoreMIDI framework |
homepage | |
repository | https://github.com/jonas-k/coremidi-sys |
max_upload_size | |
id | 7559 |
size | 45,006 |
Low level Rust bindings for CoreMIDI
generated.rs
is generated with bindgen 0.69.4 using the following commands:
export FRAMEWORKS_DIR=$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks
bindgen ${FRAMEWORKS_DIR}/CoreMIDI.framework/Headers/MIDIServices.h \
--allowlist-type "MIDI.*" --allowlist-function "MIDI.*" --allowlist-var "kMIDI.*" \
--blocklist-type "(__)?CF.*" \
--constified-enum ".*" --no-prepend-enum-name \
--no-debug "MIDI(Event)?Packet.*" \
--no-copy "MIDI(Event)?Packet.*" \
--no-doc-comments \
-- -F ${FRAMEWORKS_DIR} > src/generated.rs
As of version 3 the minimum required Rust version is 1.51 due to the use of std::ptr::addr_of
.