forked from samizdatco/skia-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (40 loc) · 1.29 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
[package]
name = "skia-canvas"
version = "1.0.1"
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:core-graphics-types", "dep:foreign-types", "dep:cocoa", "dep:objc"]
vulkan = ["skia-safe/vulkan", "dep:skulpin", "dep:ash"]
window = ["dep:winit"]
[dependencies]
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.52.0", features = ["textlayout"] }
# vulkan
ash = { version = "0.37", optional = true }
skulpin = { git = "https://github.com/aclysma/skulpin.git", rev="c5fb342", optional = true }
# metal
metal = { version = "0.24", optional = true }
core-graphics-types = { version = "0.1.1", optional = true }
foreign-types = { version = "0.3.2", optional = true }
cocoa = { version = "0.24.0", optional = true }
objc = { version = "0.2.7", optional = true }
# window
winit = { version = '0.26.1', features = ["serde"], optional = true }
[dependencies.neon]
version = "0.10.1"
default-features = false
features = ["napi-6", "promise-api", "task-api"]