Skip to content

Commit

Permalink
fix async-ctrlc to not be pulled for wasm32
Browse files Browse the repository at this point in the history
  • Loading branch information
panekj committed Jul 29, 2024
1 parent ebc9e61 commit dc42e20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/taplo-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ taplo-common = { path = "../taplo-common" }
taplo-lsp = { path = "../taplo-lsp", default-features = false, optional = true }

anyhow = { workspace = true, features = ["backtrace"] }
async-ctrlc = { version = "1.2.0", features = ["stream"], optional = true }
clap = { version = "4.5.8", features = ["derive", "cargo", "env"] }
codespan-reporting = { version = "0.11.1" }
futures = { workspace = true }
Expand All @@ -44,13 +43,14 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] }
url = { workspace = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# `prettydiff` is also a CLI that pulls in `clap` by default
async-ctrlc = { version = "1.2.0", features = ["stream"], optional = true }
ansi_term = "0.12"
atty = "0.2.14"
lsp-async-stub = { version = "0.6.0", path = "../lsp-async-stub", features = [
"tokio-tcp",
"tokio-stdio",
] }
# `prettydiff` is also a CLI that pulls in `clap` by default
prettydiff = { version = "0.6.1", default-features = false }
tokio = { version = "1.24.2", features = [
"sync",
Expand Down
11 changes: 6 additions & 5 deletions crates/taplo-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ version = "0.2.1"
crate-type = ["cdylib"]

[dependencies]
lsp-async-stub = { path = "../lsp-async-stub" }
taplo = { path = "../taplo" }
taplo-cli = { path = "../taplo-cli", optional = true, default-features = false }
taplo-common = { path = "../taplo-common", default-features = false, features = ["rustls-tls"] }
taplo-lsp = { path = "../taplo-lsp", optional = true, default-features = false }

anyhow = { version = "1.0.57" }
async-trait = { version = "0.1.56" }
clap = { version = "4.5.8", features = ["derive"] }
Expand All @@ -19,14 +25,9 @@ futures = { version = "0.3.21" }
getrandom = { version = "0.2.15", features = ["js"] }
indexmap = { version = "~1.6" }
js-sys = { version = "0.3.69" }
lsp-async-stub = { path = "../lsp-async-stub" }
serde = { version = "1.0.137", features = ["derive"] }
serde-wasm-bindgen = { version = "0.6.5" }
serde_json = { version = "1.0.81" }
taplo = { path = "../taplo" }
taplo-cli = { path = "../taplo-cli", optional = true }
taplo-common = { path = "../taplo-common", features = ["rustls-tls"] }
taplo-lsp = { path = "../taplo-lsp", optional = true }
time = { version = "0.3.9", features = ["parsing"] }
tokio = { version = "1.19.2", default-features = false }
tracing = { version = "0.1.35" }
Expand Down

0 comments on commit dc42e20

Please sign in to comment.