Remove some unused dependencies from the util crate.

This commit is contained in:
Ms2ger 2016-02-05 13:06:14 +01:00
parent fb3fe3d784
commit 7e7683740a
5 changed files with 1 additions and 41 deletions

View file

@ -2034,19 +2034,15 @@ name = "util"
version = "0.0.1" version = "0.0.1"
dependencies = [ dependencies = [
"app_units 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "app_units 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"azure 0.4.0 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"cssparser 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "cssparser 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
"getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize_plugin 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"html5ever 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"hyper 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.0 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.0 (git+https://github.com/servo/ipc-channel)",
"js 0.1.1 (git+https://github.com/servo/rust-mozjs)", "js 0.1.1 (git+https://github.com/servo/rust-mozjs)",
"kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"layers 0.2.1 (git+https://github.com/servo/rust-layers)",
"lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -7,14 +7,6 @@ authors = ["The Servo Project Developers"]
name = "util" name = "util"
path = "lib.rs" path = "lib.rs"
# Disable doctests, because of linking issues with rustdoc. rustdoc compiles
# documentation tests with prefer-dynamic. This causes issues because rustc
# looks for -lazure, which does not exist (rust-azure is a dependency of
# rust-layers). This crate only has one documentation example anyway and it's
# imported from the rust-lang codebase.
# See https://github.com/rust-lang/rust/issues/21246
doctest = false
[features] [features]
# This feature allows us to avoid depending on various things we don't need for # This feature allows us to avoid depending on various things we don't need for
@ -22,25 +14,15 @@ doctest = false
# feature, but Cargo is generally set up for features to add dependencies, not # feature, but Cargo is generally set up for features to add dependencies, not
# remove them. So we do it this way, and request that all non-GeckoLib builds # remove them. So we do it this way, and request that all non-GeckoLib builds
# set this feature. # set this feature.
non-geckolib = ["azure", "js", "layers", "html5ever", "hyper"] non-geckolib = ["js"]
[dependencies.plugins] [dependencies.plugins]
path = "../plugins" path = "../plugins"
[dependencies.azure]
git = "https://github.com/servo/rust-azure"
features = ["plugins"]
optional = true
[dependencies.js] [dependencies.js]
git = "https://github.com/servo/rust-mozjs" git = "https://github.com/servo/rust-mozjs"
optional = true optional = true
[dependencies.layers]
git = "https://github.com/servo/rust-layers"
features = ["plugins"]
optional = true
[dependencies.ipc-channel] [dependencies.ipc-channel]
git = "https://github.com/servo/ipc-channel" git = "https://github.com/servo/ipc-channel"
@ -50,10 +32,8 @@ bitflags = "0.3"
cssparser = {version = "0.5.2", features = ["heap_size", "serde-serialization"]} cssparser = {version = "0.5.2", features = ["heap_size", "serde-serialization"]}
euclid = {version = "0.6.1", features = ["unstable", "plugins"]} euclid = {version = "0.6.1", features = ["unstable", "plugins"]}
getopts = "0.2.11" getopts = "0.2.11"
html5ever = {version = "0.4.2", features = ["heap_size", "unstable"], optional = true}
heapsize = "0.2.5" heapsize = "0.2.5"
heapsize_plugin = "0.1.2" heapsize_plugin = "0.1.2"
hyper = { version = "0.7", optional = true }
lazy_static = "0.1" lazy_static = "0.1"
libc = "0.2" libc = "0.2"
log = "0.3" log = "0.3"

View file

@ -21,8 +21,6 @@
extern crate alloc; extern crate alloc;
extern crate app_units; extern crate app_units;
#[cfg(feature = "non-geckolib")]
extern crate azure;
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
#[macro_use] #[macro_use]
@ -30,15 +28,9 @@ extern crate cssparser;
extern crate euclid; extern crate euclid;
extern crate getopts; extern crate getopts;
extern crate heapsize; extern crate heapsize;
#[cfg(feature = "non-geckolib")]
extern crate html5ever;
#[cfg(feature = "non-geckolib")]
extern crate hyper;
extern crate ipc_channel; extern crate ipc_channel;
#[cfg(feature = "non-geckolib")] #[cfg(feature = "non-geckolib")]
extern crate js; extern crate js;
#[cfg(feature = "non-geckolib")]
extern crate layers;
#[macro_use] #[macro_use]
extern crate lazy_static; extern crate lazy_static;
extern crate libc; extern crate libc;

4
ports/cef/Cargo.lock generated
View file

@ -1931,19 +1931,15 @@ name = "util"
version = "0.0.1" version = "0.0.1"
dependencies = [ dependencies = [
"app_units 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "app_units 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"azure 0.4.0 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"cssparser 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "cssparser 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
"getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize_plugin 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"html5ever 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"hyper 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.0 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.0 (git+https://github.com/servo/ipc-channel)",
"js 0.1.1 (git+https://github.com/servo/rust-mozjs)", "js 0.1.1 (git+https://github.com/servo/rust-mozjs)",
"kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"layers 0.2.1 (git+https://github.com/servo/rust-layers)",
"lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",

4
ports/gonk/Cargo.lock generated
View file

@ -1911,19 +1911,15 @@ name = "util"
version = "0.0.1" version = "0.0.1"
dependencies = [ dependencies = [
"app_units 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "app_units 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"azure 0.4.0 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"cssparser 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "cssparser 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
"getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize_plugin 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"html5ever 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"hyper 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ipc-channel 0.2.0 (git+https://github.com/servo/ipc-channel)", "ipc-channel 0.2.0 (git+https://github.com/servo/ipc-channel)",
"js 0.1.1 (git+https://github.com/servo/rust-mozjs)", "js 0.1.1 (git+https://github.com/servo/rust-mozjs)",
"kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"layers 0.2.1 (git+https://github.com/servo/rust-layers)",
"lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",