mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 00:12:55 +03:00
bb6dbb0731
When I added web support in February, it was easier to get started with stdweb, since it has the nice cargo web tool. However, stdweb is unmaintained, winit is deprecating support for it, and the next steps for web (downloading maps dynamically) have better support for web-sys. With Alvin's guidance, I got https://github.com/dabreegster/minimal_websys_winit_glow_demo working first. This PR cuts A/B Street over too. I tested abst and the widgetry demo in both native and web. The only major regression from stdweb is the canvas placement and size. I attempted some fixes, but at this point, I'll leave it as a smaller followup instead.
23 lines
554 B
TOML
23 lines
554 B
TOML
[package]
|
|
name = "widgetry_demo"
|
|
version = "0.1.0"
|
|
authors = ["Dustin Carlino <dabreegster@gmail.com>"]
|
|
edition = "2018"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "lib"]
|
|
|
|
[features]
|
|
default = ["widgetry/glow-backend"]
|
|
wasm = ["console_log", "wasm-bindgen", "widgetry/wasm-backend"]
|
|
|
|
[dependencies]
|
|
console_log = { version = "0.1", optional = true }
|
|
geom = { path = "../geom" }
|
|
log = "0.4.11"
|
|
rand = "0.7.0"
|
|
rand_xorshift = "0.2.0"
|
|
svg_face = "0.1.2"
|
|
wasm-bindgen = { version = "0.2.68", optional = true }
|
|
widgetry = { path = "../widgetry", default-features=false }
|