mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 22:30:04 -04:00
Add error message when building for web without selecting a feature. (#1253)
This commit is contained in:
@@ -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::{
|
||||||
|
|||||||
Reference in New Issue
Block a user