mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
a17ef9cc43
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.
37 lines
1.1 KiB
TOML
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"
|