winit: Bail out with an error message if no renderer is selected

This commit is contained in:
Simon Hausmann 2022-08-05 10:16:58 +02:00 committed by Simon Hausmann
parent 1d04b8665f
commit db867ac18f

View file

@ -4,6 +4,9 @@
#![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#[cfg(all(not(feature = "renderer-femtovg"), not(feature = "renderer-skia")))]
compile_error!("Please select a feature to build with the winit event loop: `renderer-femtovg`, `renderer-skia`");
extern crate alloc;
use std::rc::Rc;