diff --git a/Cargo.lock b/Cargo.lock index c662ca56b3d..a0fcecef575 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4417,7 +4417,6 @@ dependencies = [ "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.88 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.88 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", "servo_config_plugins 0.0.1", "servo_geometry 0.0.1", diff --git a/components/config/Cargo.toml b/components/config/Cargo.toml index 274c4cc4492..24318089e01 100644 --- a/components/config/Cargo.toml +++ b/components/config/Cargo.toml @@ -20,8 +20,7 @@ getopts = "0.2.11" lazy_static = "1" log = "0.4" num_cpus = "1.1.0" -serde = "1.0" -serde_derive = "1.0" +serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" servo_geometry = {path = "../geometry"} servo_url = {path = "../url"} diff --git a/components/config/tests/prefs.rs b/components/config/tests/prefs.rs index bcaa5f5bb0e..fd42bf7e047 100644 --- a/components/config/tests/prefs.rs +++ b/components/config/tests/prefs.rs @@ -3,7 +3,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #[macro_use] -extern crate serde_derive; +extern crate serde; use servo_config::basedir; use servo_config::pref_util::Preferences;