Skip to main content

Crate crisol_core

Crate crisol_core 

Source
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;threads and non-WebAssembly
pub use time::Clock;
pub use time::ManualClock;

Modules§

agentagent
Agent permissions and the accessibility tree.
color
An egui-free, premultiplied sRGB color.
commands
Named commands, contexts, rebindable keys, and the registry.
datadata
The typed, lazy data model shared by tables, viewers, and plots.
error
The core-wide error envelope for operations that cross module boundaries.
extensionsextensions
The versioned extension manifest, capabilities, and contributions.
jobsjobs
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.
protocolprotocol
The transport-agnostic host protocol.
specspec
The versioned application specification and its JSON Schema.
statestate and storage
Versioned application state that works without a window.
storagestorage
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.