-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
43 lines (37 loc) · 1.31 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[package]
name = "screeps-clockwork"
version = "0.6.0"
authors = ["Jon <[email protected]>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
path = "lib/lib.rs"
[features]
default = ["console_error_panic_hook"]
[dependencies]
js-sys = "0.3"
log = "0.4"
fern = "0.7"
screeps-game-api = "0.22"
wasm-bindgen = "0.2.84"
web-sys = { version = "0.3", 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.7", optional = true }
screeps-game-utils = "0.22.1"
lazy_static = "1.5.0"
[profile.release]
# Tell `rustc` to optimize for small code size.
panic = "abort"
opt-level = 3
lto = true
[package.metadata.wasm-pack.profile.release]
# See wasm-opt for full available options; handy examples:
# -O4 - optimize aggressively for performance
# -Oz - optimize aggressively for code size
# -g - leave debug info in place, allowing for more descriptive stack traces on panic
# --signext-lowering - removes opcodes that the screeps servers can't load (see
# https://github.com/rustyscreeps/screeps-game-api/issues/391)
wasm-opt = ["-O4", "--signext-lowering"]