Perforce API for Rust
To include p4-cmd in your project add the following to your Cargo.toml:
[dependencies]
p4-cmd = "0.1"
Now you can use the crate in your code:
extern crate p4_cmd;
Note: This requires the p4
binary to be available.
Why wrap the p4
binary rather than the API?
- The API is in C++ and would require first wrapping in C.
- The API would not be
Sync
, requiring more work to have aSync
API.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.