Replace serde_derive with serde with derive feature

This commit is contained in:
Travis Burtrum 2019-09-30 22:55:16 -04:00
parent c2efbb6fd1
commit 9281922c72
3 changed files with 5 additions and 4 deletions

4
Cargo.lock generated
View File

@ -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"

View File

@ -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 = [] }

View File

@ -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 {