From 7e1a97fa7b71a68b2a83e275f295868d1de3d799 Mon Sep 17 00:00:00 2001 From: Tal <83217276+talwat@users.noreply.github.com> Date: Sat, 3 Jan 2026 16:03:35 +0100 Subject: [PATCH] chore: fix windows compilation --- Cargo.lock | 11 +++++++++++ Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index d79fda9..04ff2fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -509,6 +509,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b" dependencies = [ "bitflags 2.10.0", + "crossterm_winapi", "document-features", "futures-core", "mio", @@ -516,6 +517,16 @@ dependencies = [ "rustix", "signal-hook", "signal-hook-mio", + "winapi", +] + +[[package]] +name = "crossterm_winapi" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" +dependencies = [ + "winapi", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index cb8645a..be7302c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ chrono = { version = "0.4.42", features = ["clock"], default-features = false } bytes = "1.9.0" # I/O -crossterm = { version = "0.29.0", features = ["event-stream"], default-features = false } +crossterm = { version = "0.29.0", features = ["event-stream", "windows"], default-features = false } rodio = { version = "0.21.1", features = ["symphonia-mp3", "playback"], default-features = false } mpris-server = { version = "0.9.0", optional = true } dirs = "6.0.0"