From dda49f6a23a8f3b90c8e445c256bfabf86e376db Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Sun, 3 Mar 2024 17:28:58 +0900 Subject: [PATCH] chore: limit log level to info for release builds Trace and debug logs are mostly useful during development and not needed for release builds. By activacting the `log` crate's feature flag, these levels can be filtered out during compile time. The effects are likely better runtime performance and most notably reduced binary size. --- crates/mabo-lsp/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mabo-lsp/Cargo.toml b/crates/mabo-lsp/Cargo.toml index 05606cd..367bf0e 100644 --- a/crates/mabo-lsp/Cargo.toml +++ b/crates/mabo-lsp/Cargo.toml @@ -14,7 +14,7 @@ anyhow.workspace = true clap.workspace = true directories = "5.0.1" line-index = "0.1.1" -log = { version = "0.4.21", features = ["kv_std", "std"] } +log = { version = "0.4.21", features = ["kv_std", "release_max_level_info", "std"] } lsp-server = "0.7.6" lsp-types = { version = "0.95.0", features = ["proposed"] } mabo-compiler = { path = "../mabo-compiler" }