Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/taplo-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ taplo = { version = "0.14.0", path = "../taplo", features = ["serde"] }
taplo-common = { version = "0.6.0", path = "../taplo-common" }
taplo-lsp = { version = "0.8.0", path = "../taplo-lsp", default-features = false, optional = true }

ansi_term = { version = "0.12" }
anyhow = { workspace = true }
clap = { workspace = true, features = ["derive", "cargo", "env", "default"] }
codespan-reporting = { version = "0.11.1" }
Expand All @@ -33,6 +34,7 @@ glob = { workspace = true }
hex = { workspace = true }
itertools = { workspace = true }
once_cell = { workspace = true }
prettydiff = { version = "0.6.1", default-features = false }
regex = { workspace = true }
reqwest = { workspace = true, features = ["json"], optional = true }
schemars = { workspace = true }
Expand All @@ -47,10 +49,8 @@ url = { workspace = true }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
lsp-async-stub = { version = "0.7.0", path = "../lsp-async-stub", features = ["tokio-tcp", "tokio-stdio"] }

ansi_term = { version = "0.12" }
async-ctrlc = { version = "1.2.0", features = ["stream"], optional = true }
clap_complete = { version = "4.4.18", optional = true }
prettydiff = { version = "0.6.1", default-features = false } # `prettydiff` is also a CLI that pulls in `clap` by default

tokio = { workspace = true, features = ["sync", "fs", "time", "io-std", "rt-multi-thread", "parking_lot"] }

Expand Down
12 changes: 0 additions & 12 deletions crates/taplo-cli/src/commands/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ impl<E: Environment> Taplo<E> {
Ok(())
}

#[cfg(target_arch = "wasm32")]
async fn print_diff(
&self,
_path: impl AsRef<Path>,
_original: &str,
_formatted: &str,
) -> Result<(), anyhow::Error> {
tracing::warn!("the `--diff` flag is not available in this build yet");
Ok(())
}

#[cfg(not(target_arch = "wasm32"))]
async fn print_diff(
&self,
path: impl AsRef<Path>,
Expand Down
Loading