This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
144 lines (135 loc) · 4.71 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[package]
name = "rootvg"
version = "0.3.0"
description = "A 2D vector graphics library optimized for GUIs"
readme = "README.md"
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
categories.workspace = true
keywords.workspace = true
[badges]
maintenance = { status = "actively-developed" }
[workspace]
members = [
"crates/rootvg-core",
"crates/rootvg-image",
"crates/rootvg-mesh",
"crates/rootvg-msaa",
"crates/rootvg-quad",
"crates/rootvg-tessellation",
"crates/rootvg-text",
]
[workspace.package]
edition = "2021"
authors = ["Billy Messenger <[email protected]>"]
license = "MIT"
homepage = "https://github.com/MeadowlarkDAW/rootvg"
documentation = "https://docs.rs/rootvg"
repository = "https://github.com/MeadowlarkDAW/rootvg"
categories = ["graphics", "rendering", "rendering::engine"]
keywords = ["vector", "graphics", "gpu", "2d"]
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"quad",
"mesh",
"tessellation",
"text",
"image",
"msaa",
"gradient",
"svg-icons",
"default-surface",
"web-colors",
]
## Enables drawing meshes of triangles
mesh = ["dep:rootvg-mesh"]
## Enables anti-aliasing using MSAA. This only effects mesh primitives and
## custom primitives, so consider disabling this if the `mesh`,`tessellation`,
## and "custom-primitive" features are disabled.
msaa = ["dep:rootvg-msaa"]
## Enables drawing of quads
quad = ["dep:rootvg-quad"]
## Enables using lyon to tessellate vector shapes into a mesh for rendering
tessellation = ["dep:rootvg-tessellation", "dep:rootvg-mesh"]
## Enables drawing of text
text = ["dep:rootvg-text"]
## Enables drawing of images
image = ["dep:rootvg-image"]
## Enables filling quads and meshes with gradients
gradient = ["rootvg-core/gradient", "rootvg-quad?/gradient", "rootvg-mesh?/gradient", "rootvg-tessellation?/gradient"]
## Enables rendering svg icons (feature "text" must be enabled)
svg-icons = ["text", "rootvg-text?/svg-icons"]
## Enables support for rendering raster images in svg icons
svg-icon-raster-images = ["text", "svg-icons", "rootvg-text?/svg-icon-raster-images"]
## Enables support for custom primitives
custom-primitive = []
## Enables a default wgpu surface configuration
default-surface = ["dep:pollster"]
serde = [
"rootvg-core/serde",
"rootvg-image?/serde",
"rootvg-mesh?/serde",
"rootvg-msaa?/serde",
"rootvg-quad?/serde",
"rootvg-tessellation?/serde",
"rootvg-text?/serde",
]
# Enables broken "sRGB linear" blending to reproduce color management of the Web.
# Recommended for better text legibility.
# See: https://github.com/iced-rs/iced/pull/1888
# https://github.com/pop-os/cosmic-text/issues/195
web-colors = [
"rootvg-core/web-colors",
"rootvg-image?/web-colors",
"rootvg-mesh?/web-colors",
"rootvg-msaa?/web-colors",
"rootvg-quad?/web-colors",
"rootvg-tessellation?/web-colors",
"rootvg-text?/web-colors",
]
[dependencies]
rootvg-core = { version = "0.3", path = "crates/rootvg-core", default-features = false }
rootvg-image = { version = "0.3", path = "crates/rootvg-image", default-features = false, optional = true }
rootvg-mesh = { version = "0.3", path = "crates/rootvg-mesh", default-features = false, optional = true }
rootvg-msaa = { version = "0.3", path = "crates/rootvg-msaa", default-features = false, optional = true }
rootvg-quad = { version = "0.3", path = "crates/rootvg-quad", default-features = false, optional = true }
rootvg-tessellation = { version = "0.3", path = "crates/rootvg-tessellation", default-features = false, optional = true }
rootvg-text = { version = "0.3", path = "crates/rootvg-text", default-features = false, optional = true }
pollster = { version = "0.3.0", optional = true }
rustc-hash.workspace = true
log.workspace = true
smallvec.workspace = true
thiserror.workspace = true
wgpu.workspace = true
thunderdome.workspace = true
[dev-dependencies]
winit.workspace = true
wgpu = { version = "22", default-features = true }
pollster = "0.3.0"
env_logger.workspace = true
bytemuck.workspace = true
rustc-hash.workspace = true
image = { version = "0.25.0", default-features = false, features = ["rayon", "png"] }
[workspace.dependencies]
rgb = "0.8.37"
smallvec = "1.13.1"
rustc-hash = "2.0"
euclid = { version = "0.22.9", default-features = false }
wgpu = { version = "22", default-features = false, features = ["wgsl"] }
bytemuck = { version = "1.14.1", features = ["derive"] }
log = "0.4.21"
winit = { version = "0.30.0" }
env_logger = "0.11.3"
thiserror = "1.0.57"
half = "2.3.1"
bitflags = "2.6"
thunderdome = "0.6.1"
[[example]]
name = "custom_primitive"
path = "examples/custom_primitive.rs"
required-features = ["custom-primitive"]