summaryrefslogtreecommitdiffstats
path: root/native/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-21 04:27:31 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-21 04:27:31 +0200
commitae5e2c6c734894d71b2034a498a858b7997c5d3d (patch)
tree19d416e08287542fc17496ab58d2d16d6704a6e6 /native/src/lib.rs
parentd77492c0c37dec1207049b340a318e263cb96b82 (diff)
downloadiced-ae5e2c6c734894d71b2034a498a858b7997c5d3d.tar.gz
iced-ae5e2c6c734894d71b2034a498a858b7997c5d3d.tar.bz2
iced-ae5e2c6c734894d71b2034a498a858b7997c5d3d.zip
Introduce `Program` and `State`
Diffstat (limited to 'native/src/lib.rs')
-rw-r--r--native/src/lib.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/native/src/lib.rs b/native/src/lib.rs
index 9882803f..bea7d17e 100644
--- a/native/src/lib.rs
+++ b/native/src/lib.rs
@@ -34,7 +34,7 @@
//! [`window::Backend`]: window/trait.Backend.html
//! [`UserInterface`]: struct.UserInterface.html
//! [renderer]: renderer/index.html
-#![deny(missing_docs)]
+//#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![deny(unused_results)]
#![forbid(unsafe_code)]
@@ -42,6 +42,7 @@
pub mod keyboard;
pub mod layout;
pub mod mouse;
+pub mod program;
pub mod renderer;
pub mod subscription;
pub mod widget;
@@ -54,6 +55,15 @@ mod hasher;
mod runtime;
mod user_interface;
+// We disable debug capabilities on release builds unless the `debug` feature
+// is explicitly enabled.
+#[cfg(feature = "debug")]
+#[path = "debug/basic.rs"]
+mod debug;
+#[cfg(not(feature = "debug"))]
+#[path = "debug/null.rs"]
+mod debug;
+
pub use iced_core::{
Align, Background, Color, Font, HorizontalAlignment, Length, Point,
Rectangle, Size, Vector, VerticalAlignment,
@@ -64,10 +74,12 @@ pub use iced_futures::{executor, futures, Command};
pub use executor::Executor;
pub use clipboard::Clipboard;
+pub use debug::Debug;
pub use element::Element;
pub use event::Event;
pub use hasher::Hasher;
pub use layout::Layout;
+pub use program::Program;
pub use renderer::Renderer;
pub use runtime::Runtime;
pub use subscription::Subscription;