summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs31
1 files changed, 3 insertions, 28 deletions
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::*; }
}