Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (48 loc) · 1.55 KB
/
Copy pathCargo.toml
File metadata and controls
58 lines (48 loc) · 1.55 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
[workspace]
members = [
"crates/benchup-core",
"crates/benchup-io",
"crates/benchup-skp",
"crates/benchup-tools",
"crates/benchup-cli",
"crates/benchup-app",
]
default-members = ["crates/benchup-app"]
resolver = "2"
[workspace.package]
version = "0.7.3"
edition = "2024"
license = "MIT"
rust-version = "1.95"
[workspace.dependencies]
serde = { version = "1", features = ["derive", "rc"] }
serde_json = { version = "1", features = ["float_roundtrip"] }
glam = { version = "0.32", features = ["serde"] }
# Keep the development UI responsive without disabling debugger symbols,
# debug assertions, or overflow checks. Optimize third-party rendering/UI code
# more heavily than frequently edited application code.
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 2
# Avoid mismatched anon.*.llvm.* symbols from reused app codegen units when
# linking WebAssembly after edits. Keep dependency caching and debug settings.
[profile.dev.package.benchup-app]
incremental = false
[profile.dev.package.benchup-core]
opt-level = 2
# Desktop edits can reuse application codegen units without the WebAssembly
# linker workaround above. Retain the same optimization and debug settings.
[profile.dev-desktop]
inherits = "dev"
[profile.dev-desktop.package.benchup-app]
incremental = true
[profile.release]
opt-level = 2
lto = "thin"
# Release-safety tests keep release assertions/overflow behavior, while avoiding
# whole-program LTO and expensive optimization of a second application binary.
[profile.ci-test]
inherits = "release"
opt-level = 1
lto = "off"