mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-24 12:13:05 +00:00
Replace fxhash with rustc_hash, its successor
This commit is contained in:
committed by
Dirkjan Ochtman
parent
4b0daad5ce
commit
fcba74f929
@@ -24,7 +24,7 @@ native-certs = ["rustls-native-certs"]
|
||||
[dependencies]
|
||||
arbitrary = { version = "1.0.1", features = ["derive"], optional = true }
|
||||
bytes = "1"
|
||||
fxhash = "0.2.1"
|
||||
rustc-hash = "1.1"
|
||||
rand = "0.8"
|
||||
ring = { version = "0.16.7", optional = true }
|
||||
# If rustls gets updated to a new version which contains
|
||||
|
||||
@@ -4,7 +4,7 @@ use std::{
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
|
||||
use fxhash::FxHashSet;
|
||||
use rustc_hash::FxHashSet;
|
||||
use tracing::{debug, trace};
|
||||
|
||||
use crate::{shared::IssuedCid, TransportError};
|
||||
|
||||
@@ -6,7 +6,7 @@ use std::{
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
|
||||
use fxhash::FxHashSet;
|
||||
use rustc_hash::FxHashSet;
|
||||
|
||||
use super::assembler::Assembler;
|
||||
use crate::{
|
||||
|
||||
@@ -5,7 +5,7 @@ use std::{
|
||||
};
|
||||
|
||||
use bytes::BufMut;
|
||||
use fxhash::FxHashMap;
|
||||
use rustc_hash::FxHashMap;
|
||||
use tracing::{debug, trace};
|
||||
|
||||
use super::{
|
||||
|
||||
@@ -9,8 +9,8 @@ use std::{
|
||||
};
|
||||
|
||||
use bytes::{BufMut, Bytes, BytesMut};
|
||||
use fxhash::FxHashMap;
|
||||
use rand::{rngs::StdRng, Rng, RngCore, SeedableRng};
|
||||
use rustc_hash::FxHashMap;
|
||||
use slab::Slab;
|
||||
use thiserror::Error;
|
||||
use tracing::{debug, trace, warn};
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ maintenance = { status = "experimental" }
|
||||
bytes = "1"
|
||||
futures-util = { version = "0.3.11", default-features = false, features = ["io"] }
|
||||
futures-channel = "0.3.11"
|
||||
fxhash = "0.2.1"
|
||||
rustc-hash = "1.1"
|
||||
proto = { package = "quinn-proto", path = "../quinn-proto", version = "0.8", default-features = false }
|
||||
rustls = { version = "0.20", default-features = false, features = ["quic"], optional = true }
|
||||
thiserror = "1.0.21"
|
||||
|
||||
@@ -13,8 +13,8 @@ use std::{
|
||||
use bytes::Bytes;
|
||||
use futures_channel::{mpsc, oneshot};
|
||||
use futures_util::{FutureExt, StreamExt};
|
||||
use fxhash::FxHashMap;
|
||||
use proto::{ConnectionError, ConnectionHandle, ConnectionStats, Dir, StreamEvent, StreamId};
|
||||
use rustc_hash::FxHashMap;
|
||||
use thiserror::Error;
|
||||
use tokio::time::{sleep_until, Instant as TokioInstant, Sleep};
|
||||
use tracing::info_span;
|
||||
|
||||
@@ -15,10 +15,10 @@ use std::{
|
||||
use bytes::Bytes;
|
||||
use futures_channel::mpsc;
|
||||
use futures_util::StreamExt;
|
||||
use fxhash::FxHashMap;
|
||||
use proto::{
|
||||
self as proto, ClientConfig, ConnectError, ConnectionHandle, DatagramEvent, ServerConfig,
|
||||
};
|
||||
use rustc_hash::FxHashMap;
|
||||
use udp::{RecvMeta, UdpSocket, UdpState, BATCH_SIZE};
|
||||
|
||||
use crate::{
|
||||
|
||||
Reference in New Issue
Block a user