cargo build

built-in
91.7% Savings
117 Commands
18.4K Tokens saved
2 Tests

Install

tokf install 1c3eedd4a5a56a7c255c187ed9d3fdd0150f6581f0af33f231589b6a5c4234b5
Safety checks passed

Filter definition

command = "cargo build"
description = "Strip compile progress; show warnings and errors only"
skip = [
  "^   Compiling ",
  "^    Checking ",
  "^    Updating ",
  "^   Downloaded ",
  "^  Downloading ",
  "^     Locking ",
]

[on_success]
output = "ok ✓"

[on_failure]
tail = 30

Examples

failure output shows error lines ~52 tokens → ~41 tokens (21% saved)
Raw output
   Compiling tokf v0.1.0 (/Users/user/project)
error[E0425]: cannot find value `foo` in this scope
 --> src/main.rs:5:5
  |
5 |     foo;
  |     ^^^ not found in this scope

error: aborting due to previous error
Filtered output
error[E0425]: cannot find value `foo` in this scope
 --> src/main.rs:5:5
  |
5 |     foo;
  |     ^^^ not found in this scope

error: aborting due to previous error
success output is a single clean line with no compile noise ~36 tokens → ~1 tokens (97% saved)
Raw output
   Compiling tokf v0.1.0 (/Users/user/project)
    Checking serde v1.0.0
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.34s
Filtered output
ok ✓
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters