Skip to content

Commit

Permalink
chore: limit log level to info for release builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dnaka91 committed Mar 3, 2024
1 parent d94b79a commit dda49f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/mabo-lsp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit dda49f6

Please sign in to comment.