diff options
| author | Mica White <botahamec@outlook.com> | 2026-10-26 10:52:04 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-10-26 10:58:46 -0400 |
| commit | ec40f6e3acc7874b82709ab81b254c741529fdff (patch) | |
| tree | e3dfdc315bd0c6f1d2efcf442c2cfb3317d6810f /src/lib.rs | |
| parent | e3c5839159903658a667f789963f20a31567b25c (diff) | |
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 31 |
1 files changed, 3 insertions, 28 deletions
@@ -1,29 +1,4 @@ -#![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(); - }; +cfg_select! { + target_arch = "wasm32" => { pub use tortuise_script_wasm::*; } + _ => { pub use tortuise_script_compiled::*; } } |
