-
Notifications
You must be signed in to change notification settings - Fork 241
Expand file tree
/
Copy pathCargo.toml
More file actions
168 lines (153 loc) · 6.05 KB
/
Cargo.toml
File metadata and controls
168 lines (153 loc) · 6.05 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[workspace]
resolver = "2"
members = [
"vello",
"vello_encoding",
"vello_shaders",
"vello_tests",
"xtask",
"examples/headless",
"examples/run_wasm",
"examples/scenes",
"examples/simple",
"examples/with_winit",
"sparse_strips/vello_api",
"sparse_strips/vello_bench",
"sparse_strips/vello_common",
"sparse_strips/vello_cpu",
"sparse_strips/vello_cpu/examples/wasm_cpu",
"sparse_strips/vello_cpu/examples/winit",
"sparse_strips/vello_hybrid",
"sparse_strips/vello_sparse_shaders",
"sparse_strips/vello_hybrid/examples/native_webgl",
"sparse_strips/vello_example_scenes",
"sparse_strips/vello_hybrid/examples/wgpu_webgl",
"sparse_strips/vello_hybrid/examples/winit",
"sparse_strips/vello_toy",
"sparse_strips/vello_dev_macros",
"sparse_strips/vello_sparse_tests",
"glifo",
"image_filters/vello_filters_cpu",
]
[workspace.package]
# Vello version, also used by other packages which want to mimic Vello's version.
# Right now those packages include vello_encoding and vello_shaders.
#
# NOTE: When bumping this, remember to also bump the aforementioned other packages'
# version in the dependencies section at the bottom of this file.
# Additionally, bump the Vello dependency version in the 'simple' example.
version = "0.8.0"
edition = "2024"
# Keep in sync with RUST_MIN_VER in .github/workflows/ci.yml, with the relevant README.md files
# and with the MSRV in the `Unreleased` section of CHANGELOG.md.
rust-version = "1.88"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/linebender/vello"
[workspace.lints]
# LINEBENDER LINT SET - Cargo.toml - v7
# See https://linebender.org/wiki/canonical-lints/
rust.keyword_idents_2024 = "forbid"
rust.non_ascii_idents = "forbid"
rust.non_local_definitions = "forbid"
rust.unsafe_op_in_unsafe_fn = "forbid"
rust.elided_lifetimes_in_paths = "warn"
rust.missing_debug_implementations = "warn"
rust.missing_docs = "warn"
rust.trivial_numeric_casts = "warn"
rust.unnameable_types = "warn"
rust.unreachable_pub = "warn"
rust.unused_import_braces = "warn"
rust.unused_lifetimes = "warn"
rust.unused_macro_rules = "warn"
rust.unused_qualifications = "warn"
clippy.too_many_arguments = "allow"
clippy.allow_attributes_without_reason = "warn"
clippy.cast_possible_truncation = "warn"
clippy.collection_is_never_read = "warn"
clippy.default_trait_access = "warn"
clippy.dbg_macro = "warn"
clippy.debug_assert_with_mut_call = "warn"
clippy.doc_markdown = "warn"
clippy.fn_to_numeric_cast_any = "warn"
clippy.infinite_loop = "warn"
clippy.large_stack_arrays = "warn"
clippy.mismatching_type_param_order = "warn"
clippy.missing_assert_message = "warn"
clippy.missing_fields_in_debug = "warn"
clippy.same_functions_in_if_condition = "warn"
clippy.semicolon_if_nothing_returned = "warn"
clippy.should_panic_without_expect = "warn"
clippy.todo = "warn"
clippy.unseparated_literal_suffix = "warn"
clippy.use_self = "warn"
clippy.cargo_common_metadata = "warn"
clippy.negative_feature_names = "warn"
clippy.redundant_feature_names = "warn"
clippy.wildcard_dependencies = "warn"
# END LINEBENDER LINT SET
[workspace.dependencies]
vello = { version = "0.8.0", path = "vello" }
vello_encoding = { version = "0.8.0", path = "vello_encoding" }
vello_shaders = { version = "0.8.0", path = "vello_shaders" }
bytemuck = { version = "1.25.0", features = ["derive"] }
skrifa = { version = "0.42.0", default-features = false, features = ["autohint_shaping"] }
# The version of kurbo used below should be kept in sync
# with the version of kurbo used by peniko.
peniko = { version = "0.6.0", default-features = false }
# FIXME: This can be removed once peniko supports the schemars feature.
kurbo = { version = "0.13.0", default-features = false }
futures-intrusive = "0.5.0"
guillotiere = { version = "0.7.0", default-features = false }
hashbrown = { version = "0.17.0", default-features = false, features = ["default-hasher"] }
core_maths = "0.1.1"
foldhash = { version = "0.2.0", default-features = false }
smallvec = "1.15.1"
static_assertions = "1.1.0"
thiserror = { version = "2.0.18", default-features = false }
oxipng = { version = "10.1.0", default-features = false }
png = "0.18.1"
rayon = { version = "1.11.0" }
thread_local = "1.1.9"
crossbeam-channel = "0.5.15"
ordered-channel = { version = "1.2.0", features = ["crossbeam-channel"] }
fearless_simd = { version = "0.4.0", default-features = false }
# The below crates are experimental!
vello_api = { version = "0.0.7", path = "sparse_strips/vello_api", default-features = false }
vello_common = { version = "0.0.7", path = "sparse_strips/vello_common", default-features = false }
vello_cpu = { version = "0.0.7", path = "sparse_strips/vello_cpu" }
vello_hybrid = { version = "0.0.7", path = "sparse_strips/vello_hybrid" }
vello_sparse_shaders = { version = "0.0.7", path = "sparse_strips/vello_sparse_shaders" }
glifo = { path = "glifo", default-features = false }
vello_example_scenes = { path = "sparse_strips/vello_example_scenes" }
vello_dev_macros = { path = "sparse_strips/vello_dev_macros" }
# NOTE: The wgpu and naga versions should be kept in sync, and make sure to keep this
# in sync with the version badge in README.md and vello/README.md
wgpu = { version = "29.0.1", default-features = false, features = ["std", "wgsl"] }
naga = { version = "29.0.0", default-features = false }
log = "0.4.29"
image = { version = "0.25.10", default-features = false }
# Used for examples
clap = "4.6.0"
anyhow = "1.0.102"
pollster = "0.4.0"
web-time = "1.1.0"
wgpu-profiler = "0.27.0"
winit = "0.30.13"
scenes = { path = "examples/scenes" }
svg = "0.18.0"
criterion = { version = "0.5.1", default-features = false }
rand = { version = "0.9.2", default-features = false, features = ["std_rng"] }
usvg = { version = "0.45.1" }
once_cell = "1.21.4"
console_error_panic_hook = "0.1.7"
console_log = "1.0"
# Used for testing
proc-macro2 = "1.0.106"
syn = { version = "2.0.117", features = ["full", "extra-traits"] }
quote = "1.0.45"
serde = { version = "1.0.228", default-features = false }
serde_json = "1.0.149"
[profile.instrument]
inherits = "release"
debug = true
strip = "none"