Skip to content

Commit

Permalink
style: Remove some unused extern crate declarations now that style is…
Browse files Browse the repository at this point in the history
… in rust 2018.

This avoids some warnings.
  • Loading branch information
emilio committed Jun 18, 2020
1 parent e548425 commit 059a50b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 52 deletions.
9 changes: 0 additions & 9 deletions components/style/build.rs
Expand Up @@ -4,15 +4,6 @@

#[macro_use]
extern crate lazy_static;
#[cfg(feature = "gecko")]
extern crate bindgen;
#[cfg(feature = "gecko")]
extern crate log;
#[cfg(feature = "gecko")]
extern crate regex;
#[cfg(feature = "gecko")]
extern crate toml;
extern crate walkdir;

use std::env;
use std::path::Path;
Expand Down
2 changes: 0 additions & 2 deletions components/style/encoding_support.rs
Expand Up @@ -4,8 +4,6 @@

//! Parsing stylesheets from bytes (not `&str`).

extern crate encoding_rs;

use crate::context::QuirksMode;
use crate::error_reporting::ParseErrorReporter;
use crate::media_queries::MediaList;
Expand Down
43 changes: 2 additions & 41 deletions components/style/lib.rs
Expand Up @@ -25,32 +25,20 @@

#![deny(missing_docs)]

extern crate app_units;
extern crate arrayvec;
extern crate atomic_refcell;
#[macro_use]
extern crate bitflags;
#[allow(unused_extern_crates)]
extern crate byteorder;
#[macro_use]
extern crate cssparser;
#[macro_use]
extern crate debug_unreachable;
#[macro_use]
extern crate derive_more;
extern crate euclid;
extern crate fallible;
extern crate fxhash;
#[cfg(feature = "gecko")]
#[macro_use]
pub mod gecko_string_cache;
extern crate hashglobe;
#[cfg(feature = "servo")]
#[macro_use]
extern crate html5ever;
extern crate indexmap;
extern crate itertools;
extern crate itoa;
#[macro_use]
extern crate lazy_static;
#[macro_use]
Expand All @@ -60,48 +48,21 @@ extern crate malloc_size_of;
#[macro_use]
extern crate malloc_size_of_derive;
#[cfg(feature = "gecko")]
pub extern crate nsstring;
pub use nsstring;
#[cfg(feature = "gecko")]
extern crate num_cpus;
#[macro_use]
extern crate num_derive;
extern crate num_integer;
extern crate num_traits;
extern crate owning_ref;
extern crate parking_lot;
extern crate precomputed_hash;
extern crate rayon;
extern crate selectors;
#[macro_use]
extern crate serde;
pub extern crate servo_arc;
pub use servo_arc;
#[cfg(feature = "servo")]
#[macro_use]
extern crate servo_atoms;
#[cfg(feature = "servo")]
extern crate servo_config;
#[cfg(feature = "servo")]
extern crate servo_url;
extern crate smallbitvec;
extern crate smallvec;
#[cfg(feature = "gecko")]
extern crate static_prefs;
#[cfg(feature = "servo")]
extern crate string_cache;
#[macro_use]
extern crate style_derive;
extern crate style_traits;
#[cfg(feature = "gecko")]
extern crate thin_slice;
extern crate time;
extern crate to_shmem;
#[macro_use]
extern crate to_shmem_derive;
extern crate uluru;
extern crate unicode_bidi;
#[allow(unused_extern_crates)]
extern crate unicode_segmentation;
extern crate void;

#[macro_use]
mod macros;
Expand Down

0 comments on commit 059a50b

Please sign in to comment.