-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
25 lines (23 loc) · 855 Bytes
/
Copy pathCargo.toml
File metadata and controls
25 lines (23 loc) · 855 Bytes
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
[workspace]
resolver = "2"
members = [
"crates/rustmotion-core",
"crates/rustmotion-components",
"crates/rustmotion",
"crates/rustmotion-cli",
"crates/rustmotion-studio",
"crates/rustmotion-html",
]
# Optimize dependencies even in dev builds. Our own crates stay at opt-level 0
# (fast incremental + debuggable), but heavy compute in deps (image encoding,
# etc.) runs optimized — without this, `cargo run` image encode is ~20x slower.
# Disabling overflow/debug checks on deps matters as much as opt-level for the
# encode hot loop.
[profile.dev.package."*"]
opt-level = 3
debug-assertions = false
overflow-checks = false
# The image crate's encoders are generic and monomorphize into the calling
# crate, so the studio itself must be optimized for fast preview encoding.
[profile.dev.package.rustmotion-studio]
opt-level = 3