pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/taplo-lsp taplo-cli: update to 0.6.0.
details: https://anonhg.NetBSD.org/pkgsrc/rev/beeacd030248
branches: trunk
changeset: 375844:beeacd030248
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Mar 28 14:11:01 2022 +0000
description:
taplo-cli: update to 0.6.0.
One of the reasons why I always kept postponing patches and updates
in this project was the fact that it was pretty hard to maintain.
When I originally wrote most of it, I barely had time and just
wanted to get features out ASAP.
The Even Better TOML has recently passed the 100K installs mark,
I felt that some cleanup and care was long overdue.
This PR is pretty much a rewrite and/or a major refactor of Taplo
with the only exception of the parser, which I would love to rewrite
as well but I'm already pushing my time-limits.
Features
* Rewrite of the DOM, it now uses a reference-counted implementation
where each node is cheap to clone and to juggle around.
* Rewrite of the CLI as well, it is now a first-class citizen not
just something quickly thrown together.
* Integration of jsonschema, most (all?) JSON Schema features are
now supported and the limitations of the current implementation
are non-existent.
* Support of schema store catalog and schemas
* The shared code between the CLI and the language server is now
properly extracted into taplo-common, so the CLI and the LSP are
no longer out of sync.
* The external environment is now abstracted away into a trait, so
both the LSP and the CLI should run pretty much anywhere with
minimal plumbing
* tracing is used for all logging
* Refactor and workspace support in the LSP
* All toml-test tests now pass
* Proper benchmarks via criterion (the new DOM is slightly slower
initially due to allocations, but not too much)
* Completions and hover in the LSP (the building blocks are there,
but the cursor queries require some plumbing)
* The LSP is part of the CLI as well, and the VSCode extension
works with it, WASM bindings are yet to be reimplemented
* Flexible configuration options in the LSP
* Proper directives in TOML files (e.g. schema)
Breaking Changes
Probably a lot, but here are a few notable ones:
* The DOM API is completely different, although migration should
be rather easy.
* Chrono feature has been removed, it can be reintroduced later
though if needed.
* As with the DOM layout, error types have also changed.
* Date types are now separate syntax-kinds.
* Even though we had no MSRV policy, I clearly used 1.58 features
during the rewrite
* The Even Better Toml vscode extension also gets a facelift with
some configuration options changed
diffstat:
devel/taplo-lsp/Makefile | 11 +-
devel/taplo-lsp/PLIST | 4 +-
devel/taplo-lsp/cargo-depends.mk | 339 +++++----
devel/taplo-lsp/distinfo | 1022 ++++++++++++++++-------------
devel/taplo-lsp/patches/patch-Cargo.toml | 14 +
5 files changed, 787 insertions(+), 603 deletions(-)
diffs (truncated from 1719 to 300 lines):
diff -r 4d83a41e25e4 -r beeacd030248 devel/taplo-lsp/Makefile
--- a/devel/taplo-lsp/Makefile Mon Mar 28 13:42:25 2022 +0000
+++ b/devel/taplo-lsp/Makefile Mon Mar 28 14:11:01 2022 +0000
@@ -1,21 +1,20 @@
-# $NetBSD: Makefile,v 1.1 2021/12/21 15:10:51 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2022/03/28 14:11:01 wiz Exp $
-DISTNAME= taplo-lsp-0.2.6
+DISTNAME= taplo-cli-0.6.0
CATEGORIES= devel editors
MASTER_SITES= ${MASTER_SITE_GITHUB:=tamasfe/}
GITHUB_PROJECT= taplo
-GITHUB_TAG= release-lsp-${PKGVERSION_NOREV}
+GITHUB_TAG= release-cli-${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://github.com/tamasfe/taplo/
COMMENT= Language server protocol (LSP) for TOML
LICENSE= mit
-WRKSRC= ${WRKDIR}/taplo-${GITHUB_TAG}
USE_LANGUAGES= c
USE_TOOLS+= pkg-config
-# as of 0.2.6, Cargo.lock is not in the repository
+# as of 0.6.0, Cargo.lock is not in the repository
# so you need to do:
# cd ${WRKSRC} && cargo build
# before you can run 'make print-cargo-depends'
@@ -24,7 +23,7 @@
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/target/release/taplo-lsp ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/target/release/taplo ${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../security/openssl/buildlink3.mk"
diff -r 4d83a41e25e4 -r beeacd030248 devel/taplo-lsp/PLIST
--- a/devel/taplo-lsp/PLIST Mon Mar 28 13:42:25 2022 +0000
+++ b/devel/taplo-lsp/PLIST Mon Mar 28 14:11:01 2022 +0000
@@ -1,2 +1,2 @@
-@comment $NetBSD: PLIST,v 1.1 2021/12/21 15:10:51 wiz Exp $
-bin/taplo-lsp
+@comment $NetBSD: PLIST,v 1.2 2022/03/28 14:11:01 wiz Exp $
+bin/taplo
diff -r 4d83a41e25e4 -r beeacd030248 devel/taplo-lsp/cargo-depends.mk
--- a/devel/taplo-lsp/cargo-depends.mk Mon Mar 28 13:42:25 2022 +0000
+++ b/devel/taplo-lsp/cargo-depends.mk Mon Mar 28 14:11:01 2022 +0000
@@ -1,226 +1,269 @@
-# $NetBSD: cargo-depends.mk,v 1.1 2021/12/21 15:10:51 wiz Exp $
+# $NetBSD: cargo-depends.mk,v 1.2 2022/03/28 14:11:01 wiz Exp $
+CARGO_CRATE_DEPENDS+= addr2line-0.17.0
+CARGO_CRATE_DEPENDS+= adler-1.0.2
+CARGO_CRATE_DEPENDS+= ahash-0.7.6
CARGO_CRATE_DEPENDS+= aho-corasick-0.7.18
CARGO_CRATE_DEPENDS+= ansi_term-0.12.1
-CARGO_CRATE_DEPENDS+= anyhow-1.0.51
+CARGO_CRATE_DEPENDS+= anyhow-1.0.56
+CARGO_CRATE_DEPENDS+= arc-swap-1.5.0
+CARGO_CRATE_DEPENDS+= arrayvec-0.4.12
CARGO_CRATE_DEPENDS+= assert-json-diff-2.0.1
-CARGO_CRATE_DEPENDS+= async-trait-0.1.52
+CARGO_CRATE_DEPENDS+= async-ctrlc-1.2.0
+CARGO_CRATE_DEPENDS+= async-recursion-1.0.0
+CARGO_CRATE_DEPENDS+= async-trait-0.1.53
+CARGO_CRATE_DEPENDS+= atomic-0.5.1
CARGO_CRATE_DEPENDS+= atty-0.2.14
-CARGO_CRATE_DEPENDS+= autocfg-1.0.1
-CARGO_CRATE_DEPENDS+= base-x-0.2.8
+CARGO_CRATE_DEPENDS+= autocfg-1.1.0
+CARGO_CRATE_DEPENDS+= backtrace-0.3.64
CARGO_CRATE_DEPENDS+= base64-0.13.0
CARGO_CRATE_DEPENDS+= beef-0.5.1
+CARGO_CRATE_DEPENDS+= bit-set-0.5.2
+CARGO_CRATE_DEPENDS+= bit-vec-0.6.3
CARGO_CRATE_DEPENDS+= bitflags-1.3.2
-CARGO_CRATE_DEPENDS+= block-buffer-0.9.0
-CARGO_CRATE_DEPENDS+= bumpalo-3.8.0
+CARGO_CRATE_DEPENDS+= block-buffer-0.10.2
+CARGO_CRATE_DEPENDS+= bstr-0.2.17
+CARGO_CRATE_DEPENDS+= bumpalo-3.9.1
+CARGO_CRATE_DEPENDS+= bytecount-0.6.2
+CARGO_CRATE_DEPENDS+= bytemuck-1.8.0
CARGO_CRATE_DEPENDS+= bytes-1.1.0
-CARGO_CRATE_DEPENDS+= cc-1.0.72
-CARGO_CRATE_DEPENDS+= cfg-if-0.1.10
+CARGO_CRATE_DEPENDS+= cast-0.2.7
+CARGO_CRATE_DEPENDS+= cc-1.0.73
CARGO_CRATE_DEPENDS+= cfg-if-1.0.0
-CARGO_CRATE_DEPENDS+= chrono-0.4.19
-CARGO_CRATE_DEPENDS+= clap-3.0.0-beta.2
-CARGO_CRATE_DEPENDS+= clap_derive-3.0.0-beta.2
-CARGO_CRATE_DEPENDS+= colored-2.0.0
-CARGO_CRATE_DEPENDS+= console_error_panic_hook-0.1.7
-CARGO_CRATE_DEPENDS+= const_fn-0.4.8
-CARGO_CRATE_DEPENDS+= core-foundation-0.9.2
+CARGO_CRATE_DEPENDS+= clap-2.34.0
+CARGO_CRATE_DEPENDS+= clap-3.1.6
+CARGO_CRATE_DEPENDS+= clap_derive-3.1.4
+CARGO_CRATE_DEPENDS+= codespan-reporting-0.11.1
+CARGO_CRATE_DEPENDS+= core-foundation-0.9.3
CARGO_CRATE_DEPENDS+= core-foundation-sys-0.8.3
-CARGO_CRATE_DEPENDS+= countme-2.0.4
-CARGO_CRATE_DEPENDS+= cpufeatures-0.2.1
-CARGO_CRATE_DEPENDS+= ctor-0.1.21
+CARGO_CRATE_DEPENDS+= countme-3.0.1
+CARGO_CRATE_DEPENDS+= cpp_demangle-0.3.5
+CARGO_CRATE_DEPENDS+= cpufeatures-0.2.2
+CARGO_CRATE_DEPENDS+= crates-index-0.18.7
+CARGO_CRATE_DEPENDS+= criterion-0.3.5
+CARGO_CRATE_DEPENDS+= criterion-plot-0.4.4
+CARGO_CRATE_DEPENDS+= crossbeam-channel-0.5.4
+CARGO_CRATE_DEPENDS+= crossbeam-deque-0.8.1
+CARGO_CRATE_DEPENDS+= crossbeam-epoch-0.9.8
+CARGO_CRATE_DEPENDS+= crossbeam-utils-0.8.8
+CARGO_CRATE_DEPENDS+= crypto-common-0.1.3
+CARGO_CRATE_DEPENDS+= csv-1.1.6
+CARGO_CRATE_DEPENDS+= csv-core-0.1.10
CARGO_CRATE_DEPENDS+= ctrlc-3.2.1
-CARGO_CRATE_DEPENDS+= diff-0.1.12
+CARGO_CRATE_DEPENDS+= debugid-0.7.3
CARGO_CRATE_DEPENDS+= difference-2.0.0
-CARGO_CRATE_DEPENDS+= digest-0.9.0
-CARGO_CRATE_DEPENDS+= discard-1.0.4
-CARGO_CRATE_DEPENDS+= dtoa-0.4.8
-CARGO_CRATE_DEPENDS+= dyn-clone-1.0.4
+CARGO_CRATE_DEPENDS+= digest-0.10.3
+CARGO_CRATE_DEPENDS+= dyn-clone-1.0.5
CARGO_CRATE_DEPENDS+= either-1.6.1
CARGO_CRATE_DEPENDS+= encoding_rs-0.8.30
-CARGO_CRATE_DEPENDS+= filetime-0.2.15
+CARGO_CRATE_DEPENDS+= fancy-regex-0.7.1
+CARGO_CRATE_DEPENDS+= fastrand-1.7.0
+CARGO_CRATE_DEPENDS+= figment-0.10.6
+CARGO_CRATE_DEPENDS+= findshlibs-0.10.2
CARGO_CRATE_DEPENDS+= fnv-1.0.7
CARGO_CRATE_DEPENDS+= foreign-types-0.3.2
CARGO_CRATE_DEPENDS+= foreign-types-shared-0.1.1
CARGO_CRATE_DEPENDS+= form_urlencoded-1.0.1
-CARGO_CRATE_DEPENDS+= fsevent-0.4.0
-CARGO_CRATE_DEPENDS+= fsevent-sys-2.0.1
-CARGO_CRATE_DEPENDS+= fuchsia-zircon-0.3.3
-CARGO_CRATE_DEPENDS+= fuchsia-zircon-sys-0.3.3
-CARGO_CRATE_DEPENDS+= futures-0.3.18
-CARGO_CRATE_DEPENDS+= futures-channel-0.3.18
-CARGO_CRATE_DEPENDS+= futures-core-0.3.18
-CARGO_CRATE_DEPENDS+= futures-executor-0.3.18
-CARGO_CRATE_DEPENDS+= futures-io-0.3.18
-CARGO_CRATE_DEPENDS+= futures-macro-0.3.18
-CARGO_CRATE_DEPENDS+= futures-sink-0.3.18
-CARGO_CRATE_DEPENDS+= futures-task-0.3.18
-CARGO_CRATE_DEPENDS+= futures-util-0.3.18
-CARGO_CRATE_DEPENDS+= generic-array-0.14.4
-CARGO_CRATE_DEPENDS+= getrandom-0.2.3
+CARGO_CRATE_DEPENDS+= fraction-0.9.0
+CARGO_CRATE_DEPENDS+= futures-0.3.21
+CARGO_CRATE_DEPENDS+= futures-channel-0.3.21
+CARGO_CRATE_DEPENDS+= futures-core-0.3.21
+CARGO_CRATE_DEPENDS+= futures-executor-0.3.21
+CARGO_CRATE_DEPENDS+= futures-io-0.3.21
+CARGO_CRATE_DEPENDS+= futures-macro-0.3.21
+CARGO_CRATE_DEPENDS+= futures-sink-0.3.21
+CARGO_CRATE_DEPENDS+= futures-task-0.3.21
+CARGO_CRATE_DEPENDS+= futures-util-0.3.21
+CARGO_CRATE_DEPENDS+= generic-array-0.14.5
+CARGO_CRATE_DEPENDS+= getrandom-0.2.5
+CARGO_CRATE_DEPENDS+= gimli-0.26.1
+CARGO_CRATE_DEPENDS+= git2-0.14.2
CARGO_CRATE_DEPENDS+= glob-0.3.0
-CARGO_CRATE_DEPENDS+= h2-0.3.9
+CARGO_CRATE_DEPENDS+= globset-0.4.8
+CARGO_CRATE_DEPENDS+= h2-0.3.12
+CARGO_CRATE_DEPENDS+= half-1.8.2
CARGO_CRATE_DEPENDS+= hashbrown-0.11.2
-CARGO_CRATE_DEPENDS+= heck-0.3.3
-CARGO_CRATE_DEPENDS+= hermit-abi-0.1.20
+CARGO_CRATE_DEPENDS+= hashbrown-0.12.0
+CARGO_CRATE_DEPENDS+= heck-0.4.0
+CARGO_CRATE_DEPENDS+= hermit-abi-0.1.19
CARGO_CRATE_DEPENDS+= hex-0.4.3
-CARGO_CRATE_DEPENDS+= http-0.2.5
+CARGO_CRATE_DEPENDS+= home-0.5.3
+CARGO_CRATE_DEPENDS+= http-0.2.6
CARGO_CRATE_DEPENDS+= http-body-0.4.4
-CARGO_CRATE_DEPENDS+= httparse-1.5.1
+CARGO_CRATE_DEPENDS+= httparse-1.6.0
CARGO_CRATE_DEPENDS+= httpdate-1.0.2
-CARGO_CRATE_DEPENDS+= hyper-0.14.16
+CARGO_CRATE_DEPENDS+= hyper-0.14.18
CARGO_CRATE_DEPENDS+= hyper-tls-0.5.0
CARGO_CRATE_DEPENDS+= idna-0.2.3
-CARGO_CRATE_DEPENDS+= indexmap-1.7.0
-CARGO_CRATE_DEPENDS+= inotify-0.7.1
-CARGO_CRATE_DEPENDS+= inotify-sys-0.1.5
-CARGO_CRATE_DEPENDS+= iovec-0.1.4
-CARGO_CRATE_DEPENDS+= ipnet-2.3.1
+CARGO_CRATE_DEPENDS+= indexmap-1.8.0
+CARGO_CRATE_DEPENDS+= inferno-0.11.1
+CARGO_CRATE_DEPENDS+= instant-0.1.12
+CARGO_CRATE_DEPENDS+= ipnet-2.4.0
+CARGO_CRATE_DEPENDS+= iso8601-0.4.1
CARGO_CRATE_DEPENDS+= itertools-0.10.3
CARGO_CRATE_DEPENDS+= itoa-0.4.8
-CARGO_CRATE_DEPENDS+= js-sys-0.3.55
-CARGO_CRATE_DEPENDS+= kernel32-sys-0.2.2
+CARGO_CRATE_DEPENDS+= itoa-1.0.1
+CARGO_CRATE_DEPENDS+= jobserver-0.1.24
+CARGO_CRATE_DEPENDS+= js-sys-0.3.56
+CARGO_CRATE_DEPENDS+= jsonschema-0.15.0
CARGO_CRATE_DEPENDS+= lazy_static-1.4.0
-CARGO_CRATE_DEPENDS+= lazycell-1.3.0
-CARGO_CRATE_DEPENDS+= libc-0.2.110
-CARGO_CRATE_DEPENDS+= linked-hash-map-0.5.4
-CARGO_CRATE_DEPENDS+= log-0.4.14
+CARGO_CRATE_DEPENDS+= libc-0.2.121
+CARGO_CRATE_DEPENDS+= libgit2-sys-0.13.2+1.4.2
+CARGO_CRATE_DEPENDS+= libssh2-sys-0.2.23
+CARGO_CRATE_DEPENDS+= libz-sys-1.1.5
+CARGO_CRATE_DEPENDS+= lock_api-0.4.6
+CARGO_CRATE_DEPENDS+= log-0.4.16
CARGO_CRATE_DEPENDS+= logos-0.12.0
CARGO_CRATE_DEPENDS+= logos-derive-0.12.0
-CARGO_CRATE_DEPENDS+= lsp-types-0.90.1
+CARGO_CRATE_DEPENDS+= lru-0.7.3
+CARGO_CRATE_DEPENDS+= lsp-types-0.92.1
+CARGO_CRATE_DEPENDS+= matchers-0.1.0
CARGO_CRATE_DEPENDS+= matches-0.1.9
CARGO_CRATE_DEPENDS+= memchr-2.4.1
+CARGO_CRATE_DEPENDS+= memmap2-0.5.3
CARGO_CRATE_DEPENDS+= memoffset-0.6.5
CARGO_CRATE_DEPENDS+= mime-0.3.16
-CARGO_CRATE_DEPENDS+= mio-0.6.23
-CARGO_CRATE_DEPENDS+= mio-0.7.14
-CARGO_CRATE_DEPENDS+= mio-extras-2.0.6
-CARGO_CRATE_DEPENDS+= miow-0.2.2
+CARGO_CRATE_DEPENDS+= minimal-lexical-0.2.1
+CARGO_CRATE_DEPENDS+= miniz_oxide-0.4.4
+CARGO_CRATE_DEPENDS+= mio-0.8.2
CARGO_CRATE_DEPENDS+= miow-0.3.7
CARGO_CRATE_DEPENDS+= native-tls-0.2.8
-CARGO_CRATE_DEPENDS+= net2-0.2.37
-CARGO_CRATE_DEPENDS+= nix-0.23.0
-CARGO_CRATE_DEPENDS+= notify-4.0.17
-CARGO_CRATE_DEPENDS+= ntapi-0.3.6
+CARGO_CRATE_DEPENDS+= nix-0.23.1
+CARGO_CRATE_DEPENDS+= nodrop-0.1.14
+CARGO_CRATE_DEPENDS+= nom-7.1.1
+CARGO_CRATE_DEPENDS+= ntapi-0.3.7
+CARGO_CRATE_DEPENDS+= num-0.2.1
+CARGO_CRATE_DEPENDS+= num-bigint-0.2.6
+CARGO_CRATE_DEPENDS+= num-cmp-0.1.0
+CARGO_CRATE_DEPENDS+= num-complex-0.2.4
+CARGO_CRATE_DEPENDS+= num-format-0.4.0
CARGO_CRATE_DEPENDS+= num-integer-0.1.44
+CARGO_CRATE_DEPENDS+= num-iter-0.1.42
+CARGO_CRATE_DEPENDS+= num-rational-0.2.4
CARGO_CRATE_DEPENDS+= num-traits-0.2.14
-CARGO_CRATE_DEPENDS+= num_cpus-1.13.0
-CARGO_CRATE_DEPENDS+= once_cell-1.8.0
-CARGO_CRATE_DEPENDS+= opaque-debug-0.3.0
+CARGO_CRATE_DEPENDS+= num_cpus-1.13.1
+CARGO_CRATE_DEPENDS+= num_threads-0.1.5
+CARGO_CRATE_DEPENDS+= object-0.27.1
+CARGO_CRATE_DEPENDS+= once_cell-1.10.0
+CARGO_CRATE_DEPENDS+= oorandom-11.1.3
CARGO_CRATE_DEPENDS+= openssl-0.10.38
-CARGO_CRATE_DEPENDS+= openssl-probe-0.1.4
-CARGO_CRATE_DEPENDS+= openssl-sys-0.9.71
-CARGO_CRATE_DEPENDS+= os_str_bytes-2.4.0
+CARGO_CRATE_DEPENDS+= openssl-probe-0.1.5
+CARGO_CRATE_DEPENDS+= openssl-sys-0.9.72
CARGO_CRATE_DEPENDS+= os_str_bytes-6.0.0
-CARGO_CRATE_DEPENDS+= output_vt100-0.1.2
-CARGO_CRATE_DEPENDS+= pathdiff-0.2.1
+CARGO_CRATE_DEPENDS+= parking_lot-0.12.0
+CARGO_CRATE_DEPENDS+= parking_lot_core-0.9.1
CARGO_CRATE_DEPENDS+= percent-encoding-2.1.0
-CARGO_CRATE_DEPENDS+= pin-project-lite-0.2.7
+CARGO_CRATE_DEPENDS+= pin-project-lite-0.2.8
CARGO_CRATE_DEPENDS+= pin-utils-0.1.0
-CARGO_CRATE_DEPENDS+= pkg-config-0.3.23
-CARGO_CRATE_DEPENDS+= ppv-lite86-0.2.15
-CARGO_CRATE_DEPENDS+= pretty-lint-0.1.1
-CARGO_CRATE_DEPENDS+= pretty_assertions-1.0.0
+CARGO_CRATE_DEPENDS+= pkg-config-0.3.24
+CARGO_CRATE_DEPENDS+= plotters-0.3.1
+CARGO_CRATE_DEPENDS+= plotters-backend-0.3.2
+CARGO_CRATE_DEPENDS+= plotters-svg-0.3.1
+CARGO_CRATE_DEPENDS+= pprof-0.7.0
CARGO_CRATE_DEPENDS+= proc-macro-error-1.0.4
CARGO_CRATE_DEPENDS+= proc-macro-error-attr-1.0.4
-CARGO_CRATE_DEPENDS+= proc-macro-hack-0.5.19
-CARGO_CRATE_DEPENDS+= proc-macro2-1.0.33
-CARGO_CRATE_DEPENDS+= quote-1.0.10
-CARGO_CRATE_DEPENDS+= rand-0.8.4
-CARGO_CRATE_DEPENDS+= rand_chacha-0.3.1
-CARGO_CRATE_DEPENDS+= rand_core-0.6.3
-CARGO_CRATE_DEPENDS+= rand_hc-0.3.1
Home |
Main Index |
Thread Index |
Old Index