4 authors = ["Greg Burri <greg.burri@gmail.com>"]
8 crate-type = ["cdylib"]
11 default = ["console_error_panic_hook"]
14 common = {path = "../common"}
17 web-sys = {version = "0.3", features = ['console', 'Document', 'Element', 'HtmlElement', 'Node', 'Window', 'Location']}
19 # The `console_error_panic_hook` crate provides better debugging of panics by
20 # logging them with `console.error`. This is great for development, but requires
21 # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
22 # code size when deploying.
23 console_error_panic_hook = {version = "0.1", optional = true}
25 # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
26 # compared to the default allocator's ~10K. It is slower than the default
28 wee_alloc = {version = "0.4", optional = true}
31 # wasm-bindgen-test = "0.3"
34 # Tell `rustc` to optimize for small code size.
38 [package.metadata.wasm-pack.profile.release]