Updated dependencies

This commit is contained in:
StNicolay 2025-01-02 14:45:04 +03:00
parent 5a276f2efc
commit d064b8d571
Signed by: StNicolay
GPG Key ID: 9693D04DCD962B0D
3 changed files with 561 additions and 347 deletions

900
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,6 @@ pedantic = "warn"
all = "warn" all = "warn"
[dependencies] [dependencies]
ahash = "0.8"
anyhow = { version = "1", features = ["backtrace"] } anyhow = { version = "1", features = ["backtrace"] }
arrayvec = "0.7" arrayvec = "0.7"
base64 = "0.22" base64 = "0.22"
@ -28,9 +27,10 @@ derive_more = { version = "1", features = [
"from", "from",
] } ] }
dotenvy = "0.15" dotenvy = "0.15"
foldhash = "0.1.4"
futures = "0.3" futures = "0.3"
hex = "0.4" hex = "0.4"
itertools = "0.13" itertools = "0.14"
parking_lot = "0.12" parking_lot = "0.12"
pbkdf2 = { version = "0.12", features = ["parallel"] } pbkdf2 = { version = "0.12", features = ["parallel"] }
rand = { version = "0.8", default-features = false, features = [ rand = { version = "0.8", default-features = false, features = [

View File

@ -60,7 +60,7 @@ async fn download_file(bot: &Throttle<Bot>, file: &FileMeta) -> crate::Result<Bo
fn process_accounts( fn process_accounts(
accounts: &mut [DecryptedAccount], accounts: &mut [DecryptedAccount],
existing_names: ahash::HashSet<String>, existing_names: foldhash::HashSet<String>,
locale: LocaleRef, locale: LocaleRef,
) -> crate::Result<Result<(), String>> { ) -> crate::Result<Result<(), String>> {
for account in accounts.iter_mut() { for account in accounts.iter_mut() {
@ -135,7 +135,7 @@ fn process_accounts(
fn user_from_bytes( fn user_from_bytes(
bytes: impl AsRef<[u8]>, bytes: impl AsRef<[u8]>,
existing_names: ahash::HashSet<String>, existing_names: foldhash::HashSet<String>,
locale: LocaleRef, locale: LocaleRef,
) -> crate::Result<Result<User, String>> { ) -> crate::Result<Result<User, String>> {
let mut user: User = serde_json::from_slice(bytes.as_ref())?; let mut user: User = serde_json::from_slice(bytes.as_ref())?;