diff --git a/components/style/Cargo.toml b/components/style/Cargo.toml index 782e677ea58..70219416452 100644 --- a/components/style/Cargo.toml +++ b/components/style/Cargo.toml @@ -79,7 +79,6 @@ uluru = "2" unicode-bidi = "0.3" unicode-segmentation = "1.0" void = "1.0.2" -gecko-profiler = { path = "../../../tools/profiler/rust-api" } [build-dependencies] bindgen = { version = "0.62", optional = true, default-features = false } diff --git a/components/style/global_style_data.rs b/components/style/global_style_data.rs index e08baa83b1d..6a22c5a11e9 100644 --- a/components/style/global_style_data.rs +++ b/components/style/global_style_data.rs @@ -10,6 +10,7 @@ use crate::gecko_bindings::bindings; use crate::parallel::STYLE_THREAD_STACK_SIZE_KB; use crate::shared_lock::SharedRwLock; use crate::thread_state; +#[cfg(feature = "gecko")] use gecko_profiler; use parking_lot::{RwLock, RwLockReadGuard}; use rayon;