Skip to content

Commit a0ad162

Browse files
maxholmanclaude
andcommitted
fix(build): disable tracing default features, cap at debug level
Drop tracing-attributes proc macro (no #[instrument] usage) and compile out trace!() calls via release_max_level_debug. Debug level remains available for --debug flag. Saves ~254KB in slim binary, bringing it back under 5MiB. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 170744f commit a0ad162

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pedantic = "warn"
1111
[workspace.dependencies]
1212
arc-swap = "1"
1313
tokio = { version = "1.0" }
14-
tracing = "0.1"
14+
tracing = { version = "0.1", default-features = false, features = ["std", "release_max_level_debug"] }
1515
thiserror = "2"
1616
console-subscriber = "0.4"
1717
parking_lot = "0.12"

0 commit comments

Comments
 (0)