diff options
| author | Mica White <botahamec@outlook.com> | 2026-07-30 07:34:24 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-07-30 07:34:24 -0400 |
| commit | e3c5839159903658a667f789963f20a31567b25c (patch) | |
| tree | 1e358a5fb43fd4c8f8e06374667583250111d6e6 /src/lib.rs | |
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(); + }; +} |
