From 9281922c7246422289aba48d1e4e0558bbe9d84a Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Mon, 30 Sep 2019 22:55:16 -0400 Subject: [PATCH] Replace serde_derive with serde with derive feature --- Cargo.lock | 4 +++- Cargo.toml | 3 +-- src/keymapper.rs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a64a461..7f3639b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,7 +88,6 @@ dependencies = [ "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", "nix 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)", "toml 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", "uinput-sys 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -97,6 +96,9 @@ dependencies = [ name = "serde" version = "1.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "serde_derive 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)", +] [[package]] name = "serde_derive" diff --git a/Cargo.toml b/Cargo.toml index 77cfe9e..c6652e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,5 @@ nix = "0.15.0" uinput-sys = "0.1.7" getopts = "0.2.21" toml = "0.5.3" -serde_derive = "1.0.101" -serde = "1.0.101" +serde = { version = "1.0.101", features = ["derive"] } inotify = { version = "0.7.0", default-features = false, features = [] } diff --git a/src/keymapper.rs b/src/keymapper.rs index 406f942..b95e76e 100644 --- a/src/keymapper.rs +++ b/src/keymapper.rs @@ -400,7 +400,7 @@ impl KeyMapper for Key { } use std::path::Path; -use serde_derive::Deserialize; +use serde::Deserialize; #[derive(Deserialize, Debug)] pub struct KeymapConfig {