mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 02:33:54 +03:00
558eb6f716
depends on. The goal is to be able to split things like the OSM viewer, parking mapper, and 15 min tool into separate crates from the game, while still sharing lots of code.
76 lines
2.1 KiB
TOML
76 lines
2.1 KiB
TOML
[package]
|
|
name = "game"
|
|
version = "0.1.0"
|
|
authors = ["Dustin Carlino <dabreegster@gmail.com>"]
|
|
edition = "2018"
|
|
description = "A traffic simulation game based on OpenStreetMap"
|
|
repository = "https://github.com/dabreegster/abstreet"
|
|
license = "Apache-2.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "lib"]
|
|
|
|
[features]
|
|
default = ["built", "widgetry/native-backend", "reqwest"]
|
|
# Just a marker to jump straight into the OSM viewer
|
|
osm_viewer = []
|
|
wasm = ["console_log", "futures", "futures-channel", "js-sys", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", "widgetry/wasm-backend"]
|
|
# Just a marker to not use localhost URLs
|
|
wasm_s3 = []
|
|
# A marker to use a named release from S3 instead of dev for updating files
|
|
release_s3 = []
|
|
|
|
[dependencies]
|
|
aabb-quadtree = "0.1.0"
|
|
abstutil = { path = "../abstutil" }
|
|
built = { version = "0.4.3", optional = true, features=["chrono"] }
|
|
chrono = "0.4.15"
|
|
collisions = { path = "../collisions" }
|
|
colorous = "1.0.3"
|
|
console_log = { version = "0.2.0", optional = true }
|
|
contour = { git = "https://github.com/dabreegster/contour-rs" }
|
|
downcast-rs = "1.2.0"
|
|
enumset = "1.0.1"
|
|
flate2 = "1.0.19"
|
|
futures = { version = "0.3.8", optional = true }
|
|
futures-channel = { version = "0.3.8", optional = true }
|
|
geojson = "0.20.1"
|
|
geom = { path = "../geom" }
|
|
instant = "0.1.7"
|
|
js-sys = { version = "0.3.45", optional = true }
|
|
kml = { path = "../kml" }
|
|
log = "0.4.11"
|
|
lttb = "0.2.0"
|
|
maplit = "1.0.2"
|
|
map_gui = { path = "../map_gui" }
|
|
map_model = { path = "../map_model" }
|
|
petname = "1.0.12"
|
|
rand = "0.7.0"
|
|
rand_xorshift = "0.2.0"
|
|
reqwest = { version = "0.10.8", optional = true, default-features=false, features=["blocking", "rustls-tls"] }
|
|
serde = "1.0.116"
|
|
serde_json = "1.0.57"
|
|
svg_face = "0.1.2"
|
|
sim = { path = "../sim" }
|
|
wasm-bindgen = { version = "0.2.68", optional = true }
|
|
wasm-bindgen-futures = { version = "0.4.18", optional = true }
|
|
webbrowser = "0.5.5"
|
|
widgetry = { path = "../widgetry" }
|
|
xmltree = "0.10.1"
|
|
|
|
[build-dependencies]
|
|
built = "0.4.2"
|
|
walkdir = "2.2.7"
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3.4"
|
|
optional = true
|
|
features = [
|
|
"Headers",
|
|
"Request",
|
|
"RequestInit",
|
|
"RequestMode",
|
|
"Response",
|
|
"Window",
|
|
]
|