Skip to content

Commit

Permalink
Remove winit from compilation on Linux (#372)
Browse files Browse the repository at this point in the history
Winit is only used in one line in MacOS and Windows, and unused in
Linux.

This change improves initial compile times from 3m 50s to ~3m 25 on my
machine.
  • Loading branch information
LucasFA authored Feb 16, 2024
1 parent d1b2314 commit b3d7b55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spotify_player/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
lyric_finder = { version = "0.1.5", path = "../lyric_finder" , optional = true }
backtrace = "0.3.69"
souvlaki = { version = "0.7.3", optional = true }
winit = { version = "0.29.10", optional = true }
viuer = { version = "0.7.1", optional = true }
image = { version = "0.24.8", optional = true }
notify-rust = { version = "4.10.0", optional = true, default-features = false, features = ["d"] }
Expand All @@ -49,6 +48,10 @@ ttl_cache = "0.5.1"
copypasta = { version = "0.10.0", optional = true }
clap_complete = "4.4.10"

[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies.winit]
version = "0.29.10"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.52.0"
features = [
Expand Down

0 comments on commit b3d7b55

Please sign in to comment.