Skip to main content

panopticon_core/
lib.rs

1mod data;
2mod error;
3mod execution;
4mod extensions;
5mod hooks;
6mod operation;
7mod param;
8mod state;
9
10pub mod prelude {
11    pub use crate::execution::{GuardSource, IterSource};
12    pub use crate::hooks::core::*;
13    pub use crate::op_error;
14    pub use crate::operation::core::*;
15    pub use crate::param::{Param, Parameters};
16    pub use crate::params;
17
18    pub use crate::state::Pipeline;
19
20    pub use crate::data::{ArrayHandle, MapHandle, Store, StoreEntry, Type, Value};
21
22    #[cfg(feature = "serde")]
23    pub use crate::data::DeserializeError;
24}
25
26pub mod extend {
27    pub use crate::prelude::*;
28
29    pub use crate::data::{ArrayHandle, MapHandle, Store, StoreEntry, Type, Value};
30    pub use crate::error::*;
31    pub use crate::extensions::{Extension, Extensions};
32    pub use crate::hooks::{Hook, HookAction, HookCallback, HookEvent};
33    pub use crate::operation::*;
34    pub use crate::param::*;
35}
36
37pub(crate) mod imports {
38    pub use crate::data::*;
39    pub use crate::execution::*;
40    pub use crate::extend::*;
41    pub(crate) use crate::hooks::emit_all;
42    pub use crate::state::*;
43    // pub use crate::param::*;
44
45    // std imports
46    pub use std::any::TypeId;
47    pub use std::collections::HashMap;
48    pub use std::sync::{Arc, Mutex, atomic::AtomicBool};
49    pub use std::thread;
50}