P4CLI-20251
A simple Rust library for full-featured P4 (Perforce) CLI with zero pre-install, already battle-tested and mature in production environments, where all errors are propagated via Result without any unwrap.
[]
= "0.5.8"
Synchronous API
Block until the process exits, then inspect the collected output.
use P4Cli;
With timeout, working directory and environment variables via builder:
use P4Cli;
use Duration;
Streaming API
Iterate over raw byte chunks as they arrive. The stream ends with P4StreamEvent::Exit.
use ;
Drop the stream mid-way to cancel the process.
License
This project is licensed under the MIT License — see the LICENSE file for details.
Embedded Perforce Binary
This crate bundles the Perforce (Helix Core) command-line client (p4) binary for each supported platform.
The p4 binary is proprietary software owned by Perforce Software, Inc.
Use of the bundled binary is subject to Perforce's
Master Terms & Conditions and P4 Supplemental Terms.