summaryrefslogtreecommitdiffstats
path: root/winit/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-11-05 21:46:37 +0100
committerLibravatar GitHub <noreply@github.com>2019-11-05 21:46:37 +0100
commitae6156f779c24beaabf43ea6110d3ce38e34a998 (patch)
tree9545408530437eb780ac73c600f7d40968803786 /winit/src/lib.rs
parentda2717c74dbe3e1123ff41de345a409c1afc2f18 (diff)
parent0157121038987feb6c2ea3066a21ce25e689888e (diff)
downloadiced-ae6156f779c24beaabf43ea6110d3ce38e34a998.tar.gz
iced-ae6156f779c24beaabf43ea6110d3ce38e34a998.tar.bz2
iced-ae6156f779c24beaabf43ea6110d3ce38e34a998.zip
Merge pull request #38 from hecrj/feature/performance-metrics
Debug view
Diffstat (limited to '')
-rw-r--r--winit/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/winit/src/lib.rs b/winit/src/lib.rs
index b08fcb6c..d9482fe4 100644
--- a/winit/src/lib.rs
+++ b/winit/src/lib.rs
@@ -6,3 +6,11 @@ pub mod conversion;
mod application;
pub use application::Application;
+
+// We disable debug capabilities on release builds unless the `debug` feature
+// is explicitly enabled.
+#[cfg_attr(feature = "debug", path = "debug/basic.rs")]
+#[cfg_attr(not(feature = "debug"), path = "debug/null.rs")]
+mod debug;
+
+use debug::Debug;