aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/servo/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 4871d9d14cf..051e6190922 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(libc, rustc_private, thread_local)]
+#![cfg_attr(not(test), feature(path))]
#[macro_use]
extern crate log;
@@ -22,9 +23,11 @@ extern crate libc;
extern crate url;
use compositing::CompositorEventListener;
-use compositing::windowing::{WindowEvent, WindowMethods};
+use compositing::windowing::WindowEvent;
#[cfg(not(test))]
+use compositing::windowing::WindowMethods;
+#[cfg(not(test))]
use compositing::{CompositorProxy, CompositorTask, Constellation};
#[cfg(not(test))]
use msg::constellation_msg::Msg as ConstellationMsg;