From 2d47498a63d2376c39a4443e00d8f60979baf400 Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Fri, 23 Feb 2024 09:44:41 +0900 Subject: [PATCH 1/3] Update clap to v4 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1e1b25e..574bea3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,5 +26,5 @@ stun_codec = "0.2" trackable = "1" [dev-dependencies] -clap = { version = "3", features = ["derive"] } +clap = { version = "4", features = ["derive"] } fibers_global = "0.1" From 02daa3db5c3db0a0120169f23da2f54aa1783a1e Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Fri, 23 Feb 2024 09:46:09 +0900 Subject: [PATCH 2/3] Update stun_codec to v0.3 --- Cargo.toml | 2 +- src/message.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 574bea3..b6c49ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ fibers_timeout_queue = "0.1" fibers_transport = "0.1.3" futures = "0.1" rand = "0.8" -stun_codec = "0.2" +stun_codec = "0.3" trackable = "1" [dev-dependencies] diff --git a/src/message.rs b/src/message.rs index bb2aab9..5b9a2cb 100644 --- a/src/message.rs +++ b/src/message.rs @@ -331,7 +331,7 @@ impl ErrorResponse { request.method(), request.transaction_id(), ); - message.add_attribute(error.into()); + message.add_attribute(error); ErrorResponse(message) } From e516597358ecd100c4e680eb3bb137d68960f912 Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Fri, 23 Feb 2024 09:48:55 +0900 Subject: [PATCH 3/3] Fix nightly compile error --- src/lib.rs | 10 ---------- src/server.rs | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f85db6b..6329b64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,16 +70,6 @@ //! //! [RFC 5389]: https://tools.ietf.org/html/rfc5389 #![warn(missing_docs)] -extern crate bytecodec; -extern crate factory; -extern crate fibers; -#[cfg(test)] -extern crate fibers_global; -extern crate fibers_timeout_queue; -extern crate fibers_transport; -extern crate futures; -extern crate rand; -extern crate stun_codec; #[macro_use] extern crate trackable; diff --git a/src/server.rs b/src/server.rs index 656a5b7..2ba045b 100644 --- a/src/server.rs +++ b/src/server.rs @@ -15,7 +15,7 @@ use factory::DefaultFactory; use factory::Factory; use fibers::sync::mpsc; use fibers::{BoxSpawn, Spawn}; -use fibers_transport::{self, FixedPeerTransporter, TcpTransport, UdpTransport}; +use fibers_transport::{FixedPeerTransporter, TcpTransport, UdpTransport}; use futures::{Async, Future, Poll, Stream}; use std::fmt; use std::net::SocketAddr;