diff --git a/Cargo.lock b/Cargo.lock index d1ece5c..9e70603 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,7 +160,6 @@ dependencies = [ name = "irust_repl" version = "0.24.6" dependencies = [ - "once_cell", "serde", "serde_json", "uuid", @@ -233,12 +232,6 @@ dependencies = [ "windows-sys", ] -[[package]] -name = "once_cell" -version = "1.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" - [[package]] name = "option-ext" version = "0.2.0" diff --git a/crates/irust_repl/Cargo.toml b/crates/irust_repl/Cargo.toml index f9087b3..32d4e28 100644 --- a/crates/irust_repl/Cargo.toml +++ b/crates/irust_repl/Cargo.toml @@ -9,7 +9,6 @@ repository = "https://github.com/sigmaSd/IRust/tree/master/crates/irust_repl" license = "MIT" [dependencies] -once_cell = "1.18.0" serde = { version = "1.0.188", features = ["derive"], optional = true } uuid = { version = "1.4.1", features = ["v4"] } diff --git a/crates/irust_repl/src/lib.rs b/crates/irust_repl/src/lib.rs index c99824d..afd153a 100644 --- a/crates/irust_repl/src/lib.rs +++ b/crates/irust_repl/src/lib.rs @@ -1,3 +1,4 @@ +use std::sync::LazyLock; pub mod cargo_cmds; use cargo_cmds::*; mod executor; @@ -11,7 +12,6 @@ pub use edition::Edition; mod compile_mode; pub use compile_mode::CompileMode; -use once_cell::sync::Lazy; mod utils; use std::{ @@ -22,8 +22,8 @@ use std::{ type Result = std::result::Result>; -pub static DEFAULT_EVALUATOR: Lazy<[String; 2]> = - Lazy::new(|| ["println!(\"{:?}\", {\n".into(), "\n});".into()]); +pub static DEFAULT_EVALUATOR: LazyLock<[String; 2]> = + LazyLock::new(|| ["println!(\"{:?}\", {\n".into(), "\n});".into()]); pub struct EvalConfig<'a, S: ToString> { pub input: S,