Skip to content

Commit

Permalink
replace derive feature on serde with a separate serde_derive dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Fladung authored and pr2502 committed Aug 25, 2023
1 parent 6e27fe6 commit ed4847f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 32 deletions.
58 changes: 29 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ clap = { version = "4.3.0", features = ["derive", "env"] }
directories = "4.0.1"
env_logger = "0.10.0"
log = "0.4.14"
serde = { version = "1.0.136, < 1.0.172", features = ["derive"] }
serde = { version = "1.0.186" }
serde_derive = { version = "1.0.186" }
serde_json = "1.0.78"
tokio = { version = "1.15.0", features = ["fs", "io-std", "io-util", "macros", "net", "parking_lot", "process", "rt-multi-thread", "sync", "time"] }
toml = "0.5.8"
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use anyhow::Context;
use directories::ProjectDirs;
use serde::de::{Error, Unexpected};
use serde::{Deserialize, Deserializer, Serialize};
use serde::{Deserialize, Deserializer};
use serde_derive::{Deserialize, Serialize};
use std::net::{IpAddr, Ipv4Addr};
use tokio::fs;
use tokio::sync::OnceCell;
Expand Down
2 changes: 1 addition & 1 deletion src/proto.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::{ensure, Context, Result};
use serde::{Deserialize, Serialize};
use serde_derive::{Deserialize, Serialize};
use std::env;
use tokio::io::{AsyncBufRead, AsyncBufReadExt};

Expand Down

0 comments on commit ed4847f

Please sign in to comment.