Update winapi version from 0.2 to 0.3 (#202)
Adds only the necessary cargo features to reduce compile time and reduce the chance of linking errors occurring for unused libraries (e.g. d3d12.dll fails to link on my win10 VM). I thought I'd try and land this before before working on the wasapi backend implementation for #201. Tested both beep.rs and enumerate.rs and they work fine with the update.
This commit is contained in:
parent
3ff9e6fe65
commit
b47e46a4ac
5 changed files with 158 additions and 122 deletions
|
|
@ -12,9 +12,7 @@ keywords = ["audio", "sound"]
|
|||
lazy_static = "0.2"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
winapi = "0.2.8"
|
||||
ole32-sys = "0.2"
|
||||
kernel32-sys = "0.2"
|
||||
winapi = { version = "0.3", features = ["audiosessiontypes", "audioclient", "combaseapi", "debug", "handleapi", "ksmedia", "mmdeviceapi", "objbase", "std", "synchapi", "winuser"] }
|
||||
|
||||
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))'.dependencies]
|
||||
alsa-sys = { version = "0.1", path = "alsa-sys" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue