Expand description
kernel: Portable identity, authority, and mutation kernel.
This crate must compile to wasm32-unknown-unknown with zero errors.
It contains no egui, wgpu, Servo, or platform I/O dependencies.
Forbidden in this crate:
Uuid::new_v4()outside#[cfg(not(target_arch = "wasm32"))](WASM hosts provide IDs)std::time::{Instant, SystemTime}::now()(panics on browser WASM — usePortableInstantor the crate’sweb_time-backed wall-clock helpers)#[wasm_bindgen]/ UniFFI annotations (belong in wrapper crates)- any platform I/O (file, network, browser APIs)
Modules§
- accessibility
- Host-neutral accessibility descriptors keyed by
SurfaceId. - actions
- Portable action catalogue.
- address
- Address types and URL classification helpers.
- async_
host - Portable async-host boundary traits.
- async_
request - Portable state machine for frame-bounded async requests.
- color
- Portable RGBA color primitive.
- content
- Portable content-engine state types.
- geometry
- Portable 2-D geometry types used at the host ↔ runtime boundary.
- graph
- Graph data structures for the spatial browser.
- host_
event - Host-neutral input events flowing from platform adapters into the runtime.
- host_
toolkit - intents
- Portable intent vocabulary primitives — the pure-data subset of
the intent enum/struct family that’s free of
crate::app::*,crate::shell::desktop::workbench::*, andcrate::services::*coupling. - overlay
- Portable overlay stroke descriptors.
- paint
- Portable paint primitives —
ColorandStroke. - pane
- Portable workbench-pane identity + render-mode classification.
- permissions
- Settings/permissions scope hierarchy + the narrowing rule (R0 invariant). Settings/permissions scope hierarchy and the narrowing rule.
- persistence
- Serializable types for graph persistence.
- persistence_
edge - Edge persistence types (
PersistedEdgeet al.), re-exported throughpersistence. Separate file to keeppersistence.rsunder the ceiling. Edge persistence types — family/sub-kind enums, per-family data structs, and the edge container. Re-exported throughcrate::persistenceto keeppersistence.rsunder the per-file ceiling. - persistence_
fields - Field-layer persistence DTOs (
PersistedField/PersistedCoupling), re-exported throughpersistence. Separate file to keeppersistence.rsunder the per-file ceiling. Persistence DTOs for the field layer (Field+Coupling), field-system Phase 2. - signal_
router - Portable signal-subscription seam for frame-bound inbox consumers.
- time
- Portable monotonic time.
- types
- Portable leaf types used by the graph model and persistence schema.
- verso_
address - Verso URI scheme parsing —
verso://,graphshell://,graph://,node://,notes://. Includes the address types that the rest of Graphshell uses to address durable subsystem surfaces (settings pages, frame-by-id, tile-group-by-id, view targets, tool panes, clip captures, plus generic graph/node/note addresses).