Skip to content

Commit 2045e36

Browse files
tottotoctron
authored andcommitted
chore: depend on ansi_term crate only on windows
1 parent 90e93a1 commit 2045e36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ codegen-units = 1
2020
panic = "abort"
2121

2222
[dependencies]
23-
ansi_term = "0.12" # required for win32
2423
anyhow = "1"
2524
async-recursion = "1.0.5"
2625
axum = { version = "0.7", features = ["ws"] }
@@ -80,6 +79,9 @@ lightningcss = "=1.0.0-alpha.57"
8079
# required for the update check
8180
crates_io_api = { version = "0.11", default-features = false, optional = true }
8281

82+
[target.'cfg(windows)'.dependencies]
83+
ansi_term = "0.12"
84+
8385
[dev-dependencies]
8486
tempfile = "3"
8587
rstest = "0.21"

0 commit comments

Comments
 (0)