aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2016-07-14 10:26:34 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2016-07-14 10:26:34 -0500
commit62e95c5a6192df4ecc8fd17a25200bb2188795d5 (patch)
tree028686ca0b26185d5512673d796932084e04db4f
parent86b2104f11ce1070818e07728160085914521aa0 (diff)
downloadservo-62e95c5a6192df4ecc8fd17a25200bb2188795d5.tar.gz
servo-62e95c5a6192df4ecc8fd17a25200bb2188795d5.zip
All our Cargo.toml files should contain an MPL-2.0 license field.
-rw-r--r--components/canvas/Cargo.toml1
-rw-r--r--components/canvas_traits/Cargo.toml1
-rw-r--r--components/compositing/Cargo.toml1
-rw-r--r--components/constellation/Cargo.toml1
-rw-r--r--components/devtools/Cargo.toml1
-rw-r--r--components/devtools_traits/Cargo.toml1
-rw-r--r--components/gfx/Cargo.toml1
-rw-r--r--components/gfx_traits/Cargo.toml1
-rw-r--r--components/layout/Cargo.toml1
-rw-r--r--components/layout_thread/Cargo.toml1
-rw-r--r--components/layout_traits/Cargo.toml1
-rw-r--r--components/msg/Cargo.toml1
-rw-r--r--components/net/Cargo.toml1
-rw-r--r--components/net_traits/Cargo.toml1
-rw-r--r--components/plugins/Cargo.toml1
-rw-r--r--components/profile/Cargo.toml1
-rw-r--r--components/profile_traits/Cargo.toml1
-rw-r--r--components/range/Cargo.toml1
-rw-r--r--components/script/Cargo.toml1
-rw-r--r--components/script_layout_interface/Cargo.toml1
-rw-r--r--components/script_traits/Cargo.toml1
-rw-r--r--components/servo/Cargo.toml1
-rw-r--r--components/style/Cargo.toml1
-rw-r--r--components/style_traits/Cargo.toml1
-rw-r--r--components/util/Cargo.toml1
-rw-r--r--components/webdriver_server/Cargo.toml1
-rw-r--r--ports/geckolib/Cargo.toml1
-rw-r--r--ports/geckolib/gecko_bindings/Cargo.toml1
-rw-r--r--ports/geckolib/string_cache/Cargo.toml1
-rw-r--r--ports/glutin/Cargo.toml1
-rw-r--r--python/tidy/servo_tidy/tidy.py4
-rw-r--r--support/android/build-apk/Cargo.toml1
-rw-r--r--tests/compiletest/helper/Cargo.toml1
-rw-r--r--tests/compiletest/plugin/Cargo.toml1
-rw-r--r--tests/unit/gfx/Cargo.toml1
-rw-r--r--tests/unit/layout/Cargo.toml1
-rw-r--r--tests/unit/net/Cargo.toml1
-rw-r--r--tests/unit/net_traits/Cargo.toml1
-rw-r--r--tests/unit/profile/Cargo.toml1
-rw-r--r--tests/unit/script/Cargo.toml1
-rw-r--r--tests/unit/style/Cargo.toml1
-rw-r--r--tests/unit/util/Cargo.toml1
42 files changed, 45 insertions, 0 deletions
diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml
index 3a677000fac..e9803a764d5 100644
--- a/components/canvas/Cargo.toml
+++ b/components/canvas/Cargo.toml
@@ -2,6 +2,7 @@
name = "canvas"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/canvas_traits/Cargo.toml b/components/canvas_traits/Cargo.toml
index 8f296474f86..899e0eaf397 100644
--- a/components/canvas_traits/Cargo.toml
+++ b/components/canvas_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "canvas_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/compositing/Cargo.toml b/components/compositing/Cargo.toml
index 404afba0712..6ffc18fa6bf 100644
--- a/components/compositing/Cargo.toml
+++ b/components/compositing/Cargo.toml
@@ -2,6 +2,7 @@
name = "compositing"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/constellation/Cargo.toml b/components/constellation/Cargo.toml
index 67b95ba93e7..bb6548d1e64 100644
--- a/components/constellation/Cargo.toml
+++ b/components/constellation/Cargo.toml
@@ -2,6 +2,7 @@
name = "constellation"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/devtools/Cargo.toml b/components/devtools/Cargo.toml
index 4b4290d3c74..1a9b821d8ae 100644
--- a/components/devtools/Cargo.toml
+++ b/components/devtools/Cargo.toml
@@ -2,6 +2,7 @@
name = "devtools"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/devtools_traits/Cargo.toml b/components/devtools_traits/Cargo.toml
index 6150f349c5a..20626fcab5c 100644
--- a/components/devtools_traits/Cargo.toml
+++ b/components/devtools_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "devtools_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml
index cfd7d7e82ec..ab66071626d 100644
--- a/components/gfx/Cargo.toml
+++ b/components/gfx/Cargo.toml
@@ -3,6 +3,7 @@
name = "gfx"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/gfx_traits/Cargo.toml b/components/gfx_traits/Cargo.toml
index 7c7de90374c..37a7a592c72 100644
--- a/components/gfx_traits/Cargo.toml
+++ b/components/gfx_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "gfx_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/layout/Cargo.toml b/components/layout/Cargo.toml
index 05f9fcda82c..3add6b14976 100644
--- a/components/layout/Cargo.toml
+++ b/components/layout/Cargo.toml
@@ -2,6 +2,7 @@
name = "layout"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/layout_thread/Cargo.toml b/components/layout_thread/Cargo.toml
index 6e1bc891d98..4c5393f0223 100644
--- a/components/layout_thread/Cargo.toml
+++ b/components/layout_thread/Cargo.toml
@@ -2,6 +2,7 @@
name = "layout_thread"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/layout_traits/Cargo.toml b/components/layout_traits/Cargo.toml
index a352569860e..ff250314d49 100644
--- a/components/layout_traits/Cargo.toml
+++ b/components/layout_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "layout_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/msg/Cargo.toml b/components/msg/Cargo.toml
index 72359201734..0b47f9a885c 100644
--- a/components/msg/Cargo.toml
+++ b/components/msg/Cargo.toml
@@ -2,6 +2,7 @@
name = "msg"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/net/Cargo.toml b/components/net/Cargo.toml
index 2ee5e73bbba..9cb6ecfc5de 100644
--- a/components/net/Cargo.toml
+++ b/components/net/Cargo.toml
@@ -2,6 +2,7 @@
name = "net"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/net_traits/Cargo.toml b/components/net_traits/Cargo.toml
index ed75fabb7f4..3ce61c9d303 100644
--- a/components/net_traits/Cargo.toml
+++ b/components/net_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "net_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/plugins/Cargo.toml b/components/plugins/Cargo.toml
index c60cc48b779..d60e535bfaf 100644
--- a/components/plugins/Cargo.toml
+++ b/components/plugins/Cargo.toml
@@ -2,6 +2,7 @@
name = "plugins"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/profile/Cargo.toml b/components/profile/Cargo.toml
index 657688b6b62..7532de19136 100644
--- a/components/profile/Cargo.toml
+++ b/components/profile/Cargo.toml
@@ -2,6 +2,7 @@
name = "profile"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/profile_traits/Cargo.toml b/components/profile_traits/Cargo.toml
index 42d5ada6c75..5e6d0890b64 100644
--- a/components/profile_traits/Cargo.toml
+++ b/components/profile_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "profile_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/range/Cargo.toml b/components/range/Cargo.toml
index 0174b93b906..c3573de6515 100644
--- a/components/range/Cargo.toml
+++ b/components/range/Cargo.toml
@@ -3,6 +3,7 @@
name = "range"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml
index fa2d75c633d..0640fb17f60 100644
--- a/components/script/Cargo.toml
+++ b/components/script/Cargo.toml
@@ -2,6 +2,7 @@
name = "script"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
build = "build.rs"
diff --git a/components/script_layout_interface/Cargo.toml b/components/script_layout_interface/Cargo.toml
index 41c1f6e2598..d4a71804900 100644
--- a/components/script_layout_interface/Cargo.toml
+++ b/components/script_layout_interface/Cargo.toml
@@ -2,6 +2,7 @@
name = "script_layout_interface"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/script_traits/Cargo.toml b/components/script_traits/Cargo.toml
index 8df51d11d6e..67a229cbb80 100644
--- a/components/script_traits/Cargo.toml
+++ b/components/script_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "script_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml
index 94d105babd6..ba9279d35fc 100644
--- a/components/servo/Cargo.toml
+++ b/components/servo/Cargo.toml
@@ -3,6 +3,7 @@
name = "servo"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
build = "build.rs"
publish = false
diff --git a/components/style/Cargo.toml b/components/style/Cargo.toml
index d20d529b93b..c9a1da6fccf 100644
--- a/components/style/Cargo.toml
+++ b/components/style/Cargo.toml
@@ -2,6 +2,7 @@
name = "style"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
build = "build.rs"
diff --git a/components/style_traits/Cargo.toml b/components/style_traits/Cargo.toml
index 18f05f72d0a..6332f6f6509 100644
--- a/components/style_traits/Cargo.toml
+++ b/components/style_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "style_traits"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/util/Cargo.toml b/components/util/Cargo.toml
index b9954763d24..c713aac2957 100644
--- a/components/util/Cargo.toml
+++ b/components/util/Cargo.toml
@@ -2,6 +2,7 @@
name = "util"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/components/webdriver_server/Cargo.toml b/components/webdriver_server/Cargo.toml
index 996d517a531..693c7981f82 100644
--- a/components/webdriver_server/Cargo.toml
+++ b/components/webdriver_server/Cargo.toml
@@ -2,6 +2,7 @@
name = "webdriver_server"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/ports/geckolib/Cargo.toml b/ports/geckolib/Cargo.toml
index 502fbe9b6c2..8c93b0a7177 100644
--- a/ports/geckolib/Cargo.toml
+++ b/ports/geckolib/Cargo.toml
@@ -2,6 +2,7 @@
name = "geckoservo"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
build = "build.rs"
diff --git a/ports/geckolib/gecko_bindings/Cargo.toml b/ports/geckolib/gecko_bindings/Cargo.toml
index fab9a1e9bd5..ac2315b225d 100644
--- a/ports/geckolib/gecko_bindings/Cargo.toml
+++ b/ports/geckolib/gecko_bindings/Cargo.toml
@@ -2,6 +2,7 @@
name = "gecko_bindings"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/ports/geckolib/string_cache/Cargo.toml b/ports/geckolib/string_cache/Cargo.toml
index 9dce0fc8f89..864afbfce3a 100644
--- a/ports/geckolib/string_cache/Cargo.toml
+++ b/ports/geckolib/string_cache/Cargo.toml
@@ -3,6 +3,7 @@ name = "string_cache"
description = "A crate to allow using Gecko's nsIAtom as a replacement for string_cache."
version = "0.2.20"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
publish = false
[lib]
diff --git a/ports/glutin/Cargo.toml b/ports/glutin/Cargo.toml
index 8203e510503..22e3a41c526 100644
--- a/ports/glutin/Cargo.toml
+++ b/ports/glutin/Cargo.toml
@@ -2,6 +2,7 @@
name = "glutin_app"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "glutin_app"
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index 093e8f3aeee..23140de9987 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -295,9 +295,13 @@ duplicate versions for package "{package}"
def check_toml(file_name, lines):
if not file_name.endswith(".toml"):
raise StopIteration
+ mpl_licensed = False
for idx, line in enumerate(lines):
if line.find("*") != -1:
yield (idx + 1, "found asterisk instead of minimum version number")
+ mpl_licensed |= ('license = "MPL-2.0"' in line)
+ if not mpl_licensed:
+ yield (0, ".toml file should contain MPL-2.0 license.")
def check_rust(file_name, lines):
diff --git a/support/android/build-apk/Cargo.toml b/support/android/build-apk/Cargo.toml
index c50da011cce..60aa8286743 100644
--- a/support/android/build-apk/Cargo.toml
+++ b/support/android/build-apk/Cargo.toml
@@ -3,6 +3,7 @@
name = "build-apk"
version = "0.0.1"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>", "The Servo Project Developers"]
+license = "MPL-2.0"
[[bin]]
name = "build-apk"
diff --git a/tests/compiletest/helper/Cargo.toml b/tests/compiletest/helper/Cargo.toml
index 22cb0472aa4..d44e109fec1 100644
--- a/tests/compiletest/helper/Cargo.toml
+++ b/tests/compiletest/helper/Cargo.toml
@@ -2,6 +2,7 @@
name = "compiletest_helper"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "compiletest_helper"
diff --git a/tests/compiletest/plugin/Cargo.toml b/tests/compiletest/plugin/Cargo.toml
index dd89ac5af6f..453905b9d4f 100644
--- a/tests/compiletest/plugin/Cargo.toml
+++ b/tests/compiletest/plugin/Cargo.toml
@@ -2,6 +2,7 @@
name = "plugin_compiletest"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "plugin_compiletest"
diff --git a/tests/unit/gfx/Cargo.toml b/tests/unit/gfx/Cargo.toml
index 385cb017646..6a3ad210458 100644
--- a/tests/unit/gfx/Cargo.toml
+++ b/tests/unit/gfx/Cargo.toml
@@ -2,6 +2,7 @@
name = "gfx_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "gfx_tests"
diff --git a/tests/unit/layout/Cargo.toml b/tests/unit/layout/Cargo.toml
index 8b554b144ef..283964447d2 100644
--- a/tests/unit/layout/Cargo.toml
+++ b/tests/unit/layout/Cargo.toml
@@ -2,6 +2,7 @@
name = "layout_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "layout_tests"
diff --git a/tests/unit/net/Cargo.toml b/tests/unit/net/Cargo.toml
index b8027ccc93b..77da7edc652 100644
--- a/tests/unit/net/Cargo.toml
+++ b/tests/unit/net/Cargo.toml
@@ -2,6 +2,7 @@
name = "net_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "net_tests"
diff --git a/tests/unit/net_traits/Cargo.toml b/tests/unit/net_traits/Cargo.toml
index c39f818a207..28da0a1d7c0 100644
--- a/tests/unit/net_traits/Cargo.toml
+++ b/tests/unit/net_traits/Cargo.toml
@@ -2,6 +2,7 @@
name = "net_traits_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "net_traits_tests"
diff --git a/tests/unit/profile/Cargo.toml b/tests/unit/profile/Cargo.toml
index 57f625b2e74..f8f9b8de25e 100644
--- a/tests/unit/profile/Cargo.toml
+++ b/tests/unit/profile/Cargo.toml
@@ -2,6 +2,7 @@
name = "profile_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "profile_tests"
diff --git a/tests/unit/script/Cargo.toml b/tests/unit/script/Cargo.toml
index a851b3666f1..0d784863261 100644
--- a/tests/unit/script/Cargo.toml
+++ b/tests/unit/script/Cargo.toml
@@ -2,6 +2,7 @@
name = "script_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "script_tests"
diff --git a/tests/unit/style/Cargo.toml b/tests/unit/style/Cargo.toml
index 8063e1a5b8d..ca9cfe780c4 100644
--- a/tests/unit/style/Cargo.toml
+++ b/tests/unit/style/Cargo.toml
@@ -2,6 +2,7 @@
name = "style_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "style_tests"
diff --git a/tests/unit/util/Cargo.toml b/tests/unit/util/Cargo.toml
index 6a7bfa244b8..28e5415f417 100644
--- a/tests/unit/util/Cargo.toml
+++ b/tests/unit/util/Cargo.toml
@@ -2,6 +2,7 @@
name = "util_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
+license = "MPL-2.0"
[lib]
name = "util_tests"