From ec40f6e3acc7874b82709ab81b254c741529fdff Mon Sep 17 00:00:00 2001 From: Mica White Date: Mon, 26 Oct 2026 10:52:04 -0400 Subject: Finish engine --- src/lib.rs | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index bc94658..c78eccb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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::*; } } -- cgit v1.3.1