Skip to content

Commit

Permalink
security: remove wee_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBANCHEREAU committed Jul 19, 2023
1 parent e991a0e commit ec2893e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ console_error_panic_hook = { version = "0.1.6", optional = true }
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
# allocator, however.
wee_alloc = { version = "0.4.5", optional = true }
js-sys = "0.3.61"
no-panic = "0.1.19"
serde_json = "1.0.96"
Expand Down
11 changes: 0 additions & 11 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ use viewport::ViewportOptions;

use wasm_bindgen::prelude::*;

// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

// #[wasm_bindgen]
// extern "C" {
// fn alert(s: &str);
// }

#[wasm_bindgen]
pub fn start(canvas_id: String, lobby_id: String) {
set_panic_hook();
Expand Down

0 comments on commit ec2893e

Please sign in to comment.