Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
208 lines (184 loc) · 5.89 KB
/
Copy pathCargo.toml
File metadata and controls
208 lines (184 loc) · 5.89 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[workspace]
members = [
"core",
"core/macros",
"core/build_playerglobal",
"desktop",
"swf",
"flv",
"web",
"web/packages/extension/safari",
"wstr",
"scanner",
"exporter",
"exporter/integration_tests",
"frontend-utils",
"render",
"render/canvas",
"render/naga-agal",
"render/pixel_bender",
"render/pixel_bender/assembly_tests",
"render/wgpu",
"render/webgl",
"video",
"video/software",
"video/external",
"tests",
"tests/fs-tests-runner",
"tests/input-format",
"tests/socket-format",
"tests/mocket",
"tests/framework",
"tools/asc",
"tools/fuzzer",
"tools/stub-report",
]
default-members = ["desktop"]
resolver = "2"
[workspace.package]
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
edition = "2024"
homepage = "https://ruffle.rs"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ruffle-rs/ruffle"
version = "0.7.1"
[workspace.dependencies]
rand = { version = "0.10.1", default-features = false }
png = "0.18.1"
proc-macro2 = "1.0.106"
zip = { version = "8.6.0", default-features = false }
quote = "1.0.45"
tracing = "0.1.43"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
naga = { version = "30.0.1", features = ["wgsl-out"] }
wgpu = "30.0.1"
wgpu-profiler = "0.28.0"
egui = "0.36.1"
egui_extras = { version = "0.36.1", default-features = false }
egui-wgpu = "0.36.1"
egui-winit = "0.36.1"
clap = { version = "4.6.1", features = ["derive"] }
clap_complete = "4.6"
cpal = "0.16.0"
anyhow = "1.0"
gc-arena = { version = "0.7.0", features = ["enum-map", "hashbrown", "indexmap", "slotmap", "smallvec"] }
slotmap = "1.1.1"
async-channel = "2.5.0"
bitflags = "2.12.1"
bytemuck = "1.25.0"
chrono = { version = "0.4.44", default-features = false }
enum-map = "2.7.3"
flate2 = "1.1.9"
futures = "0.3.32"
image = { version = "0.25.10", default-features = false }
js-sys = "0.3.97"
web-sys = "0.3.97"
log = "0.4"
num-derive = "0.4.2"
num-traits = "0.2.19"
serde = "1.0.228"
thiserror = "2.0.18"
url = "2.5.8"
quick-xml = "0.37.5"
regress = { git = "https://github.com/ruffle-rs/regras3", rev = "6d48179d6bd448f2cc66b76352c9f048dde968d1" }
# Make sure to match wasm-bindgen-cli version to this everywhere.
wasm-bindgen = "=0.2.127"
walkdir = "2.5.0"
tokio = "1.52.3"
rfd = { version = "0.17.2", default-features = false, features = ["wayland", "xdg-portal"] }
memmap2 = "0.9.10"
libtest-mimic = "0.8.2"
regex = "1.12.3"
reqwest = { version = "0.13.5", default-features = false }
toml = "1.0.6"
toml_edit = "0.25.4"
vfs = "0.13.0"
smallvec = { version = "1.15.1", features = ["const_new", "union"] }
serde_json = "1.0.150"
percent-encoding = "2.3.2"
approx = "0.5.1"
encoding_rs = "0.8.35"
byteorder = "1.5"
bitstream-io = "4.10.0"
indicatif = "0.18"
rayon = "1.12.0"
sha2 = "0.10.9"
indexmap = "2.13.0"
fnv = "1.0.7"
hashbrown = "0.17.1"
fluent-templates = "0.15.1"
lzma-rs = "0.3.0"
tempfile = "3.27.0"
tracing-wasm = "0.2.1"
rascal = "0.3.5"
jpegxr = { git = "https://github.com/ruffle-rs/jpegxr", rev = "86cc1749d493288f53d7290ac3eb7082c475b5d9" }
[workspace.lints.rust]
# Clippy nightly often adds new/buggy lints that we want to ignore.
# Don't warn about these new lints on stable.
renamed_and_removed_lints = "allow"
unknown_lints = "allow"
[workspace.lints.clippy]
# Notice: this is an important lint in Ruffle as we have a lot of trivially
# copyable objects (e.g. Gc pointers). It may produce false positives depending
# on platform.
# In case it happens, add `#[allow(clippy::trivially_copy_pass_by_ref)]` and
# add a comment explaining why.
trivially_copy_pass_by_ref = "deny"
redundant_clone = "deny"
unused_async = "deny"
used_underscore_items = "deny"
dbg_macro = "warn"
enum_glob_use = "deny"
branches_sharing_code = "warn"
needless_pass_by_ref_mut = "warn"
# TODO Enable used_underscore_binding when false positives get fixed.
# LONG-TERM: These lints are unhelpful.
manual_map = "allow" # Less readable: Suggests `opt.map(..)` instead of `if let Some(opt) { .. }`
manual_range_contains = "allow" # Less readable: Suggests `(a..b).contains(n)` instead of `n >= a && n < b`
assigning_clones = "allow" # Sometimes useful, but more often than not it doesn't do anything as
# we overwrite an empty item. And sometimes it can even be a footgun
# by keeping big allocations alive.
byte_char_slices = "allow" # Less expressive: Suggests `b"abc"` byte string literal instead of an explicit
# `[b'a', b'b', b'c']` array. The array form is clearer when the elements
# represent a set of alternatives (any-of) rather than a byte sequence.
# Don't optimize build scripts and macros.
[profile.release.build-override]
opt-level = 0
[profile.dev]
panic = "unwind"
[profile.release]
panic = "abort"
[profile.dist]
inherits = "release"
lto = true
codegen-units = 1
[profile.dev.package.h263-rs]
opt-level = 3
[profile.dev.package.h263-rs-yuv]
opt-level = 3
[profile.dev.package.nihav_core]
opt-level = 3
[profile.dev.package.nihav_codec_support]
opt-level = 3
[profile.dev.package.nihav_duck]
opt-level = 3
# TODO: Set rustflags here instead of in tools/build_wasm.ts, when that
# feature becomes stable. See: https://github.com/rust-lang/cargo/issues/10271
# Until then, these custom profiles let cargo keep the build cache alive
# across "dual-wasm" builds, separating it for the two .wasm modules.
[profile.web-wasm-mvp]
inherits = "release"
[profile.web-wasm-extensions]
inherits = "release"
[profile.ci]
inherits = "release"
debug-assertions = true
overflow-checks = true
# "Not too slow to compile, fast enough to run."
opt-level = 2
# Takes too long, especially on Windows, with marginal benefit otherwise.
lto = "off"
# This is also set with higher authority in `test_rust.yml`.
incremental = true
# Right between the defaults of 16 and 256, for crate fragment caching.
codegen-units = 64