From 174f76ddb7961ffe00c6379bd149f5d7ee6c2390 Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Tue, 12 Apr 2022 20:33:08 +0800 Subject: [PATCH] drop the need of serde_derive Signed-off-by: Gris Ge --- src/cli/Cargo.toml | 3 +-- src/cli/npc.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cli/Cargo.toml b/src/cli/Cargo.toml index 645e49c..b945b58 100644 --- a/src/cli/Cargo.toml +++ b/src/cli/Cargo.toml @@ -16,9 +16,8 @@ name = "npc" path = "npc.rs" [dependencies] -serde = "1.0" serde_json = "1.0" -serde_derive = "1.0" +serde = { version = "1.0.136", features = ["derive"] } clap = { version = "3.1.2", features = ["cargo"] } nispor = { path = "../lib", version="1.2.5" } serde_yaml = "0.8" diff --git a/src/cli/npc.rs b/src/cli/npc.rs index a2b4f70..9f004d0 100644 --- a/src/cli/npc.rs +++ b/src/cli/npc.rs @@ -17,7 +17,7 @@ use nispor::{ Iface, IfaceConf, IfaceState, IfaceType, NetConf, NetState, NisporError, Route, RouteRule, }; -use serde_derive::Serialize; +use serde::Serialize; use std::collections::HashMap; use std::fmt; use std::io::{stderr, stdout, Write}; -- 2.31.1