Skip to main content

bubba_core/
lib.rs

1//! # Bubba Core
2//!
3//! The core runtime for the Bubba mobile framework.
4//! Handles UI rendering, navigation, event dispatch, and the Android JNI bridge.
5
6#![warn(missing_docs)]
7#![allow(clippy::module_inception)]
8
9pub mod bridge;
10pub mod build_info;
11pub mod css;
12pub mod events;
13pub mod navigation;
14pub mod runtime;
15pub mod ui;
16
17pub use bubba_macros::view;
18
19/// The Bubba prelude — import this in every screen file.
20/// ```rust,ignore
21/// use bubba_core::prelude::*;
22/// ```
23pub mod prelude {
24    pub use crate::css::StyleSheet;
25    pub use crate::events::{EventHandler, BubbaEvent};
26    pub use crate::navigation::{navigate, NavigationStack};
27    pub use crate::runtime::{alert, log_msg as log, spawn, Runtime};
28    pub use crate::ui::{Element, Screen};
29    pub use bubba_macros::view;
30}