-
Notifications
You must be signed in to change notification settings - Fork 72
/
Cargo.toml
45 lines (38 loc) · 1.27 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
[package]
name = "skia-canvas"
version = "2.0.0"
description = "A canvas environment for Node"
authors = ["Christian Swinehart <[email protected]>"]
license = "MIT"
edition = "2021"
exclude = ["index.node"]
[lib]
crate-type = ["cdylib"]
[profile.release]
lto = "fat"
[features]
metal = ["skia-safe/metal", "dep:metal", "dep:raw-window-handle", "dep:core-graphics-types", "dep:cocoa", "dep:objc"]
vulkan = ["skia-safe/vulkan", "winit/rwh_05", "dep:ash", "dep:vulkano"]
window = ["dep:winit"]
[dependencies]
neon = "1.0"
crc = "^3.0"
css-color = "^0.2"
rayon = "^1.5"
crossbeam = "0.8.2"
once_cell = "1.13"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
skia-safe = { version = "0.80.0", features = ["textlayout", "webp", "svg"] }
allsorts = { version = "0.15", features = ["flate2_zlib"], default-features = false}
# vulkan
ash = { version = "0.37.3", optional = true }
vulkano = { version = "0.34.1", optional = true }
# metal
metal = { version = "0.29", optional = true }
raw-window-handle = { version = "0.6", optional = true }
core-graphics-types = { version = "0.1.1", optional = true }
cocoa = { version = "0.26.0", optional = true }
objc = { version = "0.2.7", optional = true }
# window
winit = { version = '0.30.5', features = ["serde"], optional = true }