From 1a80667128cc5b44796b1afdbe93a35cc5c9ffa9 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Wed, 31 Jan 2024 09:16:21 +0100 Subject: [PATCH] chore: remove unused serde_derive --- Cargo.lock | 2 -- integrationtests/Cargo.toml | 1 - moksha-mint/Cargo.toml | 1 - moksha-mint/src/config.rs | 2 +- moksha-mint/src/lightning/alby.rs | 2 +- moksha-mint/src/lightning/cln.rs | 2 +- moksha-mint/src/lightning/lnbits.rs | 2 +- moksha-mint/src/lightning/lnd.rs | 2 +- 8 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index efb011d8..cc0aa257 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2834,7 +2834,6 @@ dependencies = [ "reqwest", "secp256k1 0.27.0", "serde", - "serde_derive", "serde_json", "tempfile", "testcontainers", @@ -2864,7 +2863,6 @@ dependencies = [ "reqwest", "secp256k1 0.28.1", "serde", - "serde_derive", "serde_json", "sqlx", "tempfile", diff --git a/integrationtests/Cargo.toml b/integrationtests/Cargo.toml index f1f92885..51aa006c 100644 --- a/integrationtests/Cargo.toml +++ b/integrationtests/Cargo.toml @@ -22,7 +22,6 @@ rand = "0.8.5" axum = "0.7.3" anyhow = { version = "1.0.79", features = ["backtrace"] } serde = { version = "1.0.195", features = ["derive"] } -serde_derive = "1.0.195" serde_json = "1.0.111" lightning-invoice = "0.27.0" lightning = "0.0.119" diff --git a/moksha-mint/Cargo.toml b/moksha-mint/Cargo.toml index 4e7df7f2..ca5e1f28 100644 --- a/moksha-mint/Cargo.toml +++ b/moksha-mint/Cargo.toml @@ -23,7 +23,6 @@ anyhow = { version = "1.0.75", features = ["backtrace"] } axum = { version = "0.7.3", features = ["http2"] } hyper = "0.14.28" serde = { version = "1.0.193", features = ["derive"] } -serde_derive = "1.0.171" serde_json = "1.0.108" tokio = { version = "1.34.0", features = ["full"] } tower-http = { version = "0.5.0", features = ["trace", "cors", "fs", "set-header"] } diff --git a/moksha-mint/src/config.rs b/moksha-mint/src/config.rs index 6589ba7b..50bea039 100644 --- a/moksha-mint/src/config.rs +++ b/moksha-mint/src/config.rs @@ -1,7 +1,7 @@ use std::{env, net::SocketAddr, path::PathBuf}; use moksha_core::primitives::{CurrencyUnit, Nut14, Nut15, PaymentMethod}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use crate::lightning::lnd::LndLightningSettings; diff --git a/moksha-mint/src/lightning/alby.rs b/moksha-mint/src/lightning/alby.rs index 79930693..42173669 100644 --- a/moksha-mint/src/lightning/alby.rs +++ b/moksha-mint/src/lightning/alby.rs @@ -2,7 +2,7 @@ use std::fmt::{self, Formatter}; use async_trait::async_trait; use hyper::{header::CONTENT_TYPE, http::HeaderValue}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use tracing::info; use url::Url; diff --git a/moksha-mint/src/lightning/cln.rs b/moksha-mint/src/lightning/cln.rs index 6d3f4cc9..7f2526f5 100644 --- a/moksha-mint/src/lightning/cln.rs +++ b/moksha-mint/src/lightning/cln.rs @@ -1,7 +1,7 @@ use async_trait::async_trait; use cln_grpc::pb::{amount_or_any, Amount, AmountOrAny}; use cln_grpc::pb::{listinvoices_invoices::ListinvoicesInvoicesStatus, node_client::NodeClient}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use std::fmt::{self}; use std::{fmt::Formatter, path::PathBuf, sync::Arc}; diff --git a/moksha-mint/src/lightning/lnbits.rs b/moksha-mint/src/lightning/lnbits.rs index 896c9729..6b699721 100644 --- a/moksha-mint/src/lightning/lnbits.rs +++ b/moksha-mint/src/lightning/lnbits.rs @@ -2,7 +2,7 @@ use std::fmt::{self, Formatter}; use async_trait::async_trait; use hyper::{header::CONTENT_TYPE, http::HeaderValue}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use url::Url; use crate::{ diff --git a/moksha-mint/src/lightning/lnd.rs b/moksha-mint/src/lightning/lnd.rs index db6f14dc..f6cad269 100644 --- a/moksha-mint/src/lightning/lnd.rs +++ b/moksha-mint/src/lightning/lnd.rs @@ -11,7 +11,7 @@ use crate::{ }; use async_trait::async_trait; use fedimint_tonic_lnd::Client; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use tokio::sync::{MappedMutexGuard, Mutex, MutexGuard}; use url::Url;