Cargo.toml: turn lto off for dev profile

Turning on opt-level=1 is necessary to make things reasonably fast, but
it also turns on lto which since thinlto became enabled by default slows
down compile times by a factor of 2 compared to lto off.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1817>
This commit is contained in:
Mathieu Duponchelle 2024-09-24 16:29:33 +02:00 committed by Backport Bot
parent a5a40e75d0
commit 41ec80bf8c

View file

@ -111,6 +111,7 @@ panic = 'unwind'
[profile.dev]
opt-level = 1
lto = "off"
[workspace.package]
version = "0.12.9"