diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-11-28 16:40:52 +0000 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-12-02 18:03:39 -0800 |
commit | ff4877b4734c5a95921f63bb7b516e06a9223cbe (patch) | |
tree | 5c51f8a88c93bc80a000bcce0a85fb43d55bc64a | |
parent | 2f413c89374493184768e2ee6fe0b35f0ef52994 (diff) | |
download | servo-ff4877b4734c5a95921f63bb7b516e06a9223cbe.tar.gz servo-ff4877b4734c5a95921f63bb7b516e06a9223cbe.zip |
Warn when Cargo is run directly. Fix #3957.
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Cargo.toml | 10 | ||||
-rw-r--r-- | support/not-the-toml-you-re-looking-for.rs | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index e1d648fc948..f0fa1e8f96a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ /.cargo/config +/Cargo.lock +/target /components/servo/target /ports/cef/target /ports/android/bin diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000000..bc186d02ccf --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,10 @@ +[package] + +name = "not-the-toml-you-re-looking-for" +version = "0.0.1" +authors = ["The Servo Project Developers"] + +build = "support/not-the-toml-you-re-looking-for.rs" + +[lib] +name = "not-the-toml-you-re-looking-for" diff --git a/support/not-the-toml-you-re-looking-for.rs b/support/not-the-toml-you-re-looking-for.rs new file mode 100644 index 00000000000..48f75215ced --- /dev/null +++ b/support/not-the-toml-you-re-looking-for.rs @@ -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`. + +"); +} |