taplo: update to 0.8.1

This commit is contained in:
cinerea0 2023-07-14 21:46:15 -04:00 committed by classabbyamp
parent 6520120d4b
commit fde84c5ed2
3 changed files with 23 additions and 31 deletions

View file

@ -1,26 +0,0 @@
From https://github.com/tamasfe/taplo/pull/354
From: Michael Davis <mcarsondavis@gmail.com>
Date: Sun, 20 Nov 2022 12:25:43 -0600
Subject: [PATCH] Handle LSP shutdown request
These lines in the Server loop discard any messages with the shutdown
method. The Server can handle and correctly respond to shutdown
requests, though, so there's no need to discard the message.
---
crates/lsp-async-stub/src/listen.rs | 2 --
1 file changed, 2 deletions(-)
diff --git a/crates/lsp-async-stub/src/listen.rs b/crates/lsp-async-stub/src/listen.rs
index fca0a2980..b6b00f5fd 100644
--- a/crates/lsp-async-stub/src/listen.rs
+++ b/crates/lsp-async-stub/src/listen.rs
@@ -64,8 +64,6 @@ impl<W: Clone + 'static> Server<W> {
drop(output);
drop(input);
break;
- } else if msg.method.as_ref().map(|m| m == "shutdown").unwrap_or(false) {
- continue;
}
let task_fut = self.handle_message(

View file

@ -0,0 +1,14 @@
# old version does not have all features needed for checks on i686
diff --git a/crates/taplo/Cargo.toml b/crates/taplo/Cargo.toml
index 966ba1db30..7912352478 100644
--- a/crates/taplo/Cargo.toml
+++ b/crates/taplo/Cargo.toml
@@ -36,7 +36,7 @@ serde = { version = "1", features = ["derive"], optional = true }
assert-json-diff = "2"
criterion = "0.3"
difference = "2.0.0"
-pprof = { version = "0.9.1", features = ["flamegraph", "criterion"] }
+pprof = { version = "0.12.0", features = ["flamegraph", "criterion"] }
serde_json = "1"
toml = "0.5"

View file

@ -1,13 +1,13 @@
# Template file for 'taplo'
pkgname=taplo
version=0.8.0
revision=2
build_wrksrc="crates/taplo-cli"
version=0.8.1
revision=1
build_style=cargo
# no-default-features: allows selecting custom feature set
# lsp: builds TOML language server
# native-tls: Enables linking against system SSL instead of rustls/ring
configure_args="--no-default-features --features lsp,native-tls"
make_install_args="--path crates/taplo-cli"
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="TOML toolkit written in Rust"
@ -15,8 +15,12 @@ maintainer="cinerea0 <cinerea0@protonmail.com>"
license="MIT"
homepage="https://taplo.tamasfe.dev/"
distfiles="https://github.com/tamasfe/taplo/archive/refs/tags/${version}.tar.gz"
checksum=079fab82f48e4f71379f0d2e249b7bd402af8ddf84ea16b65ba2742811a8d951
checksum=ec8dfdcfa33a6855803286413c0603140b21c06bc659ceab7e2ddc05baf1a8b3
post_patch() {
cargo update --package pprof@0.9.1 --precise 0.12.0
}
post_install() {
vlicense ../../LICENSE.md
vlicense LICENSE.md
}