30 lines
710 B
Rust
30 lines
710 B
Rust
// Allow the crate to reference itself as ::osiris for the derive macro
|
|
extern crate self as osiris;
|
|
|
|
pub mod config;
|
|
pub mod error;
|
|
pub mod index;
|
|
pub mod interfaces;
|
|
pub mod objects;
|
|
pub mod retrieve;
|
|
pub mod store;
|
|
|
|
// Rhai integration modules (top-level)
|
|
pub mod context;
|
|
pub mod engine;
|
|
|
|
pub use error::{Error, Result};
|
|
pub use store::{BaseData, IndexKey, Object, Storable};
|
|
pub use objects::{Event, Note};
|
|
|
|
// OsirisContext is the main type for Rhai integration
|
|
pub use context::{OsirisContext, OsirisInstance, OsirisContextBuilder};
|
|
pub use engine::{
|
|
create_osiris_engine,
|
|
register_osiris_full,
|
|
OsirisPackage,
|
|
};
|
|
|
|
// Re-export the derive macro
|
|
pub use osiris_derive::Object as DeriveObject;
|