#macos #bindings #midi #framework #level #low #core-midi

sys coremidi-sys

Low-level FFI bindings for the CoreMIDI framework

7 stable releases

Uses old Rust 2015

3.1.1 Jun 11, 2024
3.1.0 Mar 11, 2022
3.0.1 Jun 14, 2021
2.0.2 Jul 20, 2017
1.0.0 Dec 13, 2016

#169 in Audio

Download history 1097/week @ 2024-04-04 1229/week @ 2024-04-11 1146/week @ 2024-04-18 1353/week @ 2024-04-25 1797/week @ 2024-05-02 1321/week @ 2024-05-09 1481/week @ 2024-05-16 1138/week @ 2024-05-23 1135/week @ 2024-05-30 986/week @ 2024-06-06 1287/week @ 2024-06-13 1008/week @ 2024-06-20 1768/week @ 2024-06-27 2359/week @ 2024-07-04 1665/week @ 2024-07-11 1294/week @ 2024-07-18

7,237 downloads per month
Used in 52 crates (via coremidi)

MIT license

40KB
1K SLoC

coremidi-sys

Low level Rust bindings for CoreMIDI

generated.rs is generated with bindgen 0.59.2 using the following commands:

export FRAMEWORKS_DIR=$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks

bindgen ${FRAMEWORKS_DIR}/CoreMIDI.framework/Headers/MIDIServices.h \
    --whitelist-type "MIDI.*" --whitelist-function "MIDI.*"  --whitelist-var "kMIDI.*" \
    --blacklist-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.

Dependencies

~46KB