Development / Binary File Size

Release Profiles

# Build binary with dev profile
cargo build
# Build binary with release profile
cargo build --release

Release Profiles

For more information about release profiles, please refer to:

Optimization Levels

For more information about rust compiler optimization levels, please have a look at

Strip Symbols

For more information about strip symbols, please see

Application (exe)

[profile.dev]
opt-level = 0

[profile.release]
opt-level = 3
# 12MB -> 7.8MB
lto = true
# 7.8MB -> 4.5MB
strip = "symbols"

Plugin (.so/.dll)

[profile.dev]
opt-level = 0

[profile.release]
opt-level = 3
# 12MB -> 7.8MB
lto = true
# 7.8MB -> 4.5MB
strip = "symbols"