Source code

Revision control

Other Tools

1
[package]
2
name = "webrender"
3
version = "0.61.0"
4
authors = ["Glenn Watson <gw@intuitionlibrary.com>"]
5
license = "MPL-2.0"
7
description = "A GPU accelerated 2D renderer for web content"
8
build = "build.rs"
9
edition = "2018"
10
11
[features]
12
default = ["freetype-lib"]
13
freetype-lib = ["freetype/servo-freetype-sys"]
14
profiler = ["tracy-rs/enable_profiler"]
15
debugger = ["ws", "serde_json", "serde", "image_loader", "base64"]
16
capture = ["api/serialize", "ron", "serde", "smallvec/serde"]
17
replay = ["api/deserialize", "ron", "serde", "smallvec/serde"]
18
display_list_stats = ["api/display_list_stats"]
19
serialize_program = ["serde", "webrender_build/serialize_program"]
20
no_static_freetype = []
21
leak_checks = []
22
23
[build-dependencies]
24
webrender_build = { version = "0.0.1", path = "../webrender_build" }
25
26
[dependencies]
27
base64 = { optional = true, version = "0.10" }
28
bincode = "1.0"
29
bitflags = "1.2"
30
byteorder = "1.0"
31
cfg-if = "0.1.2"
32
cstr = "0.1.2"
33
euclid = { version = "0.20.0", features = ["serde"] }
34
fxhash = "0.2.1"
35
gleam = "0.10.0"
36
image_loader = { optional = true, version = "0.23", package = "image", default-features = false, features = ["png"] }
37
lazy_static = "1"
38
log = "0.4"
39
malloc_size_of_derive = "0.1"
40
num-traits = "0.2"
41
plane-split = "0.15"
42
png = { optional = true, version = "0.15" }
43
rayon = "1"
44
ron = { optional = true, version = "0.1.7" }
45
serde = { optional = true, version = "1.0", features = ["serde_derive"] }
46
serde_json = { optional = true, version = "1.0" }
47
smallvec = "0.6"
48
time = "0.1"
49
api = { version = "0.61.0", path = "../webrender_api", package = "webrender_api" }
50
webrender_build = { version = "0.0.1", path = "../webrender_build" }
51
malloc_size_of = { version = "0.0.1", path = "../wr_malloc_size_of", package = "wr_malloc_size_of" }
52
ws = { optional = true, version = "0.9" }
53
svg_fmt = "0.4"
54
tracy-rs = { version = "0.1" }
55
56
[dev-dependencies]
57
mozangle = "0.3.1"
58
rand = "0.4"
59
60
[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
61
freetype = { version = "0.4", default-features = false }
62
libc = "0.2"
63
64
[target.'cfg(target_os = "windows")'.dependencies]
65
dwrote = "0.9"
66
67
[target.'cfg(target_os = "macos")'.dependencies]
68
core-foundation = "0.6"
69
core-graphics = "0.17.1"
70
core-text = { version = "13", default-features = false }