Add asio cargo feature for optional ASIO support

ASIO introduces quite a few extra crates and requires a fairly
complicated setup process (see the readme), so this feature is disabled
by default.
This commit is contained in:
mitchmindtree 2019-06-29 06:08:35 +10:00
parent 76fab4f982
commit 8f95042b8d
4 changed files with 23 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
pub(crate) mod alsa;
#[cfg(windows)]
#[cfg(all(windows, feature = "asio"))]
pub(crate) mod asio;
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) mod coreaudio;