All our Cargo.toml files should contain an MPL-2.0 license field.

This commit is contained in:
Alan Jeffrey 2016-07-14 10:26:34 -05:00
parent 86b2104f11
commit 62e95c5a61
42 changed files with 45 additions and 0 deletions

View file

@ -2,6 +2,7 @@
name = "canvas" name = "canvas"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "canvas_traits" name = "canvas_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "compositing" name = "compositing"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "constellation" name = "constellation"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "devtools" name = "devtools"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "devtools_traits" name = "devtools_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -3,6 +3,7 @@
name = "gfx" name = "gfx"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "gfx_traits" name = "gfx_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "layout" name = "layout"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "layout_thread" name = "layout_thread"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "layout_traits" name = "layout_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "msg" name = "msg"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "net" name = "net"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "net_traits" name = "net_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "plugins" name = "plugins"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "profile" name = "profile"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "profile_traits" name = "profile_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -3,6 +3,7 @@
name = "range" name = "range"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "script" name = "script"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
build = "build.rs" build = "build.rs"

View file

@ -2,6 +2,7 @@
name = "script_layout_interface" name = "script_layout_interface"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "script_traits" name = "script_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -3,6 +3,7 @@
name = "servo" name = "servo"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
build = "build.rs" build = "build.rs"
publish = false publish = false

View file

@ -2,6 +2,7 @@
name = "style" name = "style"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
build = "build.rs" build = "build.rs"

View file

@ -2,6 +2,7 @@
name = "style_traits" name = "style_traits"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "util" name = "util"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "webdriver_server" name = "webdriver_server"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "geckoservo" name = "geckoservo"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
build = "build.rs" build = "build.rs"

View file

@ -2,6 +2,7 @@
name = "gecko_bindings" name = "gecko_bindings"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -3,6 +3,7 @@ name = "string_cache"
description = "A crate to allow using Gecko's nsIAtom as a replacement for string_cache." description = "A crate to allow using Gecko's nsIAtom as a replacement for string_cache."
version = "0.2.20" version = "0.2.20"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false publish = false
[lib] [lib]

View file

@ -2,6 +2,7 @@
name = "glutin_app" name = "glutin_app"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "glutin_app" name = "glutin_app"

View file

@ -295,9 +295,13 @@ duplicate versions for package "{package}"
def check_toml(file_name, lines): def check_toml(file_name, lines):
if not file_name.endswith(".toml"): if not file_name.endswith(".toml"):
raise StopIteration raise StopIteration
mpl_licensed = False
for idx, line in enumerate(lines): for idx, line in enumerate(lines):
if line.find("*") != -1: if line.find("*") != -1:
yield (idx + 1, "found asterisk instead of minimum version number") 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): def check_rust(file_name, lines):

View file

@ -3,6 +3,7 @@
name = "build-apk" name = "build-apk"
version = "0.0.1" version = "0.0.1"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>", "The Servo Project Developers"] authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>", "The Servo Project Developers"]
license = "MPL-2.0"
[[bin]] [[bin]]
name = "build-apk" name = "build-apk"

View file

@ -2,6 +2,7 @@
name = "compiletest_helper" name = "compiletest_helper"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "compiletest_helper" name = "compiletest_helper"

View file

@ -2,6 +2,7 @@
name = "plugin_compiletest" name = "plugin_compiletest"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "plugin_compiletest" name = "plugin_compiletest"

View file

@ -2,6 +2,7 @@
name = "gfx_tests" name = "gfx_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "gfx_tests" name = "gfx_tests"

View file

@ -2,6 +2,7 @@
name = "layout_tests" name = "layout_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "layout_tests" name = "layout_tests"

View file

@ -2,6 +2,7 @@
name = "net_tests" name = "net_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "net_tests" name = "net_tests"

View file

@ -2,6 +2,7 @@
name = "net_traits_tests" name = "net_traits_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "net_traits_tests" name = "net_traits_tests"

View file

@ -2,6 +2,7 @@
name = "profile_tests" name = "profile_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "profile_tests" name = "profile_tests"

View file

@ -2,6 +2,7 @@
name = "script_tests" name = "script_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "script_tests" name = "script_tests"

View file

@ -2,6 +2,7 @@
name = "style_tests" name = "style_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "style_tests" name = "style_tests"

View file

@ -2,6 +2,7 @@
name = "util_tests" name = "util_tests"
version = "0.0.1" version = "0.0.1"
authors = ["The Servo Project Developers"] authors = ["The Servo Project Developers"]
license = "MPL-2.0"
[lib] [lib]
name = "util_tests" name = "util_tests"