mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Warn when Cargo is run directly. Fix #3957.
This commit is contained in:
parent
2f413c8937
commit
ff4877b473
3 changed files with 21 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
||||||
/.cargo/config
|
/.cargo/config
|
||||||
|
/Cargo.lock
|
||||||
|
/target
|
||||||
/components/servo/target
|
/components/servo/target
|
||||||
/ports/cef/target
|
/ports/cef/target
|
||||||
/ports/android/bin
|
/ports/android/bin
|
||||||
|
|
10
Cargo.toml
Normal file
10
Cargo.toml
Normal file
|
@ -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"
|
9
support/not-the-toml-you-re-looking-for.rs
Normal file
9
support/not-the-toml-you-re-looking-for.rs
Normal 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`.
|
||||||
|
|
||||||
|
");
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue