mirror of
https://github.com/lune-org/lune.git
synced 2025-04-04 10:30:54 +01:00
Move luaurc struct and its dependencies from lune-utils to lune-std
This commit is contained in:
parent
d0c15e9cbc
commit
00f601e4e9
7 changed files with 9 additions and 12 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -1571,6 +1571,8 @@ dependencies = [
|
|||
"lune-utils",
|
||||
"mlua",
|
||||
"mlua-luau-scheduler 0.0.1",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
|
@ -1694,8 +1696,6 @@ dependencies = [
|
|||
"once_cell",
|
||||
"path-clean",
|
||||
"pathdiff",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ task = ["dep:lune-std-task"]
|
|||
mlua = { version = "0.9.7", features = ["luau"] }
|
||||
mlua-luau-scheduler = "0.0.1"
|
||||
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
tokio = { version = "1", default-features = false, features = ["fs", "sync"] }
|
||||
|
||||
lune-utils = { version = "0.1.0", path = "../lune-utils" }
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
use mlua::prelude::*;
|
||||
|
||||
use lune_utils::{
|
||||
path::{clean_path_and_make_absolute, diff_path, get_current_dir},
|
||||
LuauRc,
|
||||
};
|
||||
use lune_utils::path::{clean_path_and_make_absolute, diff_path, get_current_dir};
|
||||
|
||||
use crate::luaurc::LuauRc;
|
||||
|
||||
use super::context::*;
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ use mlua::prelude::*;
|
|||
mod global;
|
||||
mod globals;
|
||||
mod library;
|
||||
mod luaurc;
|
||||
|
||||
pub use self::global::LuneStandardGlobal;
|
||||
pub use self::globals::version::set_global_version;
|
||||
|
|
|
@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
|
|||
use serde_json::Value as JsonValue;
|
||||
use tokio::fs::read;
|
||||
|
||||
use crate::path::{clean_path, clean_path_and_make_absolute};
|
||||
use lune_utils::path::{clean_path, clean_path_and_make_absolute};
|
||||
|
||||
const LUAURC_FILE: &str = ".luaurc";
|
||||
|
|
@ -20,6 +20,3 @@ dunce = "1.0"
|
|||
once_cell = "1.17"
|
||||
path-clean = "1.0"
|
||||
pathdiff = "0.2"
|
||||
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#![allow(clippy::cargo_common_metadata)]
|
||||
|
||||
mod luaurc;
|
||||
mod table_builder;
|
||||
mod version_string;
|
||||
|
||||
pub mod fmt;
|
||||
pub mod path;
|
||||
|
||||
pub use self::luaurc::LuauRc;
|
||||
pub use self::table_builder::TableBuilder;
|
||||
pub use self::version_string::get_version_string;
|
||||
|
|
Loading…
Add table
Reference in a new issue