Expand description
The egui-free core of Crisol.
This crate owns the parts of the workbench that must work without a window: the typed data model and its connectors, color tokens, theme palettes, size metrics, localization, versioned atomic storage, commands, application state, the host spec, the wire protocol, extension manifests, and agent permissions.
It never depends on egui, eframe, epaint, emath, or ecolor. Colors are
Rgba, sizes are plain f32 points, and time enters through a
Clock.
The UI crate re-exports every module through crisol::core; applications should use
that facade and never name this crate directly.
use crisol_core::color::Rgba;
use crisol_core::theme::{Theme, ThemeId};
let theme = Theme::for_id(ThemeId::GithubLight);
assert_eq!(theme.background, Rgba::from_rgb(0xff, 0xff, 0xff));§Features
The default set is light: serde, data, and storage. Connectors (csv,
workbook, arrow, parquet, sqlite, ring, channel) are opt-in. sqlite is
native-only; every other feature builds on wasm32-unknown-unknown.
Re-exports§
pub use color::Rgba;pub use commands::Key;pub use commands::KeyChord;pub use commands::KeySequence;pub use commands::Modifiers;pub use error::CoreError;pub use time::SystemClock;threadsand non-WebAssemblypub use time::Clock;pub use time::ManualClock;
Modules§
- agent
agent - Agent permissions and the accessibility tree.
- color
- An egui-free, premultiplied sRGB color.
- commands
- Named commands, contexts, rebindable keys, and the registry.
- data
data - The typed, lazy data model shared by tables, viewers, and plots.
- error
- The core-wide error envelope for operations that cross module boundaries.
- extensions
extensions - The versioned extension manifest, capabilities, and contributions.
- jobs
jobs - Background jobs, cooperative cancellation, progress, and an event queue.
- locale
- Fluent-shaped localization with plurals and runtime locale switching.
- metrics
- Size tokens for the workbench chrome, in points.
- protocol
protocol - The transport-agnostic host protocol.
- spec
spec - The versioned application specification and its JSON Schema.
- state
stateandstorage - Versioned application state that works without a window.
- storage
storage - Atomic file writes and versioned persistence helpers.
- theme
- Theme tokens and palettes.
- time
- Injectable time. The core never reads a wall clock on its own.