cargo check

built-in
82.1% Savings
79 Commands
17.1K Tokens saved
2 Tests

Install

tokf install 08dfc664140a7608dbba98c570ceeeb59a2be55ccb388f01f9d81091f90ff648
Safety checks passed

Filter definition

command = "cargo check"
description = "Strip compile progress; show diagnostics only"
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