generated from rustyscreeps/screeps-starter-rust
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
46 lines (38 loc) · 1.33 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
44
45
46
[package]
name = "screeps-arena-starter-rust"
version = "0.0.0"
authors = []
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
js-sys = "0.3"
log = "0.4"
fern = "0.6"
screeps-arena-game-api = { git = "https://github.com/rustyscreeps/screeps-arena-game-api.git" }
# screeps-arena-game-api = "0.1"
# screeps-arena-game-api = { path = "../screeps-arena-game-api" }
wasm-bindgen = "0.2"
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.6", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3"
[profile.release]
panic = "abort"
opt-level = 3
lto = true
debug = true
# wasm pack has a significant impact on binary size but adds some seconds to the build
# so it can be disabled
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O4", "-g"]
#wasm-opt = false
[features]
default = []
arena-capture-the-flag = ["screeps-arena-game-api/arena-capture-the-flag"]
arena-spawn-and-swamp = ["screeps-arena-game-api/arena-spawn-and-swamp"]
arena-collect-and-control = ["screeps-arena-game-api/arena-collect-and-control"]