-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
85 lines (71 loc) · 2.38 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[package]
name = "rex"
version = "0.1.2"
authors = [
"Christopher Breeden <[email protected]>",
"Sebastian Köln <[email protected]>",
"Keny C",
]
edition = "2021"
[features]
pathfinder-renderer = ["dep:pathfinder_renderer", "dep:pathfinder_geometry", "dep:pathfinder_color", "dep:pathfinder_content", "dep:pathfinder_export"]
femtovg-renderer = ["dep:femtovg"]
cairo-renderer = ["dep:cairo-rs"]
raqote-renderer = ["dep:raqote"]
ttfparser-fontparser = ["dep:ttf-parser"]
fontrs-fontparser = ["dep:font", "dep:pathfinder_geometry", "dep:pathfinder_content", "dep:pathfinder_color", "dep:pathfinder_export"]
[[example]]
name = "gui-basic"
path = "examples/gui_basic.rs"
required-features = ["femtovg-renderer", "ttfparser-fontparser"]
[[example]]
name = "svg-basic"
path = "examples/svg_basic.rs"
required-features = ["cairo-renderer", "ttfparser-fontparser"]
[[example]]
name = "stress-test"
path = "perf/stress_test.rs"
[[example]]
name = "grid-sample"
path = "examples/grid_sample.rs"
required-features = ["femtovg-renderer", "ttfparser-fontparser"]
[dependencies]
pathfinder_geometry = { git = "https://github.com/servo/pathfinder/", optional = true }
pathfinder_color = { git = "https://github.com/servo/pathfinder/", optional = true }
pathfinder_content = { git = "https://github.com/servo/pathfinder/", optional = true }
pathfinder_export = { git = "https://github.com/servo/pathfinder/", optional = true }
# we should not pin any of these to a specific version
# b/c the types there appear in our public interfaces
# Users of their library should be maximally unconstrained
cairo-rs = {version = ">= 0.14.0", optional = true}
raqote = {version = ">= 0.8.2", optional = true}
unicode-math = { path = "deps/unicode-math" }
serde_derive = "1.0"
serde = "1.0"
[dependencies.font]
git = "https://github.com/pdf-rs/font"
features=["math"]
optional = true
[dependencies.pathfinder_renderer]
git = "https://github.com/servo/pathfinder/"
optional = true
[dependencies.femtovg]
version = "*"
optional = true
[dependencies.ttf-parser]
version = "*"
optional = true
[dependencies.log]
version="0.4.8"
[dev-dependencies]
sdl2 = "*"
serde_yaml = "0.7"
env_logger = "*"
clap = {version = "4.2.4", features = ["derive"]}
image = "0.24.6"
cairo-rs = {version = "*", features = ["svg", "png"]}
base64 = "0.21.0"
rand = "0.8.5"
insta = "1.31.0"
similar = "2.5.0"
serde_json = "1.0.116"