mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
sorted the extern crate, mod & use declarations
This commit is contained in:
parent
705ad72aee
commit
889eec364b
194 changed files with 804 additions and 870 deletions
5
components/servo/Cargo.lock
generated
5
components/servo/Cargo.lock
generated
|
@ -146,6 +146,7 @@ dependencies = [
|
|||
"log 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"num 0.1.27 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)",
|
||||
"plugins 0.0.1",
|
||||
"util 0.0.1",
|
||||
]
|
||||
|
||||
|
@ -1334,6 +1335,7 @@ dependencies = [
|
|||
"ipc-channel 0.1.0 (git+https://github.com/pcwalton/ipc-channel)",
|
||||
"libc 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"plugins 0.0.1",
|
||||
"profile_traits 0.0.1",
|
||||
"regex 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"task_info 0.0.1",
|
||||
|
@ -1348,6 +1350,7 @@ dependencies = [
|
|||
"energy-monitor 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"energymon 0.1.0 (git+https://github.com/energymon/energymon-rust.git?rev=67f74732ac)",
|
||||
"ipc-channel 0.1.0 (git+https://github.com/pcwalton/ipc-channel)",
|
||||
"plugins 0.0.1",
|
||||
"serde 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_macros 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"time 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -1488,6 +1491,7 @@ dependencies = [
|
|||
"libc 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"msg 0.0.1",
|
||||
"net_traits 0.0.1",
|
||||
"plugins 0.0.1",
|
||||
"profile_traits 0.0.1",
|
||||
"serde 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_macros 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -1907,6 +1911,7 @@ dependencies = [
|
|||
"ipc-channel 0.1.0 (git+https://github.com/pcwalton/ipc-channel)",
|
||||
"log 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"msg 0.0.1",
|
||||
"plugins 0.0.1",
|
||||
"png 0.1.0 (git+https://github.com/servo/rust-png)",
|
||||
"regex 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -21,26 +21,25 @@
|
|||
extern crate util as _util;
|
||||
|
||||
mod export {
|
||||
extern crate canvas;
|
||||
extern crate canvas_traits;
|
||||
extern crate compositing;
|
||||
extern crate devtools;
|
||||
extern crate devtools_traits;
|
||||
extern crate euclid;
|
||||
extern crate gfx;
|
||||
extern crate gleam;
|
||||
extern crate layers;
|
||||
extern crate layout;
|
||||
extern crate msg;
|
||||
extern crate net;
|
||||
extern crate net_traits;
|
||||
extern crate msg;
|
||||
extern crate profile;
|
||||
extern crate profile_traits;
|
||||
extern crate script;
|
||||
extern crate script_traits;
|
||||
extern crate layout;
|
||||
extern crate gfx;
|
||||
extern crate style;
|
||||
extern crate canvas;
|
||||
extern crate canvas_traits;
|
||||
|
||||
extern crate euclid;
|
||||
extern crate url;
|
||||
extern crate layers;
|
||||
extern crate gleam;
|
||||
}
|
||||
|
||||
extern crate libc;
|
||||
|
@ -56,28 +55,6 @@ fn webdriver(port: u16, constellation: msg::constellation_msg::ConstellationChan
|
|||
#[cfg(not(feature = "webdriver"))]
|
||||
fn webdriver(_port: u16, _constellation: msg::constellation_msg::ConstellationChan) { }
|
||||
|
||||
pub use _util as util;
|
||||
pub use export::compositing;
|
||||
pub use export::devtools;
|
||||
pub use export::devtools_traits;
|
||||
pub use export::net;
|
||||
pub use export::net_traits;
|
||||
pub use export::msg;
|
||||
pub use export::profile;
|
||||
pub use export::profile_traits;
|
||||
pub use export::script;
|
||||
pub use export::script_traits;
|
||||
pub use export::layout;
|
||||
pub use export::gfx;
|
||||
pub use export::style;
|
||||
pub use export::canvas;
|
||||
pub use export::canvas_traits;
|
||||
|
||||
pub use export::euclid;
|
||||
pub use export::url;
|
||||
pub use export::layers;
|
||||
pub use export::gleam::gl;
|
||||
|
||||
use compositing::CompositorEventListener;
|
||||
use compositing::compositor_task::InitialCompositorState;
|
||||
use compositing::constellation::InitialConstellationState;
|
||||
|
@ -100,6 +77,27 @@ use std::rc::Rc;
|
|||
use std::sync::mpsc::Sender;
|
||||
use util::opts;
|
||||
|
||||
pub use _util as util;
|
||||
pub use export::canvas;
|
||||
pub use export::canvas_traits;
|
||||
pub use export::compositing;
|
||||
pub use export::devtools;
|
||||
pub use export::devtools_traits;
|
||||
pub use export::euclid;
|
||||
pub use export::gfx;
|
||||
pub use export::gleam::gl;
|
||||
pub use export::layers;
|
||||
pub use export::layout;
|
||||
pub use export::msg;
|
||||
pub use export::net;
|
||||
pub use export::net_traits;
|
||||
pub use export::profile;
|
||||
pub use export::profile_traits;
|
||||
pub use export::script;
|
||||
pub use export::script_traits;
|
||||
pub use export::style;
|
||||
pub use export::url;
|
||||
|
||||
pub struct Browser {
|
||||
compositor: Box<CompositorEventListener + 'static>,
|
||||
}
|
||||
|
|
|
@ -17,17 +17,15 @@
|
|||
|
||||
#![feature(start)]
|
||||
|
||||
// The Servo engine
|
||||
extern crate servo;
|
||||
|
||||
// The window backed by glutin
|
||||
extern crate glutin_app as app;
|
||||
extern crate time;
|
||||
extern crate env_logger;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[macro_use]
|
||||
extern crate android_glue;
|
||||
// The window backed by glutin
|
||||
extern crate glutin_app as app;
|
||||
extern crate env_logger;
|
||||
// The Servo engine
|
||||
extern crate servo;
|
||||
extern crate time;
|
||||
|
||||
use servo::Browser;
|
||||
use servo::compositing::windowing::WindowEvent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue