mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40: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",
|
"lune-utils",
|
||||||
"mlua",
|
"mlua",
|
||||||
"mlua-luau-scheduler 0.0.1",
|
"mlua-luau-scheduler 0.0.1",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
"tokio",
|
"tokio",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1694,8 +1696,6 @@ dependencies = [
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"path-clean",
|
"path-clean",
|
||||||
"pathdiff",
|
"pathdiff",
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
"tokio",
|
"tokio",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ task = ["dep:lune-std-task"]
|
||||||
mlua = { version = "0.9.7", features = ["luau"] }
|
mlua = { version = "0.9.7", features = ["luau"] }
|
||||||
mlua-luau-scheduler = "0.0.1"
|
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"] }
|
tokio = { version = "1", default-features = false, features = ["fs", "sync"] }
|
||||||
|
|
||||||
lune-utils = { version = "0.1.0", path = "../lune-utils" }
|
lune-utils = { version = "0.1.0", path = "../lune-utils" }
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
use mlua::prelude::*;
|
use mlua::prelude::*;
|
||||||
|
|
||||||
use lune_utils::{
|
use lune_utils::path::{clean_path_and_make_absolute, diff_path, get_current_dir};
|
||||||
path::{clean_path_and_make_absolute, diff_path, get_current_dir},
|
|
||||||
LuauRc,
|
use crate::luaurc::LuauRc;
|
||||||
};
|
|
||||||
|
|
||||||
use super::context::*;
|
use super::context::*;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ use mlua::prelude::*;
|
||||||
mod global;
|
mod global;
|
||||||
mod globals;
|
mod globals;
|
||||||
mod library;
|
mod library;
|
||||||
|
mod luaurc;
|
||||||
|
|
||||||
pub use self::global::LuneStandardGlobal;
|
pub use self::global::LuneStandardGlobal;
|
||||||
pub use self::globals::version::set_global_version;
|
pub use self::globals::version::set_global_version;
|
||||||
|
|
|
@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
|
||||||
use serde_json::Value as JsonValue;
|
use serde_json::Value as JsonValue;
|
||||||
use tokio::fs::read;
|
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";
|
const LUAURC_FILE: &str = ".luaurc";
|
||||||
|
|
|
@ -20,6 +20,3 @@ dunce = "1.0"
|
||||||
once_cell = "1.17"
|
once_cell = "1.17"
|
||||||
path-clean = "1.0"
|
path-clean = "1.0"
|
||||||
pathdiff = "0.2"
|
pathdiff = "0.2"
|
||||||
|
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
|
||||||
serde_json = "1.0"
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
#![allow(clippy::cargo_common_metadata)]
|
#![allow(clippy::cargo_common_metadata)]
|
||||||
|
|
||||||
mod luaurc;
|
|
||||||
mod table_builder;
|
mod table_builder;
|
||||||
mod version_string;
|
mod version_string;
|
||||||
|
|
||||||
pub mod fmt;
|
pub mod fmt;
|
||||||
pub mod path;
|
pub mod path;
|
||||||
|
|
||||||
pub use self::luaurc::LuauRc;
|
|
||||||
pub use self::table_builder::TableBuilder;
|
pub use self::table_builder::TableBuilder;
|
||||||
pub use self::version_string::get_version_string;
|
pub use self::version_string::get_version_string;
|
||||||
|
|
Loading…
Add table
Reference in a new issue