diff options
author | 2019-11-03 04:39:11 +0100 | |
---|---|---|
committer | 2019-11-03 04:39:11 +0100 | |
commit | 2c6bfdbc8c2262c3550fa16d4472e29d73077956 (patch) | |
tree | 4428dea15c7ec8f9baa385927ce96264470d1915 /winit/src/lib.rs | |
parent | ef056d84890e745010675e70f734f882f89356c2 (diff) | |
download | iced-2c6bfdbc8c2262c3550fa16d4472e29d73077956.tar.gz iced-2c6bfdbc8c2262c3550fa16d4472e29d73077956.tar.bz2 iced-2c6bfdbc8c2262c3550fa16d4472e29d73077956.zip |
Implement debug view and load system fonts
Diffstat (limited to 'winit/src/lib.rs')
-rw-r--r-- | winit/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/winit/src/lib.rs b/winit/src/lib.rs index b08fcb6c..f66c0553 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -6,3 +6,14 @@ 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(any(debug_assertions, feature = "debug"), path = "debug/basic.rs")] +#[cfg_attr( + not(any(debug_assertions, feature = "debug")), + path = "debug/null.rs" +)] +mod debug; + +use debug::Debug; |