From 3abc5d0058edc97ec33ee5295936240e6f8169b4 Mon Sep 17 00:00:00 2001 From: alexhulbert Date: Mon, 28 Jul 2025 20:45:53 -0400 Subject: [PATCH] Add reproducibility flags --- .cargo/config.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..025120425 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,16 @@ +[build] +rustflags = [ + "-C", "strip=symbols", + "-C", "codegen-units=1", + "-C", "opt-level=3" +] + +[profile.release] +debug = false +lto = "fat" +panic = "abort" +codegen-units = 1 +incremental = false + +[env] +SOURCE_DATE_EPOCH = { value = "0", force = true } \ No newline at end of file