-
- Downloads
(ml5717) Small improvements to release code compilation
... | @@ -8,7 +8,7 @@ edition = "2018" | ... | @@ -8,7 +8,7 @@ edition = "2018" |
crate-type = ["cdylib", "rlib"] | crate-type = ["cdylib", "rlib"] | ||
[features] | [features] | ||
default = ["console_error_panic_hook"] | default = [] | ||
[dependencies] | [dependencies] | ||
wasm-bindgen = "0.2" | wasm-bindgen = "0.2" | ||
... | @@ -22,13 +22,7 @@ bincode = "1.2.1" | ... | @@ -22,13 +22,7 @@ bincode = "1.2.1" |
fixedbitset = "0.2.0" | fixedbitset = "0.2.0" | ||
ordered-float = { version = "1.0.2", features = ["serde"] } | ordered-float = { version = "1.0.2", features = ["serde"] } | ||
twox-hash = "1.1.1" | twox-hash = "1.1.1" | ||
web-sys = { version = "0.3.33", features = ["console"] } | # web-sys = { version = "0.3.33", features = ["console"] } | ||
# The `console_error_panic_hook` crate provides better debugging of panics by | |||
# logging them with `console.error`. This is great for development, but requires | |||
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for | |||
# code size when deploying. | |||
console_error_panic_hook = { version = "0.1.1", optional = true } | |||
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size | # `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 | # compared to the default allocator's ~10K. It is slower than the default | ||
... | @@ -43,3 +37,4 @@ wasm-bindgen-test = "0.2" | ... | @@ -43,3 +37,4 @@ wasm-bindgen-test = "0.2" |
[profile.release] | [profile.release] | ||
opt-level = 3 | opt-level = 3 | ||
lto = true | lto = true | ||
# panic = "abort" |
No preview for this file type
src/utils.rs
deleted
100644 → 0
Please register or sign in to comment