mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
The util component specified fnv and smallvec as dependencies and publicly reexported both of them. Several other components utilized these reexports, presumably because fnv and smallvec used to live in the tree so reexporting made the transition easier. These indirect dependencies through the util component are unnecessary. This commit removes the fnv & smallvec crate reexports in the util component. It exchange, it adds fnv & smallvec as dependencies to non-util components wherever needed. Finally, it removes the fnv dependency from util as it is not utilized anywhere in the util component.
74 lines
1.6 KiB
Rust
74 lines
1.6 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* 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/. */
|
|
|
|
#![feature(alloc)]
|
|
#![feature(box_syntax)]
|
|
#![feature(collections)]
|
|
#![feature(core)]
|
|
#![feature(exit_status)]
|
|
#![feature(optin_builtin_traits)]
|
|
#![feature(path_ext)]
|
|
#![feature(plugin)]
|
|
#![feature(rustc_private)]
|
|
#![feature(step_by)]
|
|
#![feature(step_trait)]
|
|
#![feature(std_misc)]
|
|
#![feature(zero_one)]
|
|
|
|
#![plugin(string_cache_plugin)]
|
|
|
|
#[macro_use] extern crate log;
|
|
|
|
extern crate azure;
|
|
extern crate alloc;
|
|
#[macro_use] extern crate bitflags;
|
|
#[macro_use] extern crate cssparser;
|
|
extern crate geom;
|
|
extern crate getopts;
|
|
extern crate layers;
|
|
extern crate libc;
|
|
extern crate num as num_lib;
|
|
extern crate num_cpus;
|
|
extern crate rand;
|
|
extern crate rustc_serialize;
|
|
extern crate selectors;
|
|
extern crate smallvec;
|
|
extern crate string_cache;
|
|
extern crate url;
|
|
|
|
use std::sync::Arc;
|
|
|
|
pub mod bezier;
|
|
pub mod cache;
|
|
pub mod cursor;
|
|
pub mod debug_utils;
|
|
pub mod deque;
|
|
pub mod linked_list;
|
|
pub mod geometry;
|
|
pub mod logical_geometry;
|
|
pub mod mem;
|
|
pub mod namespace;
|
|
pub mod opts;
|
|
pub mod persistent_list;
|
|
pub mod range;
|
|
pub mod resource_files;
|
|
pub mod str;
|
|
pub mod task;
|
|
pub mod tid;
|
|
pub mod taskpool;
|
|
pub mod task_state;
|
|
pub mod vec;
|
|
pub mod workqueue;
|
|
|
|
pub fn breakpoint() {
|
|
unsafe { ::std::intrinsics::breakpoint() };
|
|
}
|
|
|
|
// Workaround for lack of `ptr_eq` on Arcs...
|
|
#[inline]
|
|
pub fn arc_ptr_eq<T: 'static + Send + Sync>(a: &Arc<T>, b: &Arc<T>) -> bool {
|
|
let a: &T = &**a;
|
|
let b: &T = &**b;
|
|
(a as *const T) == (b as *const T)
|
|
}
|