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
serialize_program = ["serde", "webrender_build/serialize_program"]
20
no_static_freetype = []
21
22
[build-dependencies]
23
webrender_build = { version = "0.0.1", path = "../webrender_build" }
24
25
[dependencies]
26
base64 = { optional = true, version = "0.10" }
27
bincode = "1.0"
28
bitflags = "1.0"
29
byteorder = "1.0"
30
cfg-if = "0.1.2"
31
cstr = "0.1.2"
32
euclid = { version = "0.20.0", features = ["serde"] }
33
fxhash = "0.2.1"
34
gleam = "0.6.17"
35
image_loader = { optional = true, version = "0.22", package = "image", default-features = false, features = ["png_codec"] }
36
lazy_static = "1"
37
log = "0.4"
38
malloc_size_of_derive = "0.1"
39
num-traits = "0.2"
40
plane-split = "0.14.1"
41
png = { optional = true, version = "0.15" }
42
rayon = "1"
43
ron = { optional = true, version = "0.1.7" }
44
serde = { optional = true, version = "1.0", features = ["serde_derive"] }
45
serde_json = { optional = true, version = "1.0" }
46
sha2 = "0.8"
47
smallvec = "0.6"
48
thread_profiler = "0.1.1"
49
time = "0.1"
50
api = { version = "0.60.0", path = "../webrender_api", package = "webrender_api" }
51
webrender_build = { version = "0.0.1", path = "../webrender_build" }
52
malloc_size_of = { version = "0.0.1", path = "../wr_malloc_size_of", package = "wr_malloc_size_of" }
53
ws = { optional = true, version = "0.8" }
54
svg_fmt = "0.4"
55
56
[dev-dependencies]
57
mozangle = "0.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 }