stepflow_base/
lib.rs

1//! Base utilities for [StepFlow](https://stepflow.dev)
2//!
3//! Provides the [`ObjectStore`] which contains most StepFlow objects and [`AsAny`](as_any::AsAny) which makes it easier to downcast.
4
5mod errors;
6pub use errors::IdError;
7
8pub mod id;
9
10mod object_store;
11pub use object_store::{ ObjectStore, ObjectStoreContent };
12
13mod object_store_filtered;
14pub use object_store_filtered::ObjectStoreFiltered;
15
16// NOTE: we don't do a broad use of as_any so we can be specific which objects should support the trait.
17// i.e. if Box<T> gets it via blanket implementation, then we'll have to remember to do boxed.as_ref().as_any() as opposed to boxed.as_any()
18pub mod as_any;
19
20#[cfg(test)]
21mod test;