Skip to content

Commit

Permalink
deps(relay): bump to stun-codec 0.3.3 (#2088)
Browse files Browse the repository at this point in the history
I've opened several PRs upstream for code that was missing in
`stun-codec` for our purposes. Those have been accepted and released, so
we can bump to that version now and remove that code.

Related: sile/stun_codec#14.
Related: sile/stun_codec#15.
Related: sile/stun_codec#16.
Related: sile/stun_codec#17.

A big thanks to @sile for the crate and being responsive maintainer
:partying_face:
  • Loading branch information
thomaseizinger authored Sep 21, 2023
1 parent e635ee3 commit 9d93d02
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 417 deletions.
4 changes: 2 additions & 2 deletions rust/Cargo.lock

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

2 changes: 1 addition & 1 deletion rust/relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ futures = "0.3.28"
hex = "0.4.3"
hex-literal = "0.4.1"
rand = "0.8.5"
stun_codec = "0.3.1"
stun_codec = "0.3.3"
tokio = { version = "1.32.0", features = ["macros", "rt-multi-thread", "net", "time"] }
tracing = { version = "0.1.37", features = ["log"] }
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "fmt"] }
Expand Down
4 changes: 1 addition & 3 deletions rust/relay/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
mod allocation;
mod auth;
mod net_ext;
mod rfc8656;
mod server;
mod sleep;
mod stun_codec_ext;
mod time_events;
mod udp_socket;

Expand All @@ -14,12 +12,12 @@ pub mod proptest;

pub use allocation::Allocation;
pub use net_ext::{IpAddrExt, SocketAddrExt};
pub use rfc8656::AddressFamily;
pub use server::{
Allocate, AllocationId, Attribute, Binding, ChannelBind, ChannelData, ClientMessage, Command,
CreatePermission, Refresh, Server,
};
pub use sleep::Sleep;
pub use stun_codec::rfc8656::attributes::AddressFamily;
pub use udp_socket::UdpSocket;

pub(crate) use time_events::TimeEvents;
Expand Down
2 changes: 1 addition & 1 deletion rust/relay/src/net_ext.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::rfc8656::AddressFamily;
use std::net::{IpAddr, SocketAddr};
use stun_codec::rfc8656::attributes::AddressFamily;

pub trait IpAddrExt {
fn family(&self) -> AddressFamily;
Expand Down
320 changes: 0 additions & 320 deletions rust/relay/src/rfc8656.rs

This file was deleted.

Loading

0 comments on commit 9d93d02

Please sign in to comment.