cleanup and updates

This commit is contained in:
Simon Gardling
2022-08-16 21:55:50 -04:00
parent c99778eb38
commit b246d5dacd
4 changed files with 135 additions and 136 deletions

View File

@@ -42,8 +42,9 @@ cfg_if::cfg_if! {
if #[cfg(target_arch = "wasm32")] {
use wasm_bindgen::prelude::*;
use lol_alloc::FreeListAllocator;
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
static ALLOCATOR: FreeListAllocator = FreeListAllocator::new();
#[wasm_bindgen(start)]
pub fn start() -> Result<(), wasm_bindgen::JsValue> {