Add error message when building for web without selecting a feature. (#1253)

This commit is contained in:
Michael Tang 2019-10-31 09:45:12 -07:00 committed by Ryan G
parent 05a1f4280c
commit f916311744

View file

@ -16,6 +16,9 @@ mod backend;
#[path = "stdweb/mod.rs"]
mod backend;
#[cfg(not(any(feature = "web-sys", feature = "stdweb")))]
compile_error!("Please select a feature to build for web: `web-sys`, `stdweb`");
pub use self::device::Id as DeviceId;
pub use self::error::OsError;
pub use self::event_loop::{