Expand description
Cellbook - A computational notebook environment for Rust.
This crate provides the user-facing API for cellbook projects. The actual runtime lives in cargo-cellbook.
§Serialization
Values stored in the context are serialized with postcard. This means:
- Stored types must implement
Serialize - Loaded types must implement
DeserializeOwned - Values survive hot-reloads because they’re stored as bytes, not as Rust types
Re-exports§
pub use config::Config;pub use context::CellContext;pub use errors::ContextError;pub use errors::Error;pub use errors::Result;pub use registry::CellInfo;pub use futures;pub use inventory;pub use serde;
Modules§
- config
- Configuration for cellbook projects.
- context
- Context handle for cells to access the host’s store.
- errors
- registry
- Cell registry using inventory for automatic collection.
- test
- Test utilities for cellbook.
Macros§
- cellbook
- Generates the cell discovery and config functions for the dylib.
- consume
- Load and remove a value from the context in one operation.
- load
- Load a value from the context.
- remove
- Remove a value from the context.
- store
- Store a value in the context using the variable name as key.
Attribute Macros§
- cell
- Marks an async function as a cellbook cell and registers it automatically.