[workspace]
members = [
    "anime",
    "anup",
]

[profile.release]
lto = true
codegen-units = 1
panic = "abort"

[profile.release.package.syn]
opt-level = 0
codegen-units = 256

[profile.release.package.quote]
opt-level = 0
codegen-units = 256

[profile.release.package.proc-macro2]
opt-level = 0
codegen-units = 256

[profile.release.package.serde_derive]
opt-level = 0
codegen-units = 256

[profile.release.package.enum_dispatch]
opt-level = 0
codegen-units = 256

[profile.release.package.diesel_derives]
opt-level = 0
codegen-units = 256

[profile.release.package.thiserror-impl]
opt-level = 0
codegen-units = 256
[workspace]
members = [
    "anime",
    "anup",
]

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"

[profile.release.package.syn]
opt-level = 0
codegen-units = 256

[profile.release.package.quote]
opt-level = 0
codegen-units = 256

[profile.release.package.proc-macro2]
opt-level = 0
codegen-units = 256

[profile.release.package.serde_derive]
opt-level = 0
codegen-units = 256

[profile.release.package.enum_dispatch]
opt-level = 0
codegen-units = 256

[profile.release.package.diesel_derives]
opt-level = 0
codegen-units = 256

[profile.release.package.thiserror-impl]
opt-level = 0
codegen-units = 256
Use thin LTO to further improve release build times
Use thin LTO to further improve release build times

In addition to improving build times, this can also generate better code over full LTO in some cases.
On my Ryzen 3700x, this brings the build time down from 55 seconds to 45 seconds.
