-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
55 lines (45 loc) · 1.55 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
[package]
name = "mines-rs"
version = "0.1.0"
authors = ["Toby Dimmick <[email protected]>"]
edition = "2018"
[features]
# Command-line executable to play a batch of games
cli = ["structopt", "native_support"]
# Features which will crash a wasm build at runtime
native_support = ["chrono", "rayon", "js_server_connector", "mongodb_connector"]
# Connection to alternative node.js server, as well as in-process native server
js_server_connector = ["chrono", "hyper-sync"]
# Connection to MongoDB backenf for in-process native server
mongodb_connector = ["chrono", "mongodb", "wither"]
# Build as a self-contained web app with GUI. Not compatible with native-only features.
webapp = ["yew", "stdweb"]
[dependencies]
itertools = "^0.7"
lazy_static = "^1.0"
mersenne_twister = "^1.0"
rand = "^0.4"
serde = "^1.0"
serde_derive = "^1.0"
serde_json = "^1.0"
rayon = { version = "^1.0", optional = true }
chrono = { version = "^0.4", features = ["serde"], optional = true }
structopt = { version = "^0.2", optional = true }
hyper-sync = { git = "https://github.com/tobz1000/hyper-sync", optional = true }
mongodb = { version = "*", optional = true }
wither = { version = "*", optional = true }
yew = { path = "/home/toby/sources/yew", optional = true }
stdweb = { version = "*", features = ["serde"], optional = true }
[dev-dependencies]
quickcheck = "^0.6"
[lib]
name = "mines_rs"
path = "src/lib.rs"
[[bin]]
name = "mines-rs-cli"
path = "src/cli/main.rs"
required-features = ["cli"]
[[bin]]
name = "mines-rs-webapp"
path = "src/webapp/main.rs"
required-features = ["webapp"]