cargo install *

built-in
43.1% Savings
6 Commands
447 Tokens saved
2 Tests

Install

tokf install bf06baa7131e89be108d7057a17f4ec8edd84671323c36b08a686bf7fff21346
Safety checks passed

Filter definition

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

[on_success]
output = "{output}"

[on_failure]
tail = 10

Examples

installation failure shows error tail ~30 tokens → ~17 tokens (43% saved)
Raw output
    Updating crates.io index
  Downloading crates ...
error: could not find `Cargo.toml` in `/tmp` or any parent directory
Filtered output
error: could not find `Cargo.toml` in `/tmp` or any parent directory
successful install shows installed package line ~59 tokens → ~32 tokens (46% saved)
Raw output
    Updating crates.io index
  Downloading crates ...
  Downloaded ripgrep v14.1.0
   Compiling memchr v2.7.1
   Compiling ripgrep v14.1.0
    Installing ripgrep v14.1.0
     Installed package `ripgrep v14.1.0` at /home/user/.cargo/bin/rg
Filtered output
  Downloaded ripgrep v14.1.0
    Installing ripgrep v14.1.0
     Installed package `ripgrep v14.1.0` at /home/user/.cargo/bin/rg
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters