forked from linebender/piet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
41 lines (35 loc) · 1.57 KB
/
Cargo.toml
File metadata and controls
41 lines (35 loc) · 1.57 KB
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
[package]
name = "piet-common"
version = "0.0.12"
authors = ["Raph Levien <raph.levien@gmail.com>"]
description = "Selection of a single preferred back-end for piet"
license = "MIT/Apache-2.0"
repository = "https://github.com/linebender/piet"
edition = "2018"
keywords = ["graphics", "2d"]
[features]
d2d = ["piet-direct2d"]
cairo = ["piet-cairo", "cairo-rs"]
web = ["piet-web"]
[dependencies]
cfg-if = "0.1.10"
piet = { version = "0.0.12", path = "../piet" }
piet-cairo = { version = "0.0.12", path = "../piet-cairo", optional = true }
piet-direct2d = { version = "0.0.12", path = "../piet-direct2d", optional = true }
piet-web = { version = "0.0.12", path = "../piet-web", optional = true }
cairo-rs = { version = "0.8.1", default_features = false, optional = true}
[target.'cfg(not(any(target_arch="wasm32", target_os="windows")))'.dependencies]
piet-cairo = { version = "0.0.12", path = "../piet-cairo" }
cairo-rs = { version = "0.8.1", default_features = false}
png = { version = "0.16.1", optional = true }
[target.'cfg(target_os="windows")'.dependencies]
piet-direct2d = { version = "0.0.12", path = "../piet-direct2d" }
direct2d = "0.2.0"
directwrite = "0.1.4"
dxgi = "0.1.7"
direct3d11 = "0.1.7"
png = { version = "0.16.1", optional = true }
[target.'cfg(target_arch="wasm32")'.dependencies]
piet-web = { version = "0.0.12", path = "../piet-web" }
web-sys = { version = "0.3.36", features = ["console", "Window", "CanvasGradient", "CanvasRenderingContext2d", "CanvasWindingRule", "Document", "Element", "HtmlCanvasElement", "ImageBitmap", "ImageData", "TextMetrics"] }
wasm-bindgen = "0.2.59"