-
Notifications
You must be signed in to change notification settings - Fork 295
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (61 loc) · 2.18 KB
/
Copy pathCargo.toml
File metadata and controls
68 lines (61 loc) · 2.18 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
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
66
67
68
[package]
name = "vello_hybrid"
version = "0.0.9"
description = "A hybrid CPU/GPU renderer for Vello, balancing computation between CPU and GPU for efficiency."
categories = ["rendering", "graphics"]
keywords = ["2d", "vector-graphics"]
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = ["wasm32-unknown-unknown"]
[dependencies]
bytemuck = { workspace = true, features = ["derive"] }
thiserror = { workspace = true }
vello_common = { workspace = true, features = ["std"] }
glifo = { workspace = true, default-features = false, optional = true }
wgpu = { workspace = true, default-features = false, optional = true }
vello_sparse_shaders = { workspace = true, optional = true }
log = { workspace = true }
hashbrown = { workspace = true }
js-sys = { workspace = true, optional = true }
web-sys = { workspace = true, features = [
"HtmlCanvasElement",
"WebGl2RenderingContext",
"WebGlContextAttributes",
"WebGlProgram",
"WebGlUniformLocation",
"WebGlBuffer",
"WebGlShader",
"WebGlSync",
"WebGlTexture",
"WebGlFramebuffer",
"WebGlRenderbuffer",
"WebGlVertexArrayObject",
], optional = true }
[dev-dependencies]
png = { workspace = true }
pollster = { workspace = true }
vello_common = { workspace = true, features = ["pico_svg"] }
roxmltree = "0.20.0"
[features]
default = ["wgpu", "wgpu_default", "text"]
std = ["wgpu", "vello_common/std", "glifo?/std"]
libm = ["vello_common/libm", "glifo?/libm"]
wgpu = ["dep:wgpu", "dep:vello_sparse_shaders"]
# Enable wgpu with its default features. If you need to customise the set of enabled wgpu features,
# please disable this crate's default features, enable its "wgpu" feature, then depend on wgpu directly
# with the features which you need enabled.
wgpu_default = ["wgpu", "wgpu/default"]
# Add support for text rendering.
text = ["dep:glifo", "glifo/std"]
probe = ["vello_common/probe"]
webgl = ["dep:js-sys", "dep:web-sys", "dep:vello_sparse_shaders", "vello_sparse_shaders/glsl"]
[lints]
workspace = true
[[example]]
name = "render_to_file"
required-features = ["wgpu"]