kanidm: allow dead code warnings

This commit is contained in:
K900 2024-07-26 09:54:26 +03:00
parent 0481587e35
commit bb292ebc85

View File

@ -71,6 +71,9 @@ rustPlatform.buildRustPackage rec {
cp -r server/web_ui/pkg $out/ui
'';
# Otherwise build breaks on some unused code
env.RUSTFLAGS = "-A dead_code";
# Not sure what pathological case it hits when compiling tests with LTO,
# but disabling it takes the total `cargo check` time from 40 minutes to
# around 5 on a 16-core machine.