cargo install *

built-in
14.7% Savings
1 Commands
17 Tokens saved
2 Tests

Install

tokf install 727e7ed95e11b994a85f3395b7d74c18faa84f5adc884574f2a4ddc583f56f62
Safety checks passed

Filter definition

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

[on_success]
tail = 5

[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