From 1aea692a3dcf6cfd74815319185352d1ca8191bf Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 25 Sep 2024 10:00:04 +0200 Subject: [PATCH] Make rust build deterministic See https://reproducible-builds.org/ for why this is good. --- native/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/native/Cargo.toml b/native/Cargo.toml index 3a0b79f7e..52fb9f254 100644 --- a/native/Cargo.toml +++ b/native/Cargo.toml @@ -4,3 +4,9 @@ members = [ "libcst", "libcst_derive", ] + +# needed for reproducible builds from some hard-to-grasp issue in rust or LLVM +# = https://github.com/rust-lang/rust/issues/128675 +[profile.release] +codegen-units = 1 +lto = false