Browse Source

Replace serde_derive with serde with derive feature

macdev
Travis Burtrum 4 years ago
parent
commit
9281922c72
  1. 4
      Cargo.lock
  2. 3
      Cargo.toml
  3. 2
      src/keymapper.rs

4
Cargo.lock generated

@ -88,7 +88,6 @@ dependencies = [ @@ -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 = [ @@ -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"

3
Cargo.toml

@ -26,6 +26,5 @@ nix = "0.15.0" @@ -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 = [] }

2
src/keymapper.rs

@ -400,7 +400,7 @@ impl KeyMapper for Key { @@ -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 {

Loading…
Cancel
Save