diff --git a/src/platform_impl/web/mod.rs b/src/platform_impl/web/mod.rs index 44d4fc19..029761b9 100644 --- a/src/platform_impl/web/mod.rs +++ b/src/platform_impl/web/mod.rs @@ -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::{