Introduce feature flags to enable iced_glow

Also keep `iced_wgpu` as the default renderer for the time being.
This commit is contained in:
Héctor Ramón Jiménez 2020-05-27 05:05:13 +02:00
parent d6bf8955db
commit 22ced3485e
8 changed files with 72 additions and 35 deletions

View file

@ -3,7 +3,7 @@
/// This is an alias of an `iced_native` element with a default `Renderer`.
#[cfg(not(target_arch = "wasm32"))]
pub type Element<'a, Message> =
iced_glutin::Element<'a, Message, iced_glow::Renderer>;
crate::runtime::Element<'a, Message, crate::renderer::Renderer>;
#[cfg(target_arch = "wasm32")]
pub use iced_web::Element;