Produce a compile error in iced_renderer when no backend is enabled
This commit is contained in:
parent
d92e0f7bba
commit
468794d918
1 changed files with 7 additions and 0 deletions
|
|
@ -48,6 +48,13 @@ mod renderer {
|
||||||
|
|
||||||
#[cfg(not(any(feature = "wgpu", feature = "tiny-skia")))]
|
#[cfg(not(any(feature = "wgpu", feature = "tiny-skia")))]
|
||||||
mod renderer {
|
mod renderer {
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
compile_error!(
|
||||||
|
"Cannot compile `iced_renderer` in release mode \
|
||||||
|
without a renderer feature enabled. \
|
||||||
|
Enable either the `wgpu` or `tiny-skia` feature, or both."
|
||||||
|
);
|
||||||
|
|
||||||
pub type Renderer = ();
|
pub type Renderer = ();
|
||||||
pub type Compositor = ();
|
pub type Compositor = ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue