From 4a36fcd56705ae1fe8c166508719dfee8610f9e8 Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Thu, 13 Jun 2024 10:27:54 -0400 Subject: [PATCH] disable logging for release builds (#213) --- evm-template/runtime/Cargo.toml | 4 ++++ generic-template/runtime/Cargo.toml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/evm-template/runtime/Cargo.toml b/evm-template/runtime/Cargo.toml index d7f9bd5..fb53086 100644 --- a/evm-template/runtime/Cargo.toml +++ b/evm-template/runtime/Cargo.toml @@ -251,3 +251,7 @@ try-runtime = [ ] experimental = [ "pallet-aura/experimental" ] +# A feature that should be enabled when the runtime should be built for on-chain +# deployment. This will disable stuff that shouldn't be part of the on-chain wasm +# to make it smaller, like logging for example. +on-chain-release-build = [ "sp-api/disable-logging" ] diff --git a/generic-template/runtime/Cargo.toml b/generic-template/runtime/Cargo.toml index e76742f..e6d3be4 100644 --- a/generic-template/runtime/Cargo.toml +++ b/generic-template/runtime/Cargo.toml @@ -224,3 +224,7 @@ try-runtime = [ ] experimental = [ "pallet-aura/experimental" ] +# A feature that should be enabled when the runtime should be built for on-chain +# deployment. This will disable stuff that shouldn't be part of the on-chain wasm +# to make it smaller, like logging for example. +on-chain-release-build = [ "sp-api/disable-logging" ]