|
1
|
1
|
[package]
|
|
2
|
|
-name = "wasm-game-of-life"
|
|
|
2
|
+name = "easel3d"
|
|
3
|
3
|
version = "0.1.0"
|
|
4
|
4
|
authors = ["hopp@silpion.de"]
|
|
5
|
5
|
edition = "2018"
|
|
6
|
6
|
|
|
7
|
|
-[lib]
|
|
8
|
|
-crate-type = ["cdylib", "rlib"]
|
|
9
|
|
-
|
|
10
|
|
-[features]
|
|
11
|
|
-default = ["console_error_panic_hook"]
|
|
12
|
|
-
|
|
13
|
7
|
[dependencies]
|
|
14
|
|
-wasm-bindgen = "0.2"
|
|
15
|
8
|
lazy_static = "1.4.0"
|
|
16
|
9
|
|
|
17
|
|
-# The `console_error_panic_hook` crate provides better debugging of panics by
|
|
18
|
|
-# logging them with `console.error`. This is great for development, but requires
|
|
19
|
|
-# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
|
20
|
|
-# code size when deploying.
|
|
21
|
|
-console_error_panic_hook = { version = "0.1.1", optional = true }
|
|
22
|
|
-
|
|
23
|
|
-# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
|
|
24
|
|
-# compared to the default allocator's ~10K. It is slower than the default
|
|
25
|
|
-# allocator, however.
|
|
26
|
|
-#
|
|
27
|
|
-# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
|
|
28
|
|
-wee_alloc = { version = "0.4.2", optional = true }
|
|
29
|
|
-
|
|
30
|
10
|
[dev-dependencies]
|
|
31
|
|
-wasm-bindgen-test = "0.2"
|
|
32
|
11
|
|
|
33
|
12
|
[profile.release]
|
|
34
|
|
-# Tell `rustc` to optimize for small code size.
|
|
35
|
13
|
opt-level = "s" |
...
|
...
|
|