use foldhash

This commit is contained in:
monosans
2025-08-12 21:36:27 +03:00
parent e63563ed9f
commit ee08110a20
8 changed files with 12 additions and 6 deletions
Generated
+1
View File
@@ -1431,6 +1431,7 @@ dependencies = [
"crossterm",
"dirs",
"fancy-regex",
"foldhash",
"futures",
"hickory-resolver",
"httpdate",
+1
View File
@@ -12,6 +12,7 @@ crossterm = { version = "=0.28.1", features = [
], optional = true }
dirs = "=6.0.0"
fancy-regex = "=0.16.1"
foldhash = "=0.1.5"
futures = { version = "=0.3.31", optional = true }
hickory-resolver = "=0.25.2"
httpdate = "=1.0.3"
+2 -1
View File
@@ -1,11 +1,12 @@
use std::{
collections::{HashMap, hash_map},
collections::hash_map,
path::{Path, PathBuf},
sync::Arc,
time::Duration,
};
use color_eyre::eyre::{OptionExt as _, WrapErr as _};
use foldhash::HashMap;
use crate::{http::BasicAuth, proxy::ProxyType, raw_config, utils::is_docker};
+2 -1
View File
@@ -1,11 +1,12 @@
use std::{
collections::HashMap,
fmt::Display,
net::SocketAddr,
sync::Arc,
time::{Duration, SystemTime},
};
use foldhash::HashMap;
use crate::config::Config;
const DEFAULT_MAX_RETRIES: u32 = 2;
+1 -1
View File
@@ -1,5 +1,4 @@
use std::{
collections::HashMap,
io, iter,
net::{IpAddr, Ipv4Addr},
sync::Arc,
@@ -7,6 +6,7 @@ use std::{
};
use color_eyre::eyre::WrapErr as _;
use foldhash::HashMap;
use crate::{
config::Config,
+1 -1
View File
@@ -1,11 +1,11 @@
use std::{
collections::HashMap,
env,
num::NonZero,
path::{Path, PathBuf},
};
use color_eyre::eyre::WrapErr as _;
use foldhash::HashMap;
use serde::Deserialize as _;
use crate::http::BasicAuth;
+2 -1
View File
@@ -1,6 +1,7 @@
use std::{collections::HashSet, sync::Arc};
use std::sync::Arc;
use color_eyre::eyre::{OptionExt as _, WrapErr as _};
use foldhash::{HashSet, HashSetExt as _};
#[cfg(feature = "tui")]
use crate::event::{AppEvent, Event};
+2 -1
View File
@@ -4,12 +4,13 @@
clippy::wildcard_enum_match_arm
)]
use std::{collections::HashMap, time::Duration};
use std::time::Duration;
use color_eyre::eyre::WrapErr as _;
use crossterm::event::{
Event as CrosstermEvent, KeyCode, KeyModifiers, MouseEventKind,
};
use foldhash::HashMap;
use futures::StreamExt as _;
use ratatui::{
Frame,