Auto merge of #15670 - nox:die-plugins-die, r=Manishearth

Kill the plugins crate and its clippy support

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15670)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-02-21 05:15:15 -08:00 committed by GitHub
commit 14bbe9d872
52 changed files with 9 additions and 219 deletions

View file

@ -19,7 +19,6 @@ ipc-channel = "0.7"
log = "0.3.5"
num-traits = "0.1.32"
offscreen_gl_context = "0.6"
plugins = {path = "../plugins"}
servo_config = {path = "../config"}
[dependencies.webrender_traits]

View file

@ -2,9 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]
extern crate azure;

View file

@ -15,7 +15,6 @@ euclid = "0.11"
heapsize = "0.3.0"
heapsize_derive = "0.1"
ipc-channel = "0.7"
plugins = {path = "../plugins"}
serde = {version = "0.9", features = ["unstable"]}
serde_derive = "0.9"

View file

@ -4,8 +4,6 @@
#![crate_name = "canvas_traits"]
#![crate_type = "rlib"]
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]

View file

@ -18,7 +18,6 @@ ipc-channel = "0.7"
log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
script_traits = {path = "../script_traits"}
servo_config = {path = "../config", features = ["servo"]}

View file

@ -2,11 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(box_syntax)]
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]
#![feature(box_syntax)]
extern crate euclid;
extern crate gfx_traits;

View file

@ -11,7 +11,7 @@ path = "lib.rs"
[features]
# servo as opposed to geckolib
servo = ["plugins", "serde", "serde_derive", "servo_url/servo"]
servo = ["serde", "serde_derive", "servo_url/servo"]
[dependencies]
euclid = "0.11"
@ -19,7 +19,6 @@ getopts = "0.2.11"
lazy_static = "0.2"
log = "0.3.5"
num_cpus = "1.1.0"
plugins = {path = "../plugins", optional = true}
rustc-serialize = "0.3"
serde = {version = "0.9", optional = true}
serde_derive = {version = "0.9", optional = true}

View file

@ -2,9 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![cfg_attr(feature = "servo", feature(plugin))]
#![cfg_attr(feature = "servo", plugin(plugins))]
#![deny(unsafe_code)]
extern crate euclid;

View file

@ -26,7 +26,6 @@ log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
offscreen_gl_context = "0.6"
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
script_traits = {path = "../script_traits"}
serde = "0.9"

View file

@ -2,13 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![deny(unsafe_code)]
#![feature(box_syntax)]
#![feature(conservative_impl_trait)]
#![feature(mpsc_select)]
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]
extern crate backtrace;
extern crate bluetooth_traits;

View file

@ -17,7 +17,6 @@ hyper_serde = "0.5"
ipc-channel = "0.7"
log = "0.3.5"
msg = {path = "../msg"}
plugins = {path = "../plugins"}
serde = "0.9"
serde_derive = "0.9"
serde_json = "0.9"

View file

@ -10,12 +10,9 @@
#![crate_name = "devtools"]
#![crate_type = "rlib"]
#![feature(box_syntax)]
#![feature(plugin)]
#![plugin(plugins)]
#![allow(non_snake_case)]
#![deny(unsafe_code)]
#![feature(box_syntax)]
extern crate devtools_traits;
extern crate encoding;

View file

@ -27,7 +27,6 @@ log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
ordered-float = "0.4"
plugins = {path = "../plugins"}
range = {path = "../range"}
serde = "0.9"
serde_derive = "0.9"

View file

@ -8,12 +8,9 @@
#![cfg_attr(any(target_os = "linux", target_os = "android"), feature(alloc))]
#![feature(box_syntax)]
#![feature(plugin)]
#![feature(range_contains)]
#![feature(unique)]
#![plugin(plugins)]
#![deny(unsafe_code)]
#[cfg(any(target_os = "linux", target_os = "android"))]

View file

@ -12,7 +12,6 @@ path = "lib.rs"
[dependencies]
heapsize = "0.3.0"
heapsize_derive = "0.1"
plugins = {path = "../plugins"}
range = {path = "../range"}
serde = "0.9"
serde_derive = "0.9"

View file

@ -2,9 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(plugin)]
#![plugin(plugins)]
#![crate_name = "gfx_traits"]
#![crate_type = "rlib"]

View file

@ -7,7 +7,6 @@ extern crate proc_macro;
extern crate syn;
extern crate synstructure;
#[cfg(not(test))]
#[proc_macro_derive(JSTraceable)]
pub fn expand_token_stream(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
expand_string(&input.to_string()).parse().unwrap()

View file

@ -28,7 +28,6 @@ msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
ordered-float = "0.4"
parking_lot = "0.3.3"
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
range = {path = "../range"}
rayon = "0.6"

View file

@ -2,18 +2,14 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![deny(unsafe_code)]
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(conservative_impl_trait)]
#![feature(nonzero)]
#![feature(plugin)]
#![feature(raw)]
#![feature(step_by)]
#![deny(unsafe_code)]
#![plugin(plugins)]
extern crate app_units;
extern crate atomic_refcell;
#[macro_use]

View file

@ -24,7 +24,6 @@ log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
parking_lot = {version = "0.3.3", features = ["nightly"]}
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
rayon = "0.6"
script = {path = "../script"}

View file

@ -7,9 +7,6 @@
#![feature(box_syntax)]
#![feature(mpsc_select)]
#![feature(plugin)]
#![plugin(plugins)]
extern crate app_units;
extern crate euclid;

View file

@ -14,7 +14,6 @@ bitflags = "0.7"
cssparser = {version = "0.10", features = ["heapsize", "serde"]}
heapsize = "0.3.0"
heapsize_derive = "0.1"
plugins = {path = "../plugins"}
serde = "0.9"
serde_derive = "0.9"

View file

@ -2,9 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]
#[macro_use]

View file

@ -28,7 +28,6 @@ msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
openssl = "0.7.6"
openssl-verify = "0.1"
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
rustc-serialize = "0.3"
servo_config = {path = "../config"}

View file

@ -2,12 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![deny(unsafe_code)]
#![feature(box_syntax)]
#![feature(mpsc_select)]
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]
extern crate brotli;
extern crate content_blocker as content_blocker_parser;

View file

@ -1,18 +0,0 @@
[package]
name = "plugins"
version = "0.0.1"
authors = ["The Servo Project Developers"]
license = "MPL-2.0"
publish = false
[lib]
name = "plugins"
path = "lib.rs"
plugin = true
[dependencies.clippy_lints]
version = "0.0.112"
optional = true
[features]
clippy = ["clippy_lints"]

View file

@ -1,22 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! Exists only to hook into clippy.
#![cfg_attr(feature = "clippy", feature(plugin, plugin_registrar, rustc_private))]
#![deny(unsafe_code)]
#[cfg(feature = "clippy")]
extern crate clippy_lints;
#[cfg(feature = "clippy")]
extern crate rustc_plugin;
#[cfg(feature = "clippy")]
use rustc_plugin::Registry;
#[cfg(feature = "clippy")]
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
::clippy_lints::register_plugins(reg);
}

View file

@ -11,7 +11,6 @@ path = "lib.rs"
[dependencies]
profile_traits = {path = "../profile_traits"}
plugins = {path = "../plugins"}
ipc-channel = "0.7"
heartbeats-simple = "0.4"
log = "0.3.5"

View file

@ -4,8 +4,6 @@
#![cfg_attr(not(target_os = "windows"), feature(alloc_jemalloc))]
#![feature(box_syntax)]
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]

View file

@ -17,7 +17,6 @@ energy-monitor = {version = "0.2.0", optional = true}
energymon = {git = "https://github.com/energymon/energymon-rust.git", optional = true}
ipc-channel = "0.7"
log = "0.3.5"
plugins = {path = "../plugins"}
serde = "0.9"
serde_derive = "0.9"
servo_config = {path = "../config"}

View file

@ -6,11 +6,8 @@
//! rest of Servo. These APIs are here instead of in `profile` so that these
//! modules won't have to depend on `profile`.
#![feature(box_syntax)]
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]
#![feature(box_syntax)]
extern crate ipc_channel;
#[macro_use]

View file

@ -63,7 +63,6 @@ offscreen_gl_context = "0.6"
open = "1.1.1"
parking_lot = "0.3"
phf = "0.7.18"
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
range = {path = "../range"}
ref_filter_map = "1.0.1"

View file

@ -22,7 +22,6 @@
#![doc = "The script crate contains all matters DOM."]
#![plugin(plugins)]
#![plugin(script_plugins)]
extern crate angle;

View file

@ -24,7 +24,6 @@ libc = "0.2"
log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
range = {path = "../range"}
script_traits = {path = "../script_traits"}

View file

@ -9,8 +9,6 @@
#![deny(unsafe_code)]
#![feature(box_syntax)]
#![feature(nonzero)]
#![feature(plugin)]
#![plugin(plugins)]
extern crate app_units;
extern crate atomic_refcell;

View file

@ -26,7 +26,6 @@ libc = "0.2"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
offscreen_gl_context = "0.6"
plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
rustc-serialize = "0.3.4"
serde = "0.9"

View file

@ -6,8 +6,6 @@
//! The traits are here instead of in script so that these modules won't have
//! to depend on script.
#![feature(plugin)]
#![plugin(plugins)]
#![deny(missing_docs)]
#![deny(unsafe_code)]

View file

@ -17,7 +17,6 @@ max_log_level = ["log/release_max_level_info"]
webdriver = ["webdriver_server"]
energy-profiling = ["profile_traits/energy-profiling"]
testing = ["style/testing"]
clippy = ["plugins/clippy"]
debugmozjs = ["script/debugmozjs"]
[dependencies]
@ -40,7 +39,6 @@ log = "0.3"
msg = {path = "../msg"}
net = {path = "../net"}
net_traits = {path = "../net_traits"}
plugins = {path = "../plugins", optional = true}
profile = {path = "../profile"}
profile_traits = {path = "../profile_traits"}
script = {path = "../script"}

View file

@ -18,7 +18,6 @@ ipc-channel = "0.7"
log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
plugins = {path = "../plugins"}
regex = "0.2"
rustc-serialize = "0.3.4"
script_traits = {path = "../script_traits"}

View file

@ -5,9 +5,6 @@
#![crate_name = "webdriver_server"]
#![crate_type = "rlib"]
#![feature(plugin)]
#![plugin(plugins)]
#![deny(unsafe_code)]
extern crate cookie as cookie_rs;

View file

@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(custom_derive)]
#![feature(plugin)]
#![deny(unsafe_code)]
extern crate ipc_channel;

View file

@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(custom_derive)]
#![feature(plugin)]
#![deny(unsafe_code)]
extern crate ipc_channel;