cargo check

built-in
85.4% Savings
60 Commands
10.7K Tokens saved
2 Tests

Install

tokf install d574b2cb7fcbb85e41284ffdbcd9b753aefe7c4871313f64a894a724e143d3a0
Safety checks passed

Filter definition

command = "cargo check"
skip = [
  "^\\s*Compiling ",
  "^\\s*Downloading ",
  "^\\s*Locking ",
  "^\\s*Updating ",
  "^\\s*Fresh ",
]

[on_success]
output = "✓ cargo check: ok"

[on_failure]
tail = 20

Examples

type error shows compiler output ~85 tokens → ~85 tokens
Raw output
error[E0308]: mismatched types
  --> src/main.rs:42:20
   |
42 |     let x: i32 = "hello";
   |            ---   ^^^^^^^ expected `i32`, found `&str`
   |            |
   |            expected due to this

For more information about this error, try `rustc --explain E0308`.
error: could not compile `tokf` (bin "tokf") due to 1 previous error
Filtered output
error[E0308]: mismatched types
  --> src/main.rs:42:20
   |
42 |     let x: i32 = "hello";
   |            ---   ^^^^^^^ expected `i32`, found `&str`
   |            |
   |            expected due to this

For more information about this error, try `rustc --explain E0308`.
error: could not compile `tokf` (bin "tokf") due to 1 previous error
successful check collapses to single line ~28 tokens → ~4 tokens (86% saved)
Raw output
   Checking tokf v0.1.7 (/home/user/tokf)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.45s
Filtered output
✓ cargo check: ok
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters