-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
43 lines (35 loc) · 1.15 KB
/
Cargo.toml
File metadata and controls
43 lines (35 loc) · 1.15 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
[workspace]
resolver= "2"
members = ["orchestrator", "embedcore", "cyber-bevy", "definitions"]
exclude = ["stepper-ch32v305"]
# TODO maybe move profiles to .cargo/config.toml so they don't conflict here?
# https://stackoverflow.com/a/73759353
#[cyber-bevy]
[profile.dev]
opt-level = 1
#[cyber-bevy] Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3
#[cyber-bevy] Enable more optimization in the release profile at the cost of compile time.
[profile.release]
codegen-units = 1
lto = "thin"
opt-level = "z"
strip = "debuginfo"
#[cyber-bevy] particular optimization for wasm
[profile.wasm-release]
inherits = "release"
opt-level = "s"
strip = "debuginfo"
#[cyber-bevy] patches for zune jpeg
[patch.crates-io]
zune-jpeg = { git = "https://github.com/etemesi254/zune-image", branch = "zune-jpeg-4.12"}
[patch."https://github.com/etemesi254/zune-image"]
zune-core = "0.4.12"
#[embedcore] old stuff not needed
# [profile.release]
# strip = false # symbols are not flashed to the microcontroller, so don't strip them.
# lto = true
# opt-level = "z" # Optimize for size.
# #incremental = false
# codegen-units = 1