mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
Add error message when building for web without selecting a feature. (#1253)
This commit is contained in:
parent
05a1f4280c
commit
f916311744
1 changed files with 3 additions and 0 deletions
|
@ -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::{
|
||||
|
|
Loading…
Add table
Reference in a new issue