2018-03-13 18:04:21 +03:00
|
|
|
[package]
|
2019-09-07 23:09:09 +03:00
|
|
|
name = "game"
|
2018-03-13 18:04:21 +03:00
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Dustin Carlino <dabreegster@gmail.com>"]
|
2018-12-06 21:18:20 +03:00
|
|
|
edition = "2018"
|
2020-10-08 22:26:54 +03:00
|
|
|
description = "A traffic simulation game based on OpenStreetMap"
|
|
|
|
repository = "https://github.com/dabreegster/abstreet"
|
|
|
|
license = "Apache-2.0"
|
2018-03-13 18:04:21 +03:00
|
|
|
|
2020-10-06 01:09:12 +03:00
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "lib"]
|
|
|
|
|
2020-02-15 03:15:44 +03:00
|
|
|
[features]
|
2020-10-06 01:29:17 +03:00
|
|
|
default = ["built", "widgetry/glow-backend", "reqwest"]
|
2020-10-28 01:34:58 +03:00
|
|
|
# Just a marker to jump straight into the OSM viewer
|
|
|
|
osm_viewer = []
|
2020-10-08 20:51:13 +03:00
|
|
|
wasm = ["console_log", "futures", "futures-channel", "js-sys", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", "widgetry/wasm-backend"]
|
2020-10-09 02:29:06 +03:00
|
|
|
# Just a marker to not use localhost URLs
|
|
|
|
wasm_s3 = []
|
2020-02-15 03:15:44 +03:00
|
|
|
|
2018-03-13 18:04:21 +03:00
|
|
|
[dependencies]
|
|
|
|
aabb-quadtree = "0.1.0"
|
2018-06-22 21:01:44 +03:00
|
|
|
abstutil = { path = "../abstutil" }
|
2020-09-24 19:36:26 +03:00
|
|
|
built = { version = "0.4.3", optional = true, features=["chrono"] }
|
|
|
|
chrono = "0.4.15"
|
2020-11-06 04:53:54 +03:00
|
|
|
collisions = { path = "../collisions" }
|
2020-09-24 19:36:26 +03:00
|
|
|
colorous = "1.0.3"
|
2020-10-06 01:09:12 +03:00
|
|
|
console_log = { version = "0.1", optional = true }
|
2020-07-25 17:09:43 +03:00
|
|
|
contour = "0.2.0"
|
2020-09-24 19:36:26 +03:00
|
|
|
downcast-rs = "1.2.0"
|
|
|
|
enumset = "1.0.1"
|
2020-11-01 04:09:06 +03:00
|
|
|
flate2 = "1.0.18"
|
2020-10-08 20:51:13 +03:00
|
|
|
futures = { version = "0.3.5", optional = true }
|
|
|
|
futures-channel = { version = "0.3.6", optional = true }
|
2020-07-04 21:29:45 +03:00
|
|
|
geojson = "0.19.0"
|
2018-06-29 05:48:11 +03:00
|
|
|
geom = { path = "../geom" }
|
2020-09-24 19:36:26 +03:00
|
|
|
instant = "0.1.7"
|
2020-10-08 20:51:13 +03:00
|
|
|
js-sys = { version = "0.3.45", optional = true }
|
2018-11-21 23:26:23 +03:00
|
|
|
kml = { path = "../kml" }
|
2020-09-26 20:11:08 +03:00
|
|
|
log = "0.4.11"
|
2020-06-19 03:44:12 +03:00
|
|
|
lttb = "0.2.0"
|
2020-04-01 02:40:07 +03:00
|
|
|
maplit = "1.0.2"
|
2018-03-13 18:04:21 +03:00
|
|
|
map_model = { path = "../map_model" }
|
2020-05-29 21:37:21 +03:00
|
|
|
petname = "1.0.12"
|
2019-08-15 22:06:08 +03:00
|
|
|
rand = "0.7.0"
|
|
|
|
rand_xorshift = "0.2.0"
|
2020-09-24 19:36:26 +03:00
|
|
|
reqwest = { version = "0.10.8", optional = true, default-features=false, features=["blocking", "rustls-tls"] }
|
|
|
|
serde = "1.0.116"
|
|
|
|
serde_json = "1.0.57"
|
2020-05-29 23:09:46 +03:00
|
|
|
svg_face = "0.1.2"
|
2018-04-11 03:38:26 +03:00
|
|
|
sim = { path = "../sim" }
|
2020-10-06 01:09:12 +03:00
|
|
|
wasm-bindgen = { version = "0.2.68", optional = true }
|
2020-10-08 20:51:13 +03:00
|
|
|
wasm-bindgen-futures = { version = "0.4.18", optional = true }
|
2020-10-06 01:29:17 +03:00
|
|
|
webbrowser = "0.5.5"
|
2020-08-27 20:37:04 +03:00
|
|
|
widgetry = { path = "../widgetry", default-features=false }
|
2020-09-24 19:36:26 +03:00
|
|
|
xmltree = "0.10.1"
|
2019-03-12 03:18:30 +03:00
|
|
|
|
|
|
|
[build-dependencies]
|
2020-06-01 19:18:17 +03:00
|
|
|
built = "0.4.2"
|
2019-03-12 03:18:30 +03:00
|
|
|
walkdir = "2.2.7"
|
2020-10-08 20:51:13 +03:00
|
|
|
|
|
|
|
[dependencies.web-sys]
|
|
|
|
version = "0.3.4"
|
|
|
|
optional = true
|
|
|
|
features = [
|
|
|
|
"Headers",
|
|
|
|
"Request",
|
|
|
|
"RequestInit",
|
|
|
|
"RequestMode",
|
|
|
|
"Response",
|
|
|
|
"Window",
|
|
|
|
]
|