[−][src]Crate escargot
Escargot: A Cargo API
Install
Add to your Cargo.toml:
[dependencies]
escargot = "0.4"
Features:
printfor logged output to be printed instead, generally for test writing.
Why escargot
Compared to depending on cargo:
- Faster compile times.
- Simpler API.
- Better interop with projects relying on other cargo versions.
- Probably slower execution, especially on platforms without an optimized
fork(e.g. Windows).
Relevant crates
Other related crates:
- cargo for the real thing
- cargo-metadata for a similar project specifically geared to the
metadatasubcommand.
Example
escargot::CargoBuild::new() .bin("bin_fixture") .current_release() .current_target() .exec() .unwrap();
Modules
| error | Error reporting API. |
| format | Serialization formats for cargo messages. |
Structs
| Cargo | Top-level command. |
| CargoBuild | The |
| CargoRun | The |
| Message | An individual message from a cargo sub-command. |
| MessageIter | Messages returned from a cargo sub-command. |
Constants
| CURRENT_TARGET | The current process' target triplet. |