Cargo.lock
This commit is contained in:
Luna Yao
2026-05-13 21:30:59 +02:00
parent 743ec3c95e
commit e31fee1a6d
3 changed files with 5 additions and 8 deletions
+2 -3
View File
@@ -74,9 +74,10 @@ async-trait = "0.1.74"
maplit = "1.0.2"
dashmap = "6.0"
moka = { version = "0.12", features = ["future"] }
timedmap = "=1.0.1"
moka = { version = "0.12", features = ["future"] }
# for full-path zero-copy
zerocopy = { version = "0.7.32", features = ["derive", "simd"] }
bytes = "1.5.0"
@@ -176,8 +177,6 @@ petgraph = "0.8.1"
ordered_hash_map = "0.5.0"
indexmap = "2.13.1"
moka = { version = "0.12.13", features = ["future"] }
# for wireguard
boringtun = { package = "boringtun-easytier", version = "0.6.1", optional = true }
+2 -4
View File
@@ -6,6 +6,7 @@ use std::{
time::{Duration, Instant},
};
use crate::utils::hostname;
use anyhow::Context as _;
#[cfg(unix)]
use nix::{
@@ -233,10 +234,7 @@ fn machine_uid_seed() -> Option<String> {
fn linux_machine_id_seed(machine_uid: &str) -> String {
let mut seed = format!("machine_uid={machine_uid}");
let hostname = gethostname::gethostname()
.to_string_lossy()
.trim()
.to_string();
let hostname = hostname();
if !hostname.is_empty() {
seed.push_str("\nhostname=");
seed.push_str(&hostname);
+1 -1
View File
@@ -2,7 +2,7 @@ use delegate::delegate;
use derivative::Derivative;
use derive_more::{AsMut, AsRef, Deref, DerefMut, From, IntoIterator};
use prost::Message;
use serde::Serialize;
use serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
/// Generates a stable digest strictly within the lifecycle of the current process.