Skip to content

Commit

Permalink
Go no_std?
Browse files Browse the repository at this point in the history
  • Loading branch information
smmalis37 committed Jul 9, 2023
1 parent 8b6e501 commit 8f99a18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ edition = "2018"
crate-type = ["cdylib", "rlib"]

[dependencies]
wasm-bindgen = "0.2.68"
wee_alloc = "0.4.5"

[dependencies.wasm-bindgen]
version = "0.2.86"
default-features = false

[dependencies.rand]
version = "0.8"
default-features = false
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![no_std]

use rand::prelude::*;
use wasm_bindgen::prelude::*;

Expand Down Expand Up @@ -29,7 +31,7 @@ pub enum ColorMode {
Pink,
}

#[allow(clippy::len_without_is_empty, clippy::clippy::new_without_default)]
#[allow(clippy::len_without_is_empty, clippy::new_without_default)]
#[wasm_bindgen]
impl Fire {
#[wasm_bindgen(constructor)]
Expand Down

0 comments on commit 8f99a18

Please sign in to comment.