From 2fa5215429b2273b858a08412fbafe9de6d70d15 Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Sat, 23 Feb 2019 22:11:37 +0100 Subject: [PATCH] refactor(serde): Use derive as feature of serde, bump version --- Cargo.lock | 6 ++++-- Cargo.toml | 7 +++---- src/config.rs | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cf26306..8924fe6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -653,7 +653,7 @@ dependencies = [ [[package]] name = "mastodon-twitter-sync" -version = "1.1.0" +version = "1.2.0" dependencies = [ "chrono 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "dissolve 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -665,7 +665,6 @@ dependencies = [ "regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.9.10 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.88 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.88 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.38 (registry+https://github.com/rust-lang/crates.io-index)", "tempfile 3.0.7 (registry+https://github.com/rust-lang/crates.io-index)", "tokio 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1224,6 +1223,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" name = "serde" version = "1.0.88" source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "serde_derive 1.0.88 (registry+https://github.com/rust-lang/crates.io-index)", +] [[package]] name = "serde_derive" diff --git a/Cargo.toml b/Cargo.toml index 508dd27..abcfae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mastodon-twitter-sync" -version = "1.1.0" -authors = ["Klaus Purer "] +version = "1.2.0" +authors = ["Klaus Purer "] edition = "2018" [dependencies] @@ -20,8 +20,7 @@ mammut = { git = "https://github.com/klausi/Mammut", rev = "2ed8d6b9a45df8b111f6 mime = ">=0.3.13" regex = ">=0.2.2" reqwest = ">=0.9.5" -serde = ">=1.0" -serde_derive = ">=1.0.19" +serde = { version = ">=1.0", features = ["derive"] } tokio = ">=0.1.15" tempfile = "3" toml = ">=0.4.5" diff --git a/src/config.rs b/src/config.rs index da3e0aa..f8e0737 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,6 +1,6 @@ use chrono::prelude::*; use mammut::Data; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use std::collections::BTreeMap; use std::fs::remove_file; use std::fs::File;