summaryrefslogtreecommitdiffstats
path: root/core/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/lib.rs')
-rw-r--r--core/src/lib.rs30
1 files changed, 23 insertions, 7 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs
index 3816f8a2..65304e8b 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -1,24 +1,40 @@
-pub mod widget;
+//! The core library of [Iced].
+//!
+//! ![`iced_core` crate graph](https://github.com/hecrj/iced/blob/cae26cb7bc627f4a5b3bcf1cd023a0c552e8c65e/docs/graphs/core.png?raw=true)
+//!
+//! This library holds basic types that can be reused and re-exported in
+//! different runtime implementations. For instance, both [`iced_native`] and
+//! [`iced_web`] are built on top of `iced_core`.
+//!
+//! [Iced]: https://github.com/hecrj/iced
+//! [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
+//! [`iced_web`]: https://github.com/hecrj/iced/tree/master/web
+#![deny(missing_docs)]
+#![deny(missing_debug_implementations)]
+#![deny(unused_results)]
+#![deny(unsafe_code)]
+#![deny(rust_2018_idioms)]
mod align;
mod background;
mod color;
-#[cfg(feature = "command")]
-mod command;
mod font;
mod length;
mod point;
mod rectangle;
mod vector;
-pub use align::Align;
+pub use align::{Align, HorizontalAlignment, VerticalAlignment};
pub use background::Background;
pub use color::Color;
-#[cfg(feature = "command")]
-pub use command::Command;
pub use font::Font;
pub use length::Length;
pub use point::Point;
pub use rectangle::Rectangle;
pub use vector::Vector;
-pub use widget::*;
+
+#[cfg(feature = "command")]
+mod command;
+
+#[cfg(feature = "command")]
+pub use command::Command;