diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..bc94658 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,29 @@ +#![no_std] + +extern crate alloc; + +pub mod allocator; +pub mod buffer; +pub mod entity; +pub mod input; +pub mod log; +pub mod process; +pub mod random; +pub mod scene; +pub mod script; +pub mod state; +pub mod storage; +pub mod time; + +#[derive(Clone, Copy)] +#[repr(transparent)] +pub struct ScriptContext(u64); + +#[macro_export] +macro_rules! prelude { + () => { + #[global_allocator] + static ALLOCATOR: $crate::allocator::BumpAllocator = + $crate::allocator::BumpAllocator::new(); + }; +} |
