mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Add error message when building for web without selecting a feature. (#1253)
This commit is contained in:
parent
05a1f4280c
commit
f916311744
|
@ -16,6 +16,9 @@ mod backend;
|
||||||
#[path = "stdweb/mod.rs"]
|
#[path = "stdweb/mod.rs"]
|
||||||
mod backend;
|
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::device::Id as DeviceId;
|
||||||
pub use self::error::OsError;
|
pub use self::error::OsError;
|
||||||
pub use self::event_loop::{
|
pub use self::event_loop::{
|
||||||
|
|
Loading…
Reference in a new issue