mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
998c4ce860
Differential Revision: https://phabricator.services.mozilla.com/D32567 --HG-- extra : moz-landing-system : lando
94 lines
2.9 KiB
TOML
94 lines
2.9 KiB
TOML
[package]
|
|
name = "webrender"
|
|
version = "0.60.0"
|
|
authors = ["Glenn Watson <gw@intuitionlibrary.com>"]
|
|
license = "MPL-2.0"
|
|
repository = "https://github.com/servo/webrender"
|
|
description = "A GPU accelerated 2D renderer for web content"
|
|
build = "build.rs"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = ["freetype-lib"]
|
|
freetype-lib = ["freetype/servo-freetype-sys"]
|
|
profiler = ["thread_profiler/thread_profiler"]
|
|
debugger = ["ws", "serde_json", "serde", "image_loader", "base64"]
|
|
capture = ["api/serialize", "ron", "serde", "smallvec/serde"]
|
|
replay = ["api/deserialize", "ron", "serde", "smallvec/serde"]
|
|
display_list_stats = ["api/display_list_stats"]
|
|
pathfinder = ["pathfinder_font_renderer", "pathfinder_gfx_utils", "pathfinder_partitioner", "pathfinder_path_utils"]
|
|
serialize_program = ["serde", "webrender_build/serialize_program"]
|
|
no_static_freetype = []
|
|
|
|
[build-dependencies]
|
|
webrender_build = { version = "0.0.1", path = "../webrender_build" }
|
|
|
|
[dependencies]
|
|
base64 = { optional = true, version = "0.10" }
|
|
bincode = "1.0"
|
|
bitflags = "1.0"
|
|
byteorder = "1.0"
|
|
cfg-if = "0.1.2"
|
|
cstr = "0.1.2"
|
|
euclid = { version = "0.19.5", features = ["serde"] }
|
|
fxhash = "0.2.1"
|
|
gleam = "0.6.17"
|
|
image_loader = { optional = true, version = "0.21", package = "image", default-features = false, features = ["png_codec"] }
|
|
lazy_static = "1"
|
|
log = "0.4"
|
|
malloc_size_of_derive = "0.1"
|
|
num-traits = "0.2"
|
|
plane-split = "0.13.7"
|
|
png = { optional = true, version = "0.14" }
|
|
rayon = "1"
|
|
ron = { optional = true, version = "0.1.7" }
|
|
serde = { optional = true, version = "1.0", features = ["serde_derive"] }
|
|
serde_json = { optional = true, version = "1.0" }
|
|
sha2 = "0.8"
|
|
smallvec = "0.6"
|
|
thread_profiler = "0.1.1"
|
|
time = "0.1"
|
|
api = { version = "0.60.0", path = "../webrender_api", package = "webrender_api" }
|
|
webrender_build = { version = "0.0.1", path = "../webrender_build" }
|
|
malloc_size_of = { version = "0.0.1", path = "../wr_malloc_size_of", package = "wr_malloc_size_of" }
|
|
ws = { optional = true, version = "0.8" }
|
|
svg_fmt = "0.4"
|
|
|
|
[dependencies.pathfinder_font_renderer]
|
|
git = "https://github.com/pcwalton/pathfinder"
|
|
branch = "webrender"
|
|
optional = true
|
|
# Uncomment to test FreeType on macOS:
|
|
# features = ["freetype"]
|
|
|
|
[dependencies.pathfinder_gfx_utils]
|
|
git = "https://github.com/pcwalton/pathfinder"
|
|
branch = "webrender"
|
|
optional = true
|
|
|
|
[dependencies.pathfinder_partitioner]
|
|
git = "https://github.com/pcwalton/pathfinder"
|
|
branch = "webrender"
|
|
optional = true
|
|
|
|
[dependencies.pathfinder_path_utils]
|
|
git = "https://github.com/pcwalton/pathfinder"
|
|
branch = "webrender"
|
|
optional = true
|
|
|
|
[dev-dependencies]
|
|
mozangle = "0.1"
|
|
rand = "0.4"
|
|
|
|
[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
|
|
freetype = { version = "0.4", default-features = false }
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
dwrote = "0.9"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-foundation = "0.6"
|
|
core-graphics = "0.17.1"
|
|
core-text = { version = "13", default-features = false }
|