Skip to content

Commit

Permalink
fix: fix windows build, hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamAnimate committed Nov 13, 2024
1 parent da4414b commit 2b34c71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ license = "MIT OR Apache-2.0"
[dependencies]
getch-rs = "=0.2.0"
lazy_static = "1.5.0"
rodio = { path = "./encore-rodio", default-features = false, features = ["minimp3", "flac", "vorbis", "wav"] }
terminal_size = { version = "0.3.0", default-features = false }

# Optionals
# Configuration Support
basic-toml = { version = "0.1.9", optional = true }
serde = { version = "1.0.210", optional = true, features = ["serde_derive"] }

[target.'cfg(not(windows))'.dependencies]
rodio = { path = "./encore-rodio", default-features = false, features = ["minimp3", "flac", "vorbis", "wav"] }

[target.'cfg(windows)'.dependencies]
# don't use minimp3 audio backend because it doesnt compile on windows, and i don't want to fix it.
rodio = { path = "./encore-rodio", default-features = false, features = ["mp3", "flac", "vorbis", "wav"] }
Expand Down

0 comments on commit 2b34c71

Please sign in to comment.