1 | [package] |
2 | |
3 | name = "skia-bindings" |
4 | description = "Skia Bindings for Rust" |
5 | homepage = "https://github.com/rust-skia/rust-skia/tree/master/skia-bindings" |
6 | repository = "https://github.com/rust-skia/rust-skia" |
7 | readme = "README.md" |
8 | keywords = ["skia" , "rust-bindings" , "vulkan" , "opengl" , "pdf" ] |
9 | categories = ["external-ffi-bindings" , "graphics" , "multimedia::images" , "rendering::graphics-api" , "visualization" ] |
10 | license = "MIT" |
11 | |
12 | version = "0.71.0" |
13 | authors = ["LongYinan <lynweklm@gmail.com>" , "Armin Sander <armin@replicator.org>" ] |
14 | edition = "2021" |
15 | build = "build.rs" |
16 | links = "skia" |
17 | include = [ |
18 | "Cargo.toml" , |
19 | "bindings_docs.rs" , |
20 | "build.rs" , |
21 | "build_support.rs" , |
22 | "build_support/**/*.rs" , |
23 | "src/**/*.h" , |
24 | "src/**/*.cpp" , |
25 | "src/*.rs" ] |
26 | |
27 | [lib] |
28 | doctest = false |
29 | |
30 | # Metadata used from inside the packaged crate that defines where to download skia and depot_tools archives from. |
31 | # Note: use short hashes here because of filesystem path size restrictions. |
32 | [package.metadata] |
33 | skia = "m122-0.70.1" |
34 | depot_tools = "73a2624" |
35 | |
36 | [features] |
37 | default = ["binary-cache" , "embed-icudtl" ] |
38 | gl = [] |
39 | egl = [] |
40 | wayland = [] |
41 | x11 = [] |
42 | vulkan = [] |
43 | metal = [] |
44 | d3d = [] |
45 | textlayout = [] |
46 | webp = ["webp-encode" , "webp-decode" ] |
47 | webp-encode = [] |
48 | webp-decode = [] |
49 | # sys libraries |
50 | use-system-jpeg-turbo = ["mozjpeg-sys" ] |
51 | # `textlayout` because `SkSVGTextContext::SkSVGTextContext()` invokes `SkShaper::Make`. |
52 | svg = ["textlayout" ] |
53 | shaper = ["textlayout" ] |
54 | binary-cache = ["flate2" , "tar" ] |
55 | embed-icudtl = ["lazy_static" ] |
56 | embed-freetype = [] |
57 | |
58 | [dependencies] |
59 | mozjpeg-sys = { version = "2" , features = ["with_simd" ], optional = true } |
60 | lazy_static = { version = "1.4.0" , optional = true } |
61 | |
62 | [build-dependencies] |
63 | cc = "1.0.37" |
64 | bindgen = "0.69.1" |
65 | |
66 | # For enum variant name replacements. |
67 | regex = "1.4.5" |
68 | heck = "0.4.0" |
69 | |
70 | # For downloading and extracting prebuilt binaries and skia / depot_tools archives: |
71 | # ureq = { version = "2.8.0", optional = true } |
72 | flate2 = { version = "1.0.7" , optional = true } |
73 | tar = { version = "0.4.26" , optional = true } |
74 | |
75 | # For reading .cargo.vcs_info.json to get the repository sha1 that is used to download |
76 | # the matching prebuilt binaries. |
77 | serde_json = "1.0.39" |
78 | # For reading Cargo.toml from within a package. |
79 | toml = "0.8.0" |
80 | |
81 | [dev-dependencies] |
82 | # build dependencies duplicated for testing :( |
83 | cc = "1.0.37" |
84 | bindgen = "0.69.1" |
85 | regex = "1.4.5" |
86 | heck = "0.4.0" |
87 | # ureq = { version = "2.8.0" } |
88 | flate2 = { version = "1.0.7" } |
89 | tar = { version = "0.4.26" } |
90 | serde_json = "1.0.39" |
91 | toml = "0.8.0" |
92 | |