Remove once_cell dependency

This commit is contained in:
Filip Tibell 2025-04-23 13:20:56 +02:00
parent 02fb2dc662
commit 83fbcbb255
No known key found for this signature in database
6 changed files with 3 additions and 10 deletions

4
Cargo.lock generated
View file

@ -1562,7 +1562,6 @@ dependencies = [
"lune-utils",
"mlua",
"mlua-luau-scheduler",
"once_cell",
"reqwest",
"rustyline",
"self_cell",
@ -1582,7 +1581,6 @@ dependencies = [
"glam",
"lune-utils",
"mlua",
"once_cell",
"rand",
"rbx_binary",
"rbx_dom_weak",
@ -1698,7 +1696,6 @@ dependencies = [
"lune-utils",
"mlua",
"mlua-luau-scheduler",
"once_cell",
"rbx_cookie",
"roblox_install",
]
@ -1754,7 +1751,6 @@ dependencies = [
"console",
"dunce",
"mlua",
"once_cell",
"parking_lot",
"path-clean",
"pathdiff",

View file

@ -18,7 +18,6 @@ mlua = { version = "0.9.9", features = ["luau"] }
glam = "0.27"
rand = "0.8"
thiserror = "1.0"
once_cell = "1.17"
rbx_binary = "1.0.0"
rbx_dom_weak = "3.0.0"

View file

@ -16,7 +16,6 @@ workspace = true
mlua = { version = "0.9.9", features = ["luau"] }
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
once_cell = "1.17"
rbx_cookie = { version = "0.1.4", default-features = false }
roblox_install = "1.0.0"

View file

@ -1,8 +1,9 @@
#![allow(clippy::cargo_common_metadata)]
use std::sync::OnceLock;
use mlua::prelude::*;
use mlua_luau_scheduler::LuaSpawnExt;
use once_cell::sync::OnceCell;
use lune_roblox::{
document::{Document, DocumentError, DocumentFormat, DocumentKind},
@ -10,7 +11,7 @@ use lune_roblox::{
reflection::Database as ReflectionDatabase,
};
static REFLECTION_DATABASE: OnceCell<ReflectionDatabase> = OnceCell::new();
static REFLECTION_DATABASE: OnceLock<ReflectionDatabase> = OnceLock::new();
use lune_utils::TableBuilder;
use roblox_install::RobloxStudio;

View file

@ -19,7 +19,6 @@ tokio = { version = "1", default-features = false, features = ["fs"] }
console = "0.15"
dunce = "1.0"
once_cell = "1.17"
path-clean = "1.0"
pathdiff = "0.2"
parking_lot = "0.12.3"

View file

@ -58,7 +58,6 @@ console = "0.15"
dialoguer = "0.11"
directories = "5.0"
futures-util = "0.3"
once_cell = "1.17"
self_cell = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"