-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
95 lines (83 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
87
88
89
90
91
92
93
94
95
[package]
name = "screeps-api"
# Ensure html_root_url in src/lib.rs is updated for each version.
version = "0.6.0"
authors = ["David Ross <[email protected]>"]
categories = ["api-bindings"]
documentation = "https://docs.rs/screeps-api/"
edition = "2018"
include = [
"Cargo.toml",
"LICENSE",
"README.md",
"src/**/*",
"tests/**/*",
"examples/**/*",
"protocol-docs/**/*"
]
keywords = ["screeps"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/daboross/rust-screeps-api"
description = "Fully typed and tested wrapper over the Screeps Game's HTTP API"
[package.metadata.docs.rs]
all-features = true
[badges]
travis-ci = { repository = "daboross/rust-screeps-api", branch = "master" }
appveyor = { service = "github", repository = "daboross/rust-screeps-api", branch = "master" }
[dependencies]
# Logging
log = "0.4"
# Parsing
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_ignored = "0.1"
serde-tuple-vec-map = "1.0"
arrayvec = "0.5"
time = "0.1"
# HTTP
futures = "0.3"
url = "2.0"
hyper = { version = "0.14", features = ["client", "http1", "stream"] }
bytes = "1.0"
# Sync HTTP wrapper
tokio = { version = "1.0", optional = true }
hyper-tls = { version = "0.5", optional = true }
# Websockets
rand = "0.8"
num = { version = "0.3", default-features = false }
[features]
sync = ["tokio", "hyper-tls", "tokio/rt-multi-thread"]
protocol-docs = []
default = ["sync"]
# enables tests which modify game state (temporarily, but still)
destructive-tests = []
[dev-dependencies]
# .env parsing
dotenv = "0.15"
# logging in examples
fern = "0.6"
chrono = "0.4"
# cli options in examples
clap = "2"
# socket connections in ws-debug example
futures01 = { package = "futures", version = "0.1" }
tokio01 = { package = "tokio", version = "0.1" }
websocket = "0.26"
# pretty printing in ws-debug.
serde_json = "1"
[[example]]
name = "ws-debug"
required-features = ["sync"]
[[example]]
name = "me"
required-features = ["sync"]
[[example]]
name = "top10"
required-features = ["sync"]
[[example]]
name = "ws-console"
required-features = ["sync"]
[[example]]
name = "register"
required-features = ["sync"]