From 11116f07a03340041998858312de2a09a2948201 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Wed, 19 Apr 2023 00:53:30 +0200 Subject: [PATCH] Smaller binary using LTO --- Cargo.lock | 2 +- Cargo.toml | 6 ++++++ runtime/Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed8934f5..0d1e7ea0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2936,7 +2936,7 @@ dependencies = [ [[package]] name = "ya-runtime-vm" -version = "0.3.3" +version = "0.3.4" dependencies = [ "anyhow", "bollard-stubs", diff --git a/Cargo.toml b/Cargo.toml index af558076..6f3547cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,9 @@ members = [ [patch.crates-io] ya-runtime-sdk = { git = "https://github.com/golemfactory/ya-runtime-sdk.git", rev = "f542b9219f163a52b9783c2c8c42e3da6dd3eb39" } ya-runtime-api = { git = "https://github.com/golemfactory/yagna.git", rev = "2222cadeed58ecc44295092fcb0bc9ffba8a3722"} + +[profile.release] +codegen-units = 1 +lto = "fat" +opt-level = 3 +panic ="abort" diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 4d3bae4e..795a4f28 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ya-runtime-vm" -version = "0.3.3" +version = "0.3.4" authors = ["Golem Factory "] edition = "2021" license = "GPL-3.0"