Skip to main content

momenta_core/
lib.rs

1#![no_std]
2//! Momenta Core - Core types and utilities for the Momenta framework
3//!
4//! This crate provides the foundational types used throughout the Momenta ecosystem:
5//! - Node types (Element, Text, Fragment, etc.)
6//! - Component trait and utilities
7//! - Reactive signals system
8//!
9//! This is typically not used directly; use the `momenta` crate instead.
10
11extern crate alloc;
12
13pub mod nodes;
14pub mod signals;
15
16pub use paste::paste;
17
18pub mod prelude {
19    pub use crate::nodes::{Component, Element, HtmlWriter, Node, classes};
20    #[cfg(any(feature = "computed", feature = "full-reactivity"))]
21    pub use crate::signals::create_computed;
22    #[cfg(any(feature = "memoization", feature = "full-reactivity"))]
23    pub use crate::signals::create_memo;
24    pub use crate::signals::{
25        Signal, SignalValue, batch, create_effect, create_effect_with_cleanup, create_signal,
26    };
27    pub use momenta_macros::{component, rsx, when};
28}