viewbuilder/lib.rs
1//! A cross-platform user interface framework for Rust.
2//! Viewbuilder is a moduler GUI library that can be used as an entire framework,
3//! or with individual parts. This crate provides reactive objects for UI using the
4//! [`concoct`](https://docs.rs/concoct/latest/concoct/) runtime.
5#![cfg_attr(docsrs, feature(doc_cfg))]
6
7macro_rules! cfg_flag {
8 ($flag:tt; $($i:item)*) => {
9 $(
10 #[cfg(feature = $flag)]
11 #[cfg_attr(docsrs, doc(cfg(feature = $flag)))]
12 $i
13 )*
14 };
15}
16
17cfg_flag!(
18 "EventLoop";
19 pub mod event_loop;
20 pub use event_loop::EventLoop;
21);
22
23cfg_flag!(
24 "Window";
25 pub mod window;
26 pub use window::Window;
27);