Source code

Revision control

Other Tools

1
[package]
2
name = "webrender"
3
version = "0.60.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 = ["thread_profiler/thread_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
pathfinder = ["pathfinder_font_renderer", "pathfinder_gfx_utils", "pathfinder_partitioner", "pathfinder_path_utils"]
20
serialize_program = ["serde", "webrender_build/serialize_program"]
21
no_static_freetype = []
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.0"
30
byteorder = "1.0"
31
cfg-if = "0.1.2"
32
cstr = "0.1.2"
33
euclid = { version = "0.19.5", features = ["serde"] }
34
fxhash = "0.2.1"
35
gleam = "0.6.17"
36
image_loader = { optional = true, version = "0.21", package = "image", default-features = false, features = ["png_codec"] }
37
lazy_static = "1"
38
log = "0.4"
39
malloc_size_of_derive = "0.1"
40
num-traits = "0.2"
41
plane-split = "0.13.7"
42
png = { optional = true, version = "0.14" }
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
sha2 = "0.8"
48
smallvec = "0.6"
49
thread_profiler = "0.1.1"
50
time = "0.1"
51
api = { version = "0.60.0", path = "../webrender_api", package = "webrender_api" }
52
webrender_build = { version = "0.0.1", path = "../webrender_build" }
53
malloc_size_of = { version = "0.0.1", path = "../wr_malloc_size_of", package = "wr_malloc_size_of" }
54
ws = { optional = true, version = "0.8" }
55
svg_fmt = "0.4"
56
57
[dependencies.pathfinder_font_renderer]
59
branch = "webrender"
60
optional = true
61
# Uncomment to test FreeType on macOS:
62
# features = ["freetype"]
63
64
[dependencies.pathfinder_gfx_utils]
66
branch = "webrender"
67
optional = true
68
69
[dependencies.pathfinder_partitioner]
71
branch = "webrender"
72
optional = true
73
74
[dependencies.pathfinder_path_utils]
76
branch = "webrender"
77
optional = true
78
79
[dev-dependencies]
80
mozangle = "0.1"
81
rand = "0.4"
82
83
[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
84
freetype = { version = "0.4", default-features = false }
85
libc = "0.2"
86
87
[target.'cfg(target_os = "windows")'.dependencies]
88
dwrote = "0.9"
89
90
[target.'cfg(target_os = "macos")'.dependencies]
91
core-foundation = "0.6"
92
core-graphics = "0.17.1"
93
core-text = { version = "13", default-features = false }