From 8790953183903d997e88c3d9f10e8ca6a35b5cb1 Mon Sep 17 00:00:00 2001 From: Quertyy <98064975+Quertyy@users.noreply.github.com> Date: Sun, 6 Jul 2025 23:24:07 +0200 Subject: [PATCH] build: add release and maxperf build profiles --- Cargo.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 78331d3cf..a45fba461 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,19 @@ path = "src/lib.rs" name = "reth-hl" path = "src/main.rs" +[profile.release] +opt-level = 3 +lto = "thin" +debug = "none" +strip = "symbols" +panic = "unwind" +codegen-units = 16 + +[profile.maxperf] +inherits = "release" +lto = "fat" +codegen-units = 1 + [dependencies] reth = { git = "https://github.com/sprites0/reth", rev = "fc754e5983f055365325dc9a04632d5ba2c4a8bc" } reth-cli = { git = "https://github.com/sprites0/reth", rev = "fc754e5983f055365325dc9a04632d5ba2c4a8bc" }