Skip to main content

Crate panopticon_core

Crate panopticon_core 

Source
Expand description

§panopticon-core

A typestate pipeline engine with compile-time reference validation, hooks, and an extension system.

The public surface is split into two tiers. Pick the one that matches what you’re doing:

  • prelude — building and running pipelines. Start here if you just want to declare variables, chain steps, attach built-in hooks, and read results. This is the import most users want.

  • extend — writing custom operations, hooks, or extensions, and tooling that walks compiled pipelines (serialisers, alternative drivers). Re-exports everything in prelude and adds the authoring APIs, error types, typestate markers, and the execution graph.

use panopticon_core::prelude::*;

let mut pipe = Pipeline::default();
pipe.var("name", "world")?;
pipe.step::<SetVar>(
    "greet",
    params!("name" => "greeting", "value" => "hello, world"),
)?;
let complete = pipe.compile()?.run().wait()?;

Modules§

extend
Authoring surface for custom operations, hooks, extensions, and tooling that walks compiled pipelines.
prelude
Everything needed to build and run a pipeline.

Macros§

op_error
Builds an OperationError::Custom from format arguments, tagged with the operation name taken from a Context.
params
Builds a Parameters map from a list of "name" => value pairs.