Auto merge of #10706 - zwn:unused-extern-crates, r=nox

Turn on unused-extern-crates warning.

As discussed in #9256. It should solve second half of the issue.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-22 13:40:38 -07:00
commit 0a3a50a129
29 changed files with 23 additions and 55 deletions

View file

@ -12,10 +12,6 @@ path = "lib.rs"
git = "https://github.com/servo/rust-azure" git = "https://github.com/servo/rust-azure"
features = ["plugins"] features = ["plugins"]
[dependencies.layers]
git = "https://github.com/servo/rust-layers"
features = ["plugins"]
[dependencies.canvas_traits] [dependencies.canvas_traits]
path = "../canvas_traits" path = "../canvas_traits"

View file

@ -14,7 +14,6 @@ extern crate euclid;
extern crate gfx_traits; extern crate gfx_traits;
extern crate gleam; extern crate gleam;
extern crate ipc_channel; extern crate ipc_channel;
extern crate layers;
#[macro_use] #[macro_use]
extern crate log; extern crate log;
extern crate num_traits; extern crate num_traits;

View file

@ -25,9 +25,6 @@ features = [ "nightly" ]
[dependencies.plugins] [dependencies.plugins]
path = "../plugins" path = "../plugins"
[dependencies.util]
path = "../util"
[dependencies.webrender_traits] [dependencies.webrender_traits]
git = "https://github.com/servo/webrender_traits" git = "https://github.com/servo/webrender_traits"
@ -36,6 +33,5 @@ cssparser = {version = "0.5.4", features = ["heap_size", "serde-serialization"]}
euclid = {version = "0.6.4", features = ["plugins"]} euclid = {version = "0.6.4", features = ["plugins"]}
heapsize = "0.3.0" heapsize = "0.3.0"
heapsize_plugin = "0.1.2" heapsize_plugin = "0.1.2"
offscreen_gl_context = "0.1.2"
serde_macros = "0.7" serde_macros = "0.7"

View file

@ -17,9 +17,7 @@ extern crate euclid;
extern crate gfx_traits; extern crate gfx_traits;
extern crate heapsize; extern crate heapsize;
extern crate ipc_channel; extern crate ipc_channel;
extern crate offscreen_gl_context;
extern crate serde; extern crate serde;
extern crate util;
extern crate webrender_traits; extern crate webrender_traits;
use azure::azure::{AzColor, AzFloat}; use azure::azure::{AzColor, AzFloat};

View file

@ -25,7 +25,6 @@ git = "https://github.com/servo/ipc-channel"
[dependencies] [dependencies]
hyper = { version = "0.8", features = [ "serde-serialization" ] } hyper = { version = "0.8", features = [ "serde-serialization" ] }
log = "0.3.5"
serde = "0.7" serde = "0.7"
serde_json = "0.7" serde_json = "0.7"
serde_macros = "0.7" serde_macros = "0.7"

View file

@ -23,8 +23,6 @@
extern crate devtools_traits; extern crate devtools_traits;
extern crate hyper; extern crate hyper;
extern crate ipc_channel; extern crate ipc_channel;
#[macro_use]
extern crate log;
extern crate msg; extern crate msg;
extern crate serde; extern crate serde;
extern crate serde_json; extern crate serde_json;

View file

@ -11,9 +11,6 @@ path = "lib.rs"
[dependencies.msg] [dependencies.msg]
path = "../msg" path = "../msg"
[dependencies.util]
path = "../util"
[dependencies.ipc-channel] [dependencies.ipc-channel]
git = "https://github.com/servo/ipc-channel" git = "https://github.com/servo/ipc-channel"

View file

@ -15,6 +15,7 @@
#![feature(custom_derive, plugin)] #![feature(custom_derive, plugin)]
#![plugin(heapsize_plugin, serde_macros)] #![plugin(heapsize_plugin, serde_macros)]
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate heapsize; extern crate heapsize;
@ -24,7 +25,6 @@ extern crate msg;
extern crate serde; extern crate serde;
extern crate time; extern crate time;
extern crate url; extern crate url;
extern crate util;
use hyper::header::Headers; use hyper::header::Headers;
use hyper::http::RawStatus; use hyper::http::RawStatus;

View file

@ -23,6 +23,7 @@
extern crate alloc; extern crate alloc;
extern crate app_units; extern crate app_units;
extern crate azure; extern crate azure;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
@ -49,6 +50,7 @@ extern crate harfbuzz_sys as harfbuzz;
extern crate heapsize; extern crate heapsize;
extern crate ipc_channel; extern crate ipc_channel;
extern crate layers; extern crate layers;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate lazy_static; extern crate lazy_static;
extern crate libc; extern crate libc;

View file

@ -22,9 +22,6 @@ path = "../msg"
[dependencies.plugins] [dependencies.plugins]
path = "../plugins" path = "../plugins"
[dependencies.util]
path = "../util"
[dependencies] [dependencies]
euclid = {version = "0.6.5", features = ["plugins"]} euclid = {version = "0.6.5", features = ["plugins"]}
heapsize = "0.3.0" heapsize = "0.3.0"

View file

@ -16,7 +16,6 @@ extern crate heapsize;
extern crate layers; extern crate layers;
extern crate msg; extern crate msg;
extern crate serde; extern crate serde;
extern crate util;
pub mod color; pub mod color;
mod paint_listener; mod paint_listener;

View file

@ -72,7 +72,6 @@ libc = "0.2"
log = "0.3.5" log = "0.3.5"
rustc-serialize = "0.3" rustc-serialize = "0.3"
selectors = {version = "0.5.1", features = ["heap_size"]} selectors = {version = "0.5.1", features = ["heap_size"]}
serde = "0.7"
serde_json = "0.7" serde_json = "0.7"
serde_macros = "0.7" serde_macros = "0.7"
smallvec = "0.1" smallvec = "0.1"

View file

@ -21,6 +21,7 @@
extern crate app_units; extern crate app_units;
extern crate azure; extern crate azure;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate canvas_traits; extern crate canvas_traits;
@ -49,7 +50,6 @@ extern crate rustc_serialize;
extern crate script; extern crate script;
extern crate script_traits; extern crate script_traits;
extern crate selectors; extern crate selectors;
extern crate serde;
extern crate serde_json; extern crate serde_json;
extern crate smallvec; extern crate smallvec;
#[macro_use(atom, ns)] extern crate string_cache; #[macro_use(atom, ns)] extern crate string_cache;

View file

@ -7,6 +7,7 @@
#![deny(unsafe_code)] #![deny(unsafe_code)]
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate euclid; extern crate euclid;

View file

@ -17,6 +17,7 @@ extern crate heapsize;
extern crate hyper; extern crate hyper;
extern crate image as piston_image; extern crate image as piston_image;
extern crate ipc_channel; extern crate ipc_channel;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate lazy_static; extern crate lazy_static;
#[macro_use] #[macro_use]

View file

@ -10,6 +10,7 @@
#![deny(unsafe_code)] #![deny(unsafe_code)]
#[allow(unused_extern_crates)]
#[cfg(not(target_os = "windows"))] #[cfg(not(target_os = "windows"))]
extern crate alloc_jemalloc; extern crate alloc_jemalloc;
extern crate hbs_pow; extern crate hbs_pow;

View file

@ -30,6 +30,7 @@
extern crate angle; extern crate angle;
extern crate app_units; extern crate app_units;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate canvas; extern crate canvas;

View file

@ -30,7 +30,6 @@ dependencies = [
"net_tests 0.0.1", "net_tests 0.0.1",
"net_traits 0.0.1", "net_traits 0.0.1",
"net_traits_tests 0.0.1", "net_traits_tests 0.0.1",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"plugin_compiletest 0.0.1", "plugin_compiletest 0.0.1",
"profile 0.0.1", "profile 0.0.1",
"profile_tests 0.0.1", "profile_tests 0.0.1",
@ -168,7 +167,6 @@ dependencies = [
"gfx_traits 0.0.1", "gfx_traits 0.0.1",
"gleam 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"layers 0.2.4 (git+https://github.com/servo/rust-layers)",
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
@ -188,11 +186,9 @@ dependencies = [
"heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
"webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)",
] ]
@ -409,7 +405,6 @@ dependencies = [
"devtools_traits 0.0.1", "devtools_traits 0.0.1",
"hyper 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1", "msg 0.0.1",
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
@ -434,7 +429,6 @@ dependencies = [
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
] ]
[[package]] [[package]]
@ -737,7 +731,6 @@ dependencies = [
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
] ]
[[package]] [[package]]
@ -1063,7 +1056,6 @@ dependencies = [
"script 0.0.1", "script 0.0.1",
"script_traits 0.0.1", "script_traits 0.0.1",
"selectors 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "selectors 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -130,7 +130,7 @@ optional = true
version = "0.1.3" version = "0.1.3"
optional = true optional = true
[dependencies.log] [target.arm-linux-androideabi.dependencies.log]
version = "0.3" version = "0.3"
features = ["release_max_level_info"] features = ["release_max_level_info"]
@ -171,5 +171,4 @@ bitflags = "0.3"
env_logger = "0.3" env_logger = "0.3"
euclid = {version = "0.6.4", features = ["plugins"]} euclid = {version = "0.6.4", features = ["plugins"]}
libc = "0.2" libc = "0.2"
offscreen_gl_context = "0.1.2"
url = {version = "0.5.7", features = ["heap_size", "serde_serialization", "query_encoding"]} url = {version = "0.5.7", features = ["heap_size", "serde_serialization", "query_encoding"]}

View file

@ -21,14 +21,13 @@
#[macro_use] #[macro_use]
extern crate android_glue; extern crate android_glue;
extern crate env_logger; extern crate env_logger;
extern crate gleam;
// The window backed by glutin // The window backed by glutin
extern crate glutin_app as app; extern crate glutin_app as app;
#[cfg(target_os = "android")] #[cfg(target_os = "android")]
extern crate libc; extern crate libc;
#[cfg(target_os = "android")]
#[macro_use] #[macro_use]
extern crate log; extern crate log;
extern crate offscreen_gl_context;
// The Servo engine // The Servo engine
extern crate servo; extern crate servo;

View file

@ -19,6 +19,7 @@
#![recursion_limit = "500"] // For match_ignore_ascii_case in PropertyDeclaration::parse #![recursion_limit = "500"] // For match_ignore_ascii_case in PropertyDeclaration::parse
extern crate app_units; extern crate app_units;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate core; extern crate core;
@ -28,10 +29,12 @@ extern crate encoding;
extern crate euclid; extern crate euclid;
extern crate fnv; extern crate fnv;
extern crate heapsize; extern crate heapsize;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate lazy_static; extern crate lazy_static;
#[macro_use] #[macro_use]
extern crate log; extern crate log;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate matches; extern crate matches;
extern crate num_traits; extern crate num_traits;

View file

@ -18,6 +18,7 @@
#![deny(unsafe_code)] #![deny(unsafe_code)]
extern crate app_units; extern crate app_units;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
extern crate deque; extern crate deque;
@ -27,6 +28,7 @@ extern crate heapsize;
extern crate ipc_channel; extern crate ipc_channel;
#[cfg(feature = "non-geckolib")] #[cfg(feature = "non-geckolib")]
extern crate js; extern crate js;
#[allow(unused_extern_crates)]
#[macro_use] #[macro_use]
extern crate lazy_static; extern crate lazy_static;
extern crate libc; extern crate libc;

View file

@ -2,6 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#[cfg(not(target_os = "android"))]
use std::env; use std::env;
use std::fs::File; use std::fs::File;
use std::io::{self, Read}; use std::io::{self, Read};

View file

@ -14,8 +14,6 @@ extern crate compositing;
extern crate hyper; extern crate hyper;
extern crate image; extern crate image;
extern crate ipc_channel; extern crate ipc_channel;
#[macro_use]
extern crate log;
extern crate msg; extern crate msg;
extern crate regex; extern crate regex;
extern crate rustc_serialize; extern crate rustc_serialize;

8
ports/cef/Cargo.lock generated
View file

@ -152,7 +152,6 @@ dependencies = [
"gfx_traits 0.0.1", "gfx_traits 0.0.1",
"gleam 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"layers 0.2.4 (git+https://github.com/servo/rust-layers)",
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
@ -172,11 +171,9 @@ dependencies = [
"heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
"webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)",
] ]
@ -378,7 +375,6 @@ dependencies = [
"devtools_traits 0.0.1", "devtools_traits 0.0.1",
"hyper 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1", "msg 0.0.1",
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
@ -403,7 +399,6 @@ dependencies = [
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
] ]
[[package]] [[package]]
@ -656,7 +651,6 @@ dependencies = [
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
] ]
[[package]] [[package]]
@ -982,7 +976,6 @@ dependencies = [
"script 0.0.1", "script 0.0.1",
"script_traits 0.0.1", "script_traits 0.0.1",
"selectors 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "selectors 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1781,7 +1774,6 @@ dependencies = [
"msg 0.0.1", "msg 0.0.1",
"net 0.0.1", "net 0.0.1",
"net_traits 0.0.1", "net_traits 0.0.1",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"profile 0.0.1", "profile 0.0.1",
"profile_traits 0.0.1", "profile_traits 0.0.1",
"script 0.0.1", "script 0.0.1",

View file

@ -9,6 +9,7 @@
#[macro_use] extern crate bitflags; #[macro_use] extern crate bitflags;
#[cfg(target_os = "macos")] extern crate cgl; #[cfg(target_os = "macos")] extern crate cgl;
extern crate compositing; extern crate compositing;
#[allow(unused_extern_crates)]
#[cfg(target_os = "android")] extern crate egl; #[cfg(target_os = "android")] extern crate egl;
extern crate euclid; extern crate euclid;
extern crate gleam; extern crate gleam;

View file

@ -22,13 +22,16 @@ use msg::constellation_msg::{self, Key};
use net_traits::net_error_list::NetError; use net_traits::net_error_list::NetError;
use script_traits::{TouchEventType, TouchpadPressurePhase}; use script_traits::{TouchEventType, TouchpadPressurePhase};
use std::cell::{Cell, RefCell}; use std::cell::{Cell, RefCell};
#[cfg(not(target_os = "android"))]
use std::os::raw::c_void; use std::os::raw::c_void;
use std::rc::Rc; use std::rc::Rc;
use std::sync::mpsc::{channel, Sender}; use std::sync::mpsc::{channel, Sender};
use style_traits::cursor::Cursor; use style_traits::cursor::Cursor;
use url::Url; use url::Url;
use util::geometry::ScreenPx; use util::geometry::ScreenPx;
use util::opts::{self, RenderApi}; use util::opts;
#[cfg(not(target_os = "android"))]
use util::opts::RenderApi;
static mut g_nested_event_loop_listener: Option<*mut (NestedEventLoopListener + 'static)> = None; static mut g_nested_event_loop_listener: Option<*mut (NestedEventLoopListener + 'static)> = None;

8
ports/gonk/Cargo.lock generated
View file

@ -145,7 +145,6 @@ dependencies = [
"gfx_traits 0.0.1", "gfx_traits 0.0.1",
"gleam 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"layers 0.2.4 (git+https://github.com/servo/rust-layers)",
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
@ -165,11 +164,9 @@ dependencies = [
"heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
"webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)", "webrender_traits 0.1.0 (git+https://github.com/servo/webrender_traits)",
] ]
@ -371,7 +368,6 @@ dependencies = [
"devtools_traits 0.0.1", "devtools_traits 0.0.1",
"hyper 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1", "msg 0.0.1",
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
@ -396,7 +392,6 @@ dependencies = [
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
] ]
[[package]] [[package]]
@ -659,7 +654,6 @@ dependencies = [
"plugins 0.0.1", "plugins 0.0.1",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
] ]
[[package]] [[package]]
@ -964,7 +958,6 @@ dependencies = [
"script 0.0.1", "script 0.0.1",
"script_traits 0.0.1", "script_traits 0.0.1",
"selectors 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "selectors 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1762,7 +1755,6 @@ dependencies = [
"msg 0.0.1", "msg 0.0.1",
"net 0.0.1", "net 0.0.1",
"net_traits 0.0.1", "net_traits 0.0.1",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"profile 0.0.1", "profile 0.0.1",
"profile_traits 0.0.1", "profile_traits 0.0.1",
"script 0.0.1", "script 0.0.1",

View file

@ -230,6 +230,8 @@ class MachCommands(CommandBase):
if not (self.config["build"]["ccache"] == ""): if not (self.config["build"]["ccache"] == ""):
env['CCACHE'] = self.config["build"]["ccache"] env['CCACHE'] = self.config["build"]["ccache"]
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -W unused-extern-crates"
status = call( status = call(
["cargo", "build"] + opts, ["cargo", "build"] + opts,
env=env, cwd=self.servo_crate(), verbose=verbose) env=env, cwd=self.servo_crate(), verbose=verbose)