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

#145 in Audio

Download history 1618/week @ 2024-09-16 2179/week @ 2024-09-23 2526/week @ 2024-09-30 2902/week @ 2024-10-07 4529/week @ 2024-10-14 3930/week @ 2024-10-21 4581/week @ 2024-10-28 4811/week @ 2024-11-04 3012/week @ 2024-11-11 956/week @ 2024-11-18 1352/week @ 2024-11-25 1410/week @ 2024-12-02 1649/week @ 2024-12-09 1628/week @ 2024-12-16 1385/week @ 2024-12-23 499/week @ 2024-12-30

5,319 downloads per month
Used in 62 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