Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure crate are alphabetically sorted #8692

Merged
merged 1 commit into from Nov 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/canvas/lib.rs
Expand Up @@ -9,8 +9,6 @@
#![feature(plugin)]
#![plugin(plugins)]

#[macro_use]
extern crate log;
extern crate azure;
extern crate canvas_traits;
extern crate core;
Expand All @@ -20,6 +18,8 @@ extern crate gfx_traits;
extern crate gleam;
extern crate ipc_channel;
extern crate layers;
#[macro_use]
extern crate log;
extern crate num;
extern crate offscreen_gl_context;
extern crate util;
Expand Down
18 changes: 8 additions & 10 deletions components/compositing/lib.rs
Expand Up @@ -16,22 +16,15 @@
#![plugin(serde_macros)]

extern crate app_units;
#[macro_use]
extern crate log;
#[macro_use]
extern crate profile_traits;
#[macro_use]
extern crate util;

extern crate azure;
extern crate canvas;
extern crate canvas_traits;
extern crate clipboard;

#[cfg(target_os = "macos")]
extern crate core_graphics;
#[cfg(target_os = "macos")]
extern crate core_text;

extern crate devtools_traits;
extern crate euclid;
extern crate gaol;
Expand All @@ -42,17 +35,22 @@ extern crate image;
extern crate ipc_channel;
extern crate layers;
extern crate layout_traits;
extern crate libc;
#[macro_use]
extern crate log;
extern crate msg;
extern crate net_traits;
extern crate num;
extern crate offscreen_gl_context;
#[macro_use]
extern crate profile_traits;
extern crate script_traits;
extern crate serde;
extern crate style_traits;

extern crate libc;
extern crate time;
extern crate url;
#[macro_use]
extern crate util;

pub use compositor_task::{CompositorEventListener, CompositorProxy, CompositorTask};
pub use constellation::Constellation;
Expand Down
4 changes: 2 additions & 2 deletions components/devtools/lib.rs
Expand Up @@ -19,11 +19,11 @@
#![allow(non_snake_case)]
#![deny(unsafe_code)]

#[macro_use]
extern crate log;
extern crate devtools_traits;
extern crate hyper;
extern crate ipc_channel;
#[macro_use]
extern crate log;
extern crate msg;
extern crate rustc_serialize;
extern crate serde;
Expand Down
20 changes: 10 additions & 10 deletions components/gfx/lib.rs
Expand Up @@ -20,19 +20,11 @@
#![plugin(plugins)]
#![plugin(serde_macros)]

extern crate alloc;
extern crate app_units;
extern crate azure;
#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
#[macro_use]
extern crate profile_traits;
#[macro_use]
extern crate util;
extern crate alloc;
extern crate azure;
extern crate canvas_traits;

// Mac OS-specific library dependencies
Expand All @@ -57,9 +49,15 @@ extern crate harfbuzz_sys as harfbuzz;

extern crate ipc_channel;
extern crate layers;
#[macro_use]
extern crate lazy_static;
extern crate libc;
#[macro_use]
extern crate log;
extern crate msg;
extern crate net_traits;
#[macro_use]
extern crate profile_traits;
extern crate rand;
extern crate rustc_serialize;
extern crate script_traits;
Expand All @@ -75,6 +73,8 @@ extern crate style;
extern crate time;
extern crate unicode_script;
extern crate url;
#[macro_use]
extern crate util;


pub use paint_context::PaintContext;
Expand Down
20 changes: 10 additions & 10 deletions components/layout/lib.rs
Expand Up @@ -19,18 +19,9 @@
#![plugin(plugins)]

extern crate app_units;
extern crate azure;
#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate log;
#[macro_use]
extern crate profile_traits;
#[macro_use]
#[no_link]
extern crate plugins as servo_plugins;
#[macro_use]
extern crate util;
extern crate azure;
extern crate canvas_traits;
extern crate clock_ticks;
extern crate cssparser;
Expand All @@ -42,8 +33,15 @@ extern crate gfx_traits;
extern crate ipc_channel;
extern crate layout_traits;
extern crate libc;
#[macro_use]
extern crate log;
extern crate msg;
extern crate net_traits;
#[macro_use]
#[no_link]
extern crate plugins as servo_plugins;
#[macro_use]
extern crate profile_traits;
extern crate rustc_serialize;
extern crate script;
extern crate script_traits;
Expand All @@ -57,6 +55,8 @@ extern crate style_traits;
extern crate unicode_bidi;
extern crate unicode_script;
extern crate url;
#[macro_use]
extern crate util;

#[macro_use]
mod layout_debug;
Expand Down
4 changes: 2 additions & 2 deletions components/layout_traits/lib.rs
Expand Up @@ -8,10 +8,10 @@
extern crate euclid;
extern crate gfx;
extern crate ipc_channel;
extern crate script_traits;
extern crate msg;
extern crate profile_traits;
extern crate net_traits;
extern crate profile_traits;
extern crate script_traits;
extern crate serde;
extern crate url;
extern crate util;
Expand Down
2 changes: 1 addition & 1 deletion components/msg/lib.rs
Expand Up @@ -6,9 +6,9 @@
#![plugin(serde_macros, plugins)]

extern crate app_units;
extern crate azure;
#[macro_use]
extern crate bitflags;
extern crate azure;
extern crate canvas_traits;
#[cfg(target_os = "macos")]
extern crate core_foundation;
Expand Down
6 changes: 3 additions & 3 deletions components/net/lib.rs
Expand Up @@ -11,15 +11,15 @@
#![feature(plugin)]
#![plugin(plugins)]

#[macro_use]
extern crate log;
extern crate brotli;
extern crate cookie as cookie_rs;
extern crate devtools_traits;
extern crate euclid;
extern crate flate2;
extern crate brotli;
extern crate hyper;
extern crate ipc_channel;
#[macro_use]
extern crate log;
extern crate mime_guess;
extern crate msg;
extern crate net_traits;
Expand Down
6 changes: 3 additions & 3 deletions components/net_traits/lib.rs
Expand Up @@ -12,12 +12,12 @@
#![feature(custom_attribute)]
#![plugin(serde_macros, plugins)]

#[macro_use]
extern crate log;
extern crate euclid;
extern crate hyper;
extern crate ipc_channel;
extern crate image as piston_image;
extern crate ipc_channel;
#[macro_use]
extern crate log;
extern crate msg;
extern crate serde;
extern crate stb_image;
Expand Down
10 changes: 4 additions & 6 deletions components/plugins/lib.rs
Expand Up @@ -15,16 +15,14 @@

#![feature(plugin_registrar, quote, plugin, box_syntax, rustc_private)]

#[macro_use]
extern crate syntax;
#[cfg(feature = "clippy")]
extern crate clippy;
#[macro_use]
extern crate rustc;

extern crate rustc_front;

#[macro_use]
extern crate syntax;
extern crate tenacious;
#[cfg(feature = "clippy")]
extern crate clippy;

extern crate url;

Expand Down
11 changes: 5 additions & 6 deletions components/profile/lib.rs
Expand Up @@ -9,20 +9,19 @@
#![feature(plugin)]
#![plugin(plugins)]

#[macro_use]
extern crate log;
#[macro_use]
extern crate profile_traits;

extern crate alloc_jemalloc;
extern crate hbs_pow;
extern crate ipc_channel;
extern crate libc;
#[macro_use]
extern crate log;
#[macro_use]
extern crate profile_traits;
#[cfg(target_os = "linux")]
extern crate regex;
extern crate time as std_time;
#[cfg(target_os = "macos")]
extern crate task_info;
extern crate time as std_time;
extern crate util;

mod heartbeats;
Expand Down
2 changes: 1 addition & 1 deletion components/profile_traits/energy.rs
Expand Up @@ -25,8 +25,8 @@ pub fn energy_interval_ms() -> u32 {

#[cfg(feature = "energy-profiling")]
mod energymon {
extern crate energymon;
extern crate energy_monitor;
extern crate energymon;

use self::energy_monitor::EnergyMonitor;
use self::energymon::EnergyMon;
Expand Down
20 changes: 10 additions & 10 deletions components/script/lib.rs
Expand Up @@ -33,19 +33,10 @@

#![plugin(plugins)]

extern crate angle;
extern crate app_units;
#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate log;
#[macro_use]
extern crate profile_traits;
#[macro_use]
extern crate style;
extern crate style_traits;
#[macro_use]
extern crate util;
extern crate angle;
extern crate canvas;
extern crate canvas_traits;
extern crate caseless;
Expand All @@ -61,10 +52,14 @@ extern crate image;
extern crate ipc_channel;
extern crate js;
extern crate libc;
#[macro_use]
extern crate log;
extern crate msg;
extern crate net_traits;
extern crate num;
extern crate offscreen_gl_context;
#[macro_use]
extern crate profile_traits;
extern crate rand;
extern crate rustc_serialize;
extern crate rustc_unicode;
Expand All @@ -73,10 +68,15 @@ extern crate script_traits;
extern crate serde;
extern crate smallvec;
#[macro_use(atom, ns)] extern crate string_cache;
#[macro_use]
extern crate style;
extern crate style_traits;
extern crate tendril;
extern crate time;
extern crate unicase;
extern crate url;
#[macro_use]
extern crate util;
extern crate uuid;
extern crate websocket;

Expand Down
4 changes: 1 addition & 3 deletions components/servo/lib.rs
Expand Up @@ -18,7 +18,7 @@
// `WindowMethods` trait.

extern crate gaol;

extern crate libc;
#[macro_use]
extern crate util as _util;

Expand All @@ -45,8 +45,6 @@ mod export {
extern crate url;
}

extern crate libc;

#[cfg(feature = "webdriver")]
extern crate webdriver_server;

Expand Down
9 changes: 4 additions & 5 deletions components/servo/main.rs
Expand Up @@ -20,20 +20,19 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate env_logger;
extern crate gleam;
// The window backed by glutin
extern crate glutin_app as app;
extern crate env_logger;
#[cfg(target_os = "android")]
extern crate libc;
#[macro_use]
extern crate log;
extern crate offscreen_gl_context;
// The Servo engine
extern crate servo;
extern crate time;

extern crate gleam;
extern crate offscreen_gl_context;

use gleam::gl;
use offscreen_gl_context::GLContext;
use servo::Browser;
Expand Down Expand Up @@ -222,8 +221,8 @@ android_start!(main);

#[cfg(target_os = "android")]
mod android {
extern crate libc;
extern crate android_glue;
extern crate libc;

use self::libc::c_int;
use std::borrow::ToOwned;
Expand Down