From dff4aaca0980a9dbd4cb005c6460d5075556a943 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 6 Jul 2026 15:15:26 +0200 Subject: refactor(engine): remove enabling ansi support on Windows --- Cargo.lock | 41 +---------------------------------------- engine/Cargo.toml | 1 - engine/src/lib.rs | 3 --- 3 files changed, 1 insertion(+), 44 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c806536..55e56fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -605,7 +605,6 @@ dependencies = [ "engine-reflection", "glutin", "image", - "nu-ansi-term 0.46.0", "opengl-bindings", "paste", "portable-atomic", @@ -1285,16 +1284,6 @@ dependencies = [ "minimal-lexical", ] -[[package]] -name = "nu-ansi-term" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" -dependencies = [ - "overload", - "winapi", -] - [[package]] name = "nu-ansi-term" version = "0.50.3" @@ -1624,12 +1613,6 @@ dependencies = [ "libredox", ] -[[package]] -name = "overload" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" - [[package]] name = "parking_lot" version = "0.12.5" @@ -2425,7 +2408,7 @@ checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" dependencies = [ "chrono", "matchers", - "nu-ansi-term 0.50.3", + "nu-ansi-term", "once_cell", "regex-automata", "sharded-slab", @@ -2753,22 +2736,6 @@ dependencies = [ "rustls-pki-types", ] -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - [[package]] name = "winapi-util" version = "0.1.9" @@ -2778,12 +2745,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - [[package]] name = "windows-core" version = "0.62.2" diff --git a/engine/Cargo.toml b/engine/Cargo.toml index 1dc6431..6e13c03 100644 --- a/engine/Cargo.toml +++ b/engine/Cargo.toml @@ -12,7 +12,6 @@ tracing = "0.1.39" seq-macro = "0.3.5" paste = "1.0.14" safer-ffi = "0.1.13" -nu-ansi-term = "0.46.0" crossbeam-queue = "0.3.12" engine-macros = { workspace = true } engine-ecs = { workspace = true } diff --git a/engine/src/lib.rs b/engine/src/lib.rs index 01c0701..a5fa755 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -56,9 +56,6 @@ impl Engine #[must_use] pub fn new() -> Self { - #[cfg(windows)] - nu_ansi_term::enable_ansi_support().unwrap(); - let mut world = World::new(); world.add_sole(DeltaTime::default()).ok(); -- cgit v1.2.3-18-g5258