abstreet/widgetry/Cargo.toml
Dustin Carlino a17ef9cc43 Get text rendering to work on WASM! #21
Just a few changes to make usvg not depend on Rustybuzz (which is still
in the middle of becoming a pure Rust library). It probably only works
with English fonts, but for the moment, it moves us forward.
2020-09-20 22:50:22 -07:00

37 lines
1.1 KiB
TOML

[package]
name = "widgetry"
version = "0.1.0"
authors = ["Dustin Carlino <dabreegster@gmail.com>"]
edition = "2018"
[features]
default = ["glow-backend"]
glow-backend = ["glow", "glutin", "usvg/text", "usvg/text_native"]
wasm-backend = ["glow/stdweb", "instant/stdweb", "stdweb", "usvg/text", "usvg/text_stdweb", "webgl_stdweb", "winit/stdweb"]
[dependencies]
abstutil = { path = "../abstutil" }
# backtrace = "0.3.40"
downcast-rs = "1.1.1"
geom = { path = "../geom" }
glow = { version = "0.5.0", optional = true, default-features=false }
glutin = { version = "0.24.1", optional = true }
htmlescape = "0.3.1"
image = { version = "0.23.4", default-features = false, features=["png"] }
instant = "0.1.2"
log = "0.4"
lru = "0.4.3"
lyon = "0.15.8"
serde = "1.0.110"
stdweb = { version = "0.4.20", optional = true }
stretch = "0.3.2"
ttf-parser = "0.6.1"
usvg = { git = "https://github.com/dabreegster/resvg/", branch = "wasm", default-features=false }
webgl_stdweb = { version = "0.3", optional = true }
winit = "0.22.2"
[dev-dependencies]
rand = "0.7.0"
rand_xorshift = "0.2.0"
svg_face = "0.1.2"