-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathCargo.toml
More file actions
87 lines (75 loc) · 2.18 KB
/
Cargo.toml
File metadata and controls
87 lines (75 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[workspace]
members = [".", "examples/browser"]
[package]
name = "midir"
version = "0.11.0-pre"
authors = ["Patrick Reisert"]
description = "A cross-platform, realtime MIDI processing library, inspired by RtMidi."
repository = "https://github.com/Boddlnagg/midir"
readme = "README.md"
keywords = ["midi", "audio", "music", "sound"]
categories = ["multimedia::audio", "api-bindings"]
license = "MIT"
edition = "2021"
[features]
default = []
avoid_timestamping = []
coremidi_send_timestamped = []
jack = ["jack-sys", "libc", "bitflags"]
winrt = [
"windows/Foundation",
"windows/Foundation_Collections",
"windows/Devices_Midi",
"windows/Devices_Enumeration",
"windows/Storage_Streams",
"windows/Win32_System_WinRT",
]
[dependencies]
log = "0.4"
bitflags = { version = "2", optional = true }
jack-sys = { version = "0.5", optional = true }
libc = { version = "0.2.21", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
alsa = ">=0.9.0, <0.11" # the changes between 0.9 and 0.10 do not bother us
libc = "0.2.21"
[target.'cfg(target_os = "ios")'.dependencies]
coremidi = "0.8.0"
[target.'cfg(target_os = "macos")'.dependencies]
coremidi = "0.8.0"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = ">=0.59.0,<=0.62", features = [
"Win32_Foundation",
"Win32_Media",
"Win32_Media_Multimedia",
"Win32_Media_Audio",
] }
parking_lot = { version = "0.12.1" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3"
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = [
"Event",
"Navigator",
"Window",
"MidiAccess",
"MidiInput",
"MidiInputMap",
"MidiMessageEvent",
"MidiOptions",
"MidiOutput",
"MidiOutputMap",
"MidiPort",
"MidiPortType",
] }
[dev-dependencies]
env_logger = "0.11" # only for examples
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.2"
# Android parts.
[target.'cfg(target_os = "android")'.dependencies]
jni = { version = "0.21", default-features = false }
ndk-context = "0.1"
jni-min-helper = "0.3"
# is already provided by the NDK. (will show a link error below API 29)
[target.'cfg(target_os = "android")'.build-dependencies]
cc = "1.0"