cargo build

built-in
88.5% Savings
63 Commands
13.7K Tokens saved
2 Tests

Install

tokf install f408c3e6e9b5fa0687e7e50f6dbd3940c50a7904d93a8880d2f42db9c34c9337
Safety checks passed

Filter definition

command = "cargo build"
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