first commit
This commit is contained in:
23
src/lib.rs
Normal file
23
src/lib.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
// 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;
|
||||
|
||||
#[cfg(feature = "rhai-support")]
|
||||
pub mod rhai_support;
|
||||
|
||||
pub use error::{Error, Result};
|
||||
pub use store::{BaseData, IndexKey, Object, Storable};
|
||||
|
||||
// Re-export the derive macro
|
||||
pub use osiris_derive::Object as DeriveObject;
|
||||
|
||||
// OsirisInstance is the main type for Rhai integration
|
||||
#[cfg(feature = "rhai-support")]
|
||||
pub use rhai_support::OsirisInstance;
|
||||
Reference in New Issue
Block a user