Remove support for stdweb (#1941)
* Remove support for `stdweb` * Expunge `stdweb`; make `web-sys` the default * Mark this change as a breaking change * Re-insert accidental removal of space * Use the correct cargo feature syntax * Re-add some `cfg` attributes * Remove `web-sys` feature from CI
This commit is contained in:
parent
b371b406d5
commit
657b4fd59e
14 changed files with 13 additions and 815 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// Brief introduction to the internals of the web backend:
|
||||
// Currently, the web backend supports both wasm-bindgen and stdweb as methods of binding to the
|
||||
// The web backend used to support both wasm-bindgen and stdweb as methods of binding to the
|
||||
// environment. Because they are both supporting the same underlying APIs, the actual web bindings
|
||||
// are cordoned off into backend abstractions, which present the thinnest unifying layer possible.
|
||||
//
|
||||
|
|
@ -17,26 +17,15 @@
|
|||
// incoming events (from the registered handlers) and ensuring they are passed to the user in a
|
||||
// compliant way.
|
||||
|
||||
// Silence warnings from use of deprecated stdweb backend
|
||||
#![allow(deprecated)]
|
||||
|
||||
mod device;
|
||||
mod error;
|
||||
mod event_loop;
|
||||
mod monitor;
|
||||
mod window;
|
||||
|
||||
#[cfg(feature = "web-sys")]
|
||||
#[path = "web_sys/mod.rs"]
|
||||
mod backend;
|
||||
|
||||
#[cfg(feature = "stdweb")]
|
||||
#[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
Add a link
Reference in a new issue