Bug 1888590 - Mark some subtests on trusted-types-event-handlers.html as failing...
[gecko.git] / third_party / rust / coremidi-sys / README.md
blob640c9cd84191de28ce7d08a2d9918af750ed6fbf
1 # coremidi-sys
3 Low level Rust bindings for CoreMIDI
5 `generated.rs` is generated with [bindgen](https://github.com/rust-lang/rust-bindgen) 0.59.2 using the following commands:
7 ```
8 export FRAMEWORKS_DIR=$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks
10 bindgen ${FRAMEWORKS_DIR}/CoreMIDI.framework/Headers/MIDIServices.h \
11     --whitelist-type "MIDI.*" --whitelist-function "MIDI.*"  --whitelist-var "kMIDI.*" \
12     --blacklist-type "(__)?CF.*" \
13     --constified-enum ".*" --no-prepend-enum-name \
14     --no-debug "MIDI(Event)?Packet.*" \
15     --no-copy "MIDI(Event)?Packet.*" \
16     --no-doc-comments \
17     -- -F ${FRAMEWORKS_DIR} > src/generated.rs
18 ```
20 As of version 3 the minimum required Rust version is 1.51 due to the use of `std::ptr::addr_of`.