diff options
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::*; } } |
