Warn when Cargo is run directly. Fix #3957.

This commit is contained in:
Simon Sapin 2014-11-28 16:40:52 +00:00
parent 2f413c8937
commit ff4877b473
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,9 @@
fn main() {
::std::os::set_exit_status(1);
let _ = ::std::io::stderr().write(br"
This is not the `Cargo.toml` file you're looking for.
Invoke Cargo through mach instead, e.g. `./mach build`.
");
}