forked from rust-skia/rust-skia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
66 lines (59 loc) · 2.12 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
[package]
name = "skia-org"
description = "Renders examples from skia.org with rust-skia"
homepage = "https://github.com/rust-skia/rust-skia"
repository = "https://github.com/rust-skia/rust-skia"
readme = "README.md"
# 5 max
keywords = ["skia", "rust-bindings", "vulkan", "opengl", "pdf"]
# 6 max
categories = [
"api-bindings",
"graphics",
"multimedia::images",
"rendering::graphics-api",
"visualization",
]
license = "MIT"
version = "1.0.0"
authors = ["Armin Sander <armin@replicator.org>"]
edition = "2021"
default-run = "skia-org"
[features]
default = []
gl = ["offscreen_gl_context", "sparkle", "skia-safe/gl"]
egl = ["gl", "skia-safe/egl"]
x11 = ["gl", "skia-safe/x11"]
wayland = ["egl", "skia-safe/wayland"]
vulkan = ["ash", "skia-safe/vulkan"]
metal = ["metal-rs", "foreign-types-shared", "cocoa", "objc", "skia-safe/metal"]
d3d = ["skia-safe/d3d", "windows"]
textlayout = ["skia-safe/textlayout"]
webp = ["skia-safe/webp"]
svg = ["skia-safe/svg"]
[dependencies]
skia-safe = { path = "../skia-safe" }
# 0.25.1 fails to build on iOS targets on macOS: https://github.com/servo/rust-offscreen-rendering-context/pull/150
offscreen_gl_context = { git = "https://github.com/rust-skia/rust-offscreen-rendering-context", rev = "82b022cd0e42baaabfb82c319c9785a84a04f395", optional = true }
sparkle = { version = "0.1.25", optional = true }
clap = { version = "4.0.7", features = ["derive"] }
ash = { version = "0.38.0", optional = true }
# need to rename the package because of the feature with the same name.
metal-rs = { package = "metal", version = "0.24.0", optional = true }
# ... to access raw metal ptrs.
foreign-types-shared = { version = "0.1.1", optional = true }
# ... for that NSAutoReleasePool to be able to free metal devices.
cocoa = { version = "0.25", optional = true }
objc = { version = "0.2.4", optional = true }
# d3d
windows = { version = "0.56.0", features = [
"Win32",
"Win32_Graphics",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Direct3D",
"Win32_Foundation",
"Win32_Graphics_Dxgi_Common",
], optional = true }
# default typeface
once_cell = { version = "1.19.0" }