Replace fxhash with rustc_hash, its successor

This commit is contained in:
Benjamin Saunders
2021-11-21 11:56:18 -08:00
committed by Dirkjan Ochtman
parent 4b0daad5ce
commit fcba74f929
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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};
+1 -1
View File
@@ -6,7 +6,7 @@ use std::{
time::{Duration, Instant},
};
use fxhash::FxHashSet;
use rustc_hash::FxHashSet;
use super::assembler::Assembler;
use crate::{
+1 -1
View File
@@ -5,7 +5,7 @@ use std::{
};
use bytes::BufMut;
use fxhash::FxHashMap;
use rustc_hash::FxHashMap;
use tracing::{debug, trace};
use super::{
+1 -1
View File
@@ -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
View File
@@ -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"
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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::{