forked from rustyscreeps/screeps-game-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
71 lines (58 loc) · 1.75 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[package]
name = "screeps-game-api"
version = "0.10.0"
authors = ["David Ross <daboross@daboross.net>"]
documentation = "https://docs.rs/screeps-game-api/"
edition = "2021"
include = [
"Cargo.toml",
"Web.toml",
"src/**/*",
"tests/**/*",
"examples/**/*",
"README.md",
"CHANGELOG.md",
"LICENSE",
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/rustyscreeps/screeps-game-api/"
description = "WASM bindings to the in-game Screeps API"
[lib]
name = "screeps"
[package.metadata.docs.rs]
all-features = true
# this workaround (and the cfg_attr wrapping around the doc(cfg()) calls) can go once the doc_cfg feature is stablized
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
arrayvec = "0.7"
enum_dispatch = "0.3"
enum-iterator = "1.4"
js-sys = "0.3"
num-derive = "0.3"
num-traits = "0.2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_repr = "0.1"
wasm-bindgen = "0.2"
serde-wasm-bindgen = "0.5"
[dev-dependencies]
wasm-bindgen-test = "0.3"
bincode = "1.3"
[features]
## Specific features to enable conditional API endpoints
# Enable the function call for pixel generation - only present on official MMO servers
generate-pixel = []
# Enable the interface for inter-shard memory - only present on official MMO servers
inter-shard-memory = []
# Enable score container, collector, and resource - used in season 1
score = []
# Enable symbol container, decoder, and resources - used in season 2
symbols = []
## Sets of the above features for different server environments
# Official MMO server features, not present on other environments
mmo = ["generate-pixel", "inter-shard-memory"]
# Seasonal server, season 1
seasonal-season-1 = ["score"]
# Seasonal server, season 2
seasonal-season-2 = ["symbols"]