aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Cargo.toml10
-rw-r--r--support/not-the-toml-you-re-looking-for.rs9
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`.
+
+");
+}