diff --git a/Cargo.toml b/Cargo.toml index e84fc19..ad0fb39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,8 +13,8 @@ categories = [ "network-programming", "asynchronous" ] [dependencies] bytes = "1.5.0" -fxhash = "0.2.1" rand = "0.9.1" +rustc-hash = "2.1.1" slab = "0.4.9" thiserror = "2.0.16" log = "0.4.21" diff --git a/src/association/mod.rs b/src/association/mod.rs index 4f151f1..3db8bd0 100644 --- a/src/association/mod.rs +++ b/src/association/mod.rs @@ -33,9 +33,9 @@ use timer::{RtoManager, Timer, TimerTable, ACK_INTERVAL}; use crate::association::stream::RecvSendState; use bytes::Bytes; -use fxhash::FxHashMap; use log::{debug, error, trace, warn}; use rand::random; +use rustc_hash::FxHashMap; use std::collections::{HashMap, VecDeque}; use std::net::{IpAddr, SocketAddr}; use std::str::FromStr; diff --git a/src/endpoint/mod.rs b/src/endpoint/mod.rs index afa85d7..1aa743a 100644 --- a/src/endpoint/mod.rs +++ b/src/endpoint/mod.rs @@ -21,9 +21,9 @@ use crate::util::{AssociationIdGenerator, RandomAssociationIdGenerator}; use crate::{EcnCodepoint, Payload, Transmit}; use bytes::Bytes; -use fxhash::FxHashMap; use log::{debug, trace}; use rand::{rngs::StdRng, SeedableRng}; +use rustc_hash::FxHashMap; use slab::Slab; use thiserror::Error;