diff --git a/crates/vfox/src/config.rs b/crates/vfox/src/config.rs index 4eecc71aba..654625b692 100644 --- a/crates/vfox/src/config.rs +++ b/crates/vfox/src/config.rs @@ -49,7 +49,7 @@ pub fn arch() -> String { // NOTE: This logic mirrors is_musl_system() in src/platform.rs. Keep in sync. #[cfg(target_os = "linux")] pub(crate) fn env_type() -> Option { - use once_cell::sync::Lazy; + use std::sync::LazyLock as Lazy; static ENV_TYPE: Lazy> = Lazy::new(|| { // Allow explicit override via environment variable (only gnu/musl accepted) if let Ok(val) = std::env::var("MISE_LIBC") { diff --git a/crates/vfox/src/registry.rs b/crates/vfox/src/registry.rs index d9ba5701bf..a5b2be56ae 100644 --- a/crates/vfox/src/registry.rs +++ b/crates/vfox/src/registry.rs @@ -1,7 +1,7 @@ use std::collections::BTreeMap; use std::str::FromStr; -use once_cell::sync::Lazy; +use std::sync::LazyLock as Lazy; use url::Url; static SDKS: Lazy> = Lazy::new(|| { diff --git a/crates/vfox/src/runtime.rs b/crates/vfox/src/runtime.rs index 7dc7a79d5b..268c21a732 100644 --- a/crates/vfox/src/runtime.rs +++ b/crates/vfox/src/runtime.rs @@ -1,7 +1,7 @@ use crate::config::{arch, env_type, os}; use mlua::{UserData, UserDataFields}; -use once_cell::sync::Lazy; use std::path::PathBuf; +use std::sync::LazyLock as Lazy; use std::sync::Mutex; #[derive(Debug, Clone)] diff --git a/src/task/task_file_providers/remote_task_git.rs b/src/task/task_file_providers/remote_task_git.rs index 15cedff7e8..a52fd212be 100644 --- a/src/task/task_file_providers/remote_task_git.rs +++ b/src/task/task_file_providers/remote_task_git.rs @@ -1,7 +1,7 @@ use crate::Result; -use once_cell::sync::Lazy; use regex::Regex; use std::path::PathBuf; +use std::sync::LazyLock as Lazy; use async_trait::async_trait;