mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

At the same time, we started adding a generic error handling concept to Cargo. The idea is that every Result gets converted to a CargoError, which includes all the information that Cargo needs to print out a friendly human error message and exit gracefully.
19 lines
291 B
Rust
19 lines
291 B
Rust
#[feature(macro_rules)];
|
|
#[allow(deprecated_owned_vector)];
|
|
|
|
extern crate cargo;
|
|
extern crate hamcrest;
|
|
|
|
macro_rules! test(
|
|
($name:ident $expr:expr) => (
|
|
#[test]
|
|
fn $name() {
|
|
setup();
|
|
$expr;
|
|
}
|
|
)
|
|
)
|
|
|
|
mod support;
|
|
mod test_cargo_compile;
|