summaryrefslogtreecommitdiffstats
path: root/renderer/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-06 22:10:13 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-06 22:10:13 +0100
commit9b4bcd287a7f4822314e158990d1dc023d5aab51 (patch)
treec331392327cbe15214cd6ffef6ccae4c491dc9d1 /renderer/src/lib.rs
parent06bbcc310e6e759a0839df6ca391ea5e0f0ee609 (diff)
downloadiced-9b4bcd287a7f4822314e158990d1dc023d5aab51.tar.gz
iced-9b4bcd287a7f4822314e158990d1dc023d5aab51.tar.bz2
iced-9b4bcd287a7f4822314e158990d1dc023d5aab51.zip
Introduce backend feature flags in `iced_renderer`
Diffstat (limited to '')
-rw-r--r--renderer/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/renderer/src/lib.rs b/renderer/src/lib.rs
index 22ec7bd1..ba737b11 100644
--- a/renderer/src/lib.rs
+++ b/renderer/src/lib.rs
@@ -1,3 +1,6 @@
+#[cfg(not(any(feature = "wgpu", feature = "tiny-skia")))]
+compile_error!("No backend selected. Enable at least one backend feature: `wgpu` or `tiny-skia`.");
+
pub mod compositor;
#[cfg(feature = "geometry")]