| Crates.io | drainpipe |
| lib.rs | drainpipe |
| version | 0.1.0 |
| created_at | 2025-09-23 19:34:49.602964+00 |
| updated_at | 2025-09-23 19:34:49.602964+00 |
| description | Buffer a stream and flush the tail on exit (lines/time/bytes), with passthrough and signal handling. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1851990 |
| size | 30,345 |
A small Rust CLI that buffers stdin and flushes the tail on exit.
-n), time window (-t), or total bytes (-b)-p)-o)--prefix-time[=<fmt>])--max-line-bytes, --truncate-suffix)cargo build --release
cat log.txt | target/release/drainpipe -n 200
myproc | target/release/drainpipe -t 10s -p
myproc | target/release/drainpipe -b 1M -o out.txt --prefix-time