-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
39 lines (35 loc) · 1.65 KB
/
Copy pathCargo.toml
File metadata and controls
39 lines (35 loc) · 1.65 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
[workspace]
resolver = "2"
members = [
"crates/rustmotion-core",
"crates/rustmotion-components",
"crates/rustmotion",
"crates/rustmotion-studio",
"crates/rustmotion-html",
]
# Les cinq crates avancent ensemble. La version se change ici, et nulle part
# ailleurs : elle était auparavant répétée dix fois — une par manifeste, plus une
# par dépendance interne — et une seule oubliée fait échouer la publication après
# que les précédentes soient parties, ce qui ne se rattrape pas.
[workspace.package]
version = "0.7.0"
# Les dépendances internes portent aussi la version, donc elles se déclarent ici
# pour la même raison. `path` sert au développement, `version` à ce que cargo
# écrit dans le paquet publié : les deux doivent coexister, et rester d'accord.
[workspace.dependencies]
rustmotion-core = { path = "crates/rustmotion-core", version = "0.7.0" }
rustmotion-components = { path = "crates/rustmotion-components", version = "0.7.0" }
rustmotion-html = { path = "crates/rustmotion-html", version = "0.7.0" }
# 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