-
Notifications
You must be signed in to change notification settings - Fork 68
/
Cargo.toml
43 lines (37 loc) · 1.16 KB
/
Cargo.toml
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 = [
"ui",
"lib/nvim-rs",
"lib/flatpak-helper",
]
# For addition information about build profies, see
# https://doc.rust-lang.org/cargo/reference/profiles.html
# Release build with full debug symbols for backtraces and interactive
# debugger sessions etc.
[profile.release-debug]
inherits = "release"
debug = true
# When compared to the 'release' profile, this reduces the code size by ~45% at
# the cost of increasing build times by ~10%. Should increase runtime
# performance somewhat too.
[profile.optimized]
inherits = "release"
lto = true
codegen-units = 1
# Full debug info and runtime checks, but otherwise with max code performance.
# This can be useful for debugging issues if the normal 'dev' build profile
# generates code which is either too slow to use, or which changes behaviour
# with respect to runtime race conditions.
[profile.optimized-debug]
inherits = "dev"
opt-level = 3
lto = true
codegen-units = 1
incremental = false
# Enable small amount of optimizations for dev builds.
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies even on dev builds.
[profile.dev.package."*"]
opt-level = 3