Skip to main content

kobalt_core/
lib.rs

1//! # Kobalt Core
2//!
3//! Core functionality for the Kobalt UI framework.
4//!
5//! This crate provides:
6//! - Widget tree and composition
7//! - Layout system (Column, Row, Flexbox)
8//! - State management (LiveData, ValueNotifier, ChangeNotifier)
9//! - MVVM infrastructure
10//! - Common types (Size, Rect, Color)
11//!
12//! ## Architecture
13//!
14//! Kobalt Core is platform-agnostic and does not depend on WGPU or
15//! any specific runtime. It can be tested with `cargo test` and is
16//! portable to any platform.
17
18// Re-export modules
19pub mod types;
20pub mod state;
21pub mod widget;
22pub mod layout;
23
24// Re-export common layout types for convenience
25pub use layout::{MainAxisAlignment, CrossAxisAlignment, EdgeInsets};
26
27#[cfg(test)]
28mod tests {
29    #[test]
30    fn it_works() {
31        assert_eq!(2 + 2, 4);
32    }
33}