forked from rustyscreeps/screeps-game-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
86 lines (69 loc) · 2.13 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[package]
name = "screeps-game-api"
version = "0.16.0"
authors = ["David Ross <[email protected]>"]
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 feature(doc_auto_cfg) call)
# can go once the doc_auto_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.4"
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]
assert_approx_eq = "1.1"
bincode = "1.3"
wasm-bindgen-test = "0.3"
[features]
## Specific features to enable conditional API endpoints
# enable compatibility with the sim environment for positions
sim = []
# 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 = []
# Enable thorium resource and reactor structure - used in season 5
thorium = []
# Enable unsafe conversions of return codes with undefined behavior when values
# aren't in the expected range
unsafe-return-conversion = []
## 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"]
# Seasonal server, season 5
seasonal-season-5 = ["thorium"]