From 369b9489de337e919bac395eb0526ca016362408 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Sun, 1 Sep 2024 16:04:16 +0800 Subject: [PATCH] perf: statically disable logging in clients --- bin/client-eth/Cargo.lock | 2 ++ bin/client-eth/Cargo.toml | 4 ++++ bin/client-linea/Cargo.lock | 2 ++ bin/client-linea/Cargo.toml | 4 ++++ bin/client-op/Cargo.lock | 2 ++ bin/client-op/Cargo.toml | 4 ++++ 6 files changed, 18 insertions(+) diff --git a/bin/client-eth/Cargo.lock b/bin/client-eth/Cargo.lock index 93ca26b..a7e0d5b 100644 --- a/bin/client-eth/Cargo.lock +++ b/bin/client-eth/Cargo.lock @@ -2584,8 +2584,10 @@ name = "rsp-client-eth" version = "0.0.0" dependencies = [ "bincode", + "log", "rsp-client-executor", "sp1-zkvm", + "tracing", ] [[package]] diff --git a/bin/client-eth/Cargo.toml b/bin/client-eth/Cargo.toml index aa4a4ca..4f51415 100644 --- a/bin/client-eth/Cargo.toml +++ b/bin/client-eth/Cargo.toml @@ -13,6 +13,10 @@ rsp-client-executor = { path = "../../crates/executor/client" } # sp1 sp1-zkvm = "1.2.0-rc2" +# Statically turns off logging +log = { version = "0.4", features = ["max_level_off", "release_max_level_off"] } +tracing = { version = "0.1", features = ["max_level_off", "release_max_level_off"] } + [patch.crates-io] # Precompile patches sha2 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", branch = "patch-v0.10.8", package = "sha2" } diff --git a/bin/client-linea/Cargo.lock b/bin/client-linea/Cargo.lock index d5c888f..6add423 100644 --- a/bin/client-linea/Cargo.lock +++ b/bin/client-linea/Cargo.lock @@ -2616,8 +2616,10 @@ name = "rsp-client-linea" version = "0.0.0" dependencies = [ "bincode", + "log", "rsp-client-executor", "sp1-zkvm", + "tracing", ] [[package]] diff --git a/bin/client-linea/Cargo.toml b/bin/client-linea/Cargo.toml index df80a96..c7b1c19 100644 --- a/bin/client-linea/Cargo.toml +++ b/bin/client-linea/Cargo.toml @@ -13,6 +13,10 @@ rsp-client-executor = { path = "../../crates/executor/client" } # sp1 sp1-zkvm = "1.2.0-rc2" +# Statically turns off logging +log = { version = "0.4", features = ["max_level_off", "release_max_level_off"] } +tracing = { version = "0.1", features = ["max_level_off", "release_max_level_off"] } + [patch.crates-io] # Precompile patches sha2 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", branch = "patch-v0.10.8", package = "sha2" } diff --git a/bin/client-op/Cargo.lock b/bin/client-op/Cargo.lock index 1871e56..c739d01 100644 --- a/bin/client-op/Cargo.lock +++ b/bin/client-op/Cargo.lock @@ -2616,8 +2616,10 @@ name = "rsp-client-op" version = "0.0.0" dependencies = [ "bincode", + "log", "rsp-client-executor", "sp1-zkvm", + "tracing", ] [[package]] diff --git a/bin/client-op/Cargo.toml b/bin/client-op/Cargo.toml index 0e24510..e7c6c2a 100644 --- a/bin/client-op/Cargo.toml +++ b/bin/client-op/Cargo.toml @@ -13,6 +13,10 @@ rsp-client-executor = { path = "../../crates/executor/client" } # sp1 sp1-zkvm = "1.2.0-rc2" +# Statically turns off logging +log = { version = "0.4", features = ["max_level_off", "release_max_level_off"] } +tracing = { version = "0.1", features = ["max_level_off", "release_max_level_off"] } + [patch.crates-io] # Precompile patches sha2 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", branch = "patch-v0.10.8", package = "sha2" }