Skip to content

Commit

Permalink
textproc/hgrep: update to 0.3.0
Browse files Browse the repository at this point in the history
v0.3.0 - 21 Jan 2023
 - Update syntect dependency to v5.0.0. Thanks to lazy loading, this change
   makes loading assets at startup about 70% faster. The small benchmark showed
   hgrep command was 1.7x faster when searching a small file with -p syntect
   compared to v0.2.8.
 - Update bat dependency from 0.20 to 0.22. This introduces several improvements
   and fixes which were recently added to bat when using -p bat.
 - Add --generate-man-page flag to generate a manual page file. Save the output
   to your man directory to show the help with man command. If you install
   hgrep with Homebrew, it will be automatically generated.
 - Add several syntax highlighting for configuration files (Git configs, Fish
   history, SSH config, Nginx config, ...).
 - Wrapp the --help output looking at the terminal width. The output is more
   compact than v0.2.8.
 - Improve error handling when failing to enable ANSI color sequences support
   on Windows.

v0.2.8 - 10 Jan 2023
 - Fix some command line boolean flags wrongly took an argument.
   (thanks @Ryooooooga, #15)

v0.2.7 - 04 Jan 2023
 - Fix crash when reading from rg --vimgrep. Note that --vimgrep flag is not
   assumed by hgrep. Please use rg -nH. (#13)
 - Fix errors are not reported when they are caused by the second match or
   later.
 - Update dependencies to the latest. Especially migrating to clap v4 improved
   the --help output.
 - Migrate to Rust 2021 edition.
  • Loading branch information
0323pin committed Jan 22, 2023
1 parent c236ac2 commit 098d5b9
Show file tree
Hide file tree
Showing 3 changed files with 495 additions and 419 deletions.
4 changes: 2 additions & 2 deletions textproc/hgrep/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.12 2022/09/18 13:37:18 he Exp $
# $NetBSD: Makefile,v 1.13 2023/01/22 08:57:08 pin Exp $

DISTNAME= hgrep-0.2.6
DISTNAME= hgrep-0.3.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=rhysd/}
GITHUB_TAG= v${PKGVERSION_NOREV}
Expand Down
227 changes: 123 additions & 104 deletions textproc/hgrep/cargo-depends.mk
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
# $NetBSD: cargo-depends.mk,v 1.10 2022/05/27 18:21:50 pin Exp $
# $NetBSD: cargo-depends.mk,v 1.11 2023/01/22 08:57:08 pin Exp $

CARGO_CRATE_DEPENDS+= adler-1.0.2
CARGO_CRATE_DEPENDS+= aho-corasick-0.7.18
CARGO_CRATE_DEPENDS+= ansi_colours-1.1.1
CARGO_CRATE_DEPENDS+= aho-corasick-0.7.20
CARGO_CRATE_DEPENDS+= anes-0.1.6
CARGO_CRATE_DEPENDS+= ansi_colours-1.2.1
CARGO_CRATE_DEPENDS+= ansi_term-0.12.1
CARGO_CRATE_DEPENDS+= anyhow-1.0.56
CARGO_CRATE_DEPENDS+= anyhow-1.0.68
CARGO_CRATE_DEPENDS+= atty-0.2.14
CARGO_CRATE_DEPENDS+= autocfg-1.1.0
CARGO_CRATE_DEPENDS+= base64-0.13.0
CARGO_CRATE_DEPENDS+= bat-0.20.0
CARGO_CRATE_DEPENDS+= base64-0.13.1
CARGO_CRATE_DEPENDS+= bat-0.22.1
CARGO_CRATE_DEPENDS+= bincode-1.3.3
CARGO_CRATE_DEPENDS+= bitflags-1.3.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.9.1
CARGO_CRATE_DEPENDS+= bstr-1.1.0
CARGO_CRATE_DEPENDS+= bumpalo-3.12.0
CARGO_CRATE_DEPENDS+= bytecount-0.6.3
CARGO_CRATE_DEPENDS+= bytemuck-1.13.0
CARGO_CRATE_DEPENDS+= bytesize-1.1.0
CARGO_CRATE_DEPENDS+= cast-0.2.7
CARGO_CRATE_DEPENDS+= cc-1.0.73
CARGO_CRATE_DEPENDS+= cast-0.3.0
CARGO_CRATE_DEPENDS+= cc-1.0.78
CARGO_CRATE_DEPENDS+= cfg-if-1.0.0
CARGO_CRATE_DEPENDS+= clap-2.34.0
CARGO_CRATE_DEPENDS+= clap-3.1.9
CARGO_CRATE_DEPENDS+= clap_complete-3.1.1
CARGO_CRATE_DEPENDS+= clap_lex-0.1.1
CARGO_CRATE_DEPENDS+= ciborium-0.2.0
CARGO_CRATE_DEPENDS+= ciborium-io-0.2.0
CARGO_CRATE_DEPENDS+= ciborium-ll-0.2.0
CARGO_CRATE_DEPENDS+= clap-3.2.23
CARGO_CRATE_DEPENDS+= clap-4.1.1
CARGO_CRATE_DEPENDS+= clap_complete-4.1.0
CARGO_CRATE_DEPENDS+= clap_lex-0.2.4
CARGO_CRATE_DEPENDS+= clap_lex-0.3.1
CARGO_CRATE_DEPENDS+= clap_mangen-0.2.7
CARGO_CRATE_DEPENDS+= clircle-0.3.0
CARGO_CRATE_DEPENDS+= console-0.15.0
CARGO_CRATE_DEPENDS+= console-0.15.5
CARGO_CRATE_DEPENDS+= content_inspector-0.2.4
CARGO_CRATE_DEPENDS+= crc32fast-1.3.2
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+= csv-1.1.6
CARGO_CRATE_DEPENDS+= csv-core-0.1.10
CARGO_CRATE_DEPENDS+= ctor-0.1.22
CARGO_CRATE_DEPENDS+= diff-0.1.12
CARGO_CRATE_DEPENDS+= criterion-0.4.0
CARGO_CRATE_DEPENDS+= criterion-plot-0.5.0
CARGO_CRATE_DEPENDS+= crossbeam-channel-0.5.6
CARGO_CRATE_DEPENDS+= crossbeam-deque-0.8.2
CARGO_CRATE_DEPENDS+= crossbeam-epoch-0.9.13
CARGO_CRATE_DEPENDS+= crossbeam-utils-0.8.14
CARGO_CRATE_DEPENDS+= ctor-0.1.26
CARGO_CRATE_DEPENDS+= diff-0.1.13
CARGO_CRATE_DEPENDS+= dirs-next-2.0.0
CARGO_CRATE_DEPENDS+= dirs-sys-next-0.1.2
CARGO_CRATE_DEPENDS+= either-1.6.1
CARGO_CRATE_DEPENDS+= either-1.8.0
CARGO_CRATE_DEPENDS+= encode_unicode-0.3.6
CARGO_CRATE_DEPENDS+= encoding-0.2.33
CARGO_CRATE_DEPENDS+= encoding-index-japanese-1.20141219.5
Expand All @@ -50,111 +54,126 @@ CARGO_CRATE_DEPENDS+= encoding-index-tradchinese-1.20141219.5
CARGO_CRATE_DEPENDS+= encoding_index_tests-0.1.4
CARGO_CRATE_DEPENDS+= encoding_rs-0.8.31
CARGO_CRATE_DEPENDS+= encoding_rs_io-0.1.7
CARGO_CRATE_DEPENDS+= fastrand-1.7.0
CARGO_CRATE_DEPENDS+= errno-0.2.8
CARGO_CRATE_DEPENDS+= errno-dragonfly-0.1.2
CARGO_CRATE_DEPENDS+= fastrand-1.8.0
CARGO_CRATE_DEPENDS+= filedescriptor-0.8.2
CARGO_CRATE_DEPENDS+= flate2-1.0.23
CARGO_CRATE_DEPENDS+= flate2-1.0.25
CARGO_CRATE_DEPENDS+= fnv-1.0.7
CARGO_CRATE_DEPENDS+= gag-1.0.0
CARGO_CRATE_DEPENDS+= getrandom-0.2.6
CARGO_CRATE_DEPENDS+= globset-0.4.8
CARGO_CRATE_DEPENDS+= grep-matcher-0.1.5
CARGO_CRATE_DEPENDS+= grep-pcre2-0.1.5
CARGO_CRATE_DEPENDS+= grep-regex-0.1.9
CARGO_CRATE_DEPENDS+= grep-searcher-0.1.8
CARGO_CRATE_DEPENDS+= getrandom-0.2.8
CARGO_CRATE_DEPENDS+= globset-0.4.10
CARGO_CRATE_DEPENDS+= grep-matcher-0.1.6
CARGO_CRATE_DEPENDS+= grep-pcre2-0.1.6
CARGO_CRATE_DEPENDS+= grep-regex-0.1.11
CARGO_CRATE_DEPENDS+= grep-searcher-0.1.11
CARGO_CRATE_DEPENDS+= half-1.8.2
CARGO_CRATE_DEPENDS+= hashbrown-0.11.2
CARGO_CRATE_DEPENDS+= hashbrown-0.12.3
CARGO_CRATE_DEPENDS+= hermit-abi-0.1.19
CARGO_CRATE_DEPENDS+= ignore-0.4.18
CARGO_CRATE_DEPENDS+= indexmap-1.8.1
CARGO_CRATE_DEPENDS+= hermit-abi-0.2.6
CARGO_CRATE_DEPENDS+= ignore-0.4.20
CARGO_CRATE_DEPENDS+= indexmap-1.9.2
CARGO_CRATE_DEPENDS+= insta-1.26.0
CARGO_CRATE_DEPENDS+= instant-0.1.12
CARGO_CRATE_DEPENDS+= itertools-0.10.3
CARGO_CRATE_DEPENDS+= itoa-0.4.8
CARGO_CRATE_DEPENDS+= itoa-1.0.1
CARGO_CRATE_DEPENDS+= jobserver-0.1.24
CARGO_CRATE_DEPENDS+= js-sys-0.3.57
CARGO_CRATE_DEPENDS+= io-lifetimes-1.0.4
CARGO_CRATE_DEPENDS+= is-terminal-0.4.2
CARGO_CRATE_DEPENDS+= itertools-0.10.5
CARGO_CRATE_DEPENDS+= itoa-1.0.5
CARGO_CRATE_DEPENDS+= jobserver-0.1.25
CARGO_CRATE_DEPENDS+= js-sys-0.3.60
CARGO_CRATE_DEPENDS+= lazy_static-1.4.0
CARGO_CRATE_DEPENDS+= lazycell-1.3.0
CARGO_CRATE_DEPENDS+= libc-0.2.123
CARGO_CRATE_DEPENDS+= libmimalloc-sys-0.1.24
CARGO_CRATE_DEPENDS+= libc-0.2.139
CARGO_CRATE_DEPENDS+= libmimalloc-sys-0.1.30
CARGO_CRATE_DEPENDS+= line-wrap-0.1.1
CARGO_CRATE_DEPENDS+= linked-hash-map-0.5.4
CARGO_CRATE_DEPENDS+= log-0.4.16
CARGO_CRATE_DEPENDS+= memchr-2.4.1
CARGO_CRATE_DEPENDS+= memmap2-0.3.1
CARGO_CRATE_DEPENDS+= memoffset-0.6.5
CARGO_CRATE_DEPENDS+= mimalloc-0.1.28
CARGO_CRATE_DEPENDS+= miniz_oxide-0.5.1
CARGO_CRATE_DEPENDS+= num-traits-0.2.14
CARGO_CRATE_DEPENDS+= num_cpus-1.13.1
CARGO_CRATE_DEPENDS+= num_threads-0.1.5
CARGO_CRATE_DEPENDS+= once_cell-1.10.0
CARGO_CRATE_DEPENDS+= onig-6.3.1
CARGO_CRATE_DEPENDS+= onig_sys-69.7.1
CARGO_CRATE_DEPENDS+= linked-hash-map-0.5.6
CARGO_CRATE_DEPENDS+= linux-raw-sys-0.1.4
CARGO_CRATE_DEPENDS+= log-0.4.17
CARGO_CRATE_DEPENDS+= memchr-2.5.0
CARGO_CRATE_DEPENDS+= memmap2-0.5.8
CARGO_CRATE_DEPENDS+= memoffset-0.7.1
CARGO_CRATE_DEPENDS+= mimalloc-0.1.34
CARGO_CRATE_DEPENDS+= miniz_oxide-0.6.2
CARGO_CRATE_DEPENDS+= num-traits-0.2.15
CARGO_CRATE_DEPENDS+= num_cpus-1.15.0
CARGO_CRATE_DEPENDS+= once_cell-1.17.0
CARGO_CRATE_DEPENDS+= onig-6.4.0
CARGO_CRATE_DEPENDS+= onig_sys-69.8.1
CARGO_CRATE_DEPENDS+= oorandom-11.1.3
CARGO_CRATE_DEPENDS+= os_str_bytes-6.0.0
CARGO_CRATE_DEPENDS+= os_str_bytes-6.4.1
CARGO_CRATE_DEPENDS+= output_vt100-0.1.3
CARGO_CRATE_DEPENDS+= path-slash-0.1.4
CARGO_CRATE_DEPENDS+= path-slash-0.2.1
CARGO_CRATE_DEPENDS+= path_abs-0.5.1
CARGO_CRATE_DEPENDS+= pathdiff-0.2.1
CARGO_CRATE_DEPENDS+= pcre2-0.2.3
CARGO_CRATE_DEPENDS+= pcre2-sys-0.2.5
CARGO_CRATE_DEPENDS+= pkg-config-0.3.25
CARGO_CRATE_DEPENDS+= plist-1.3.1
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+= pretty_assertions-1.2.1
CARGO_CRATE_DEPENDS+= proc-macro2-1.0.37
CARGO_CRATE_DEPENDS+= quote-1.0.18
CARGO_CRATE_DEPENDS+= rayon-1.5.2
CARGO_CRATE_DEPENDS+= rayon-core-1.9.2
CARGO_CRATE_DEPENDS+= redox_syscall-0.2.13
CARGO_CRATE_DEPENDS+= pkg-config-0.3.26
CARGO_CRATE_DEPENDS+= plist-1.4.0
CARGO_CRATE_DEPENDS+= plotters-0.3.4
CARGO_CRATE_DEPENDS+= plotters-backend-0.3.4
CARGO_CRATE_DEPENDS+= plotters-svg-0.3.3
CARGO_CRATE_DEPENDS+= pretty_assertions-1.3.0
CARGO_CRATE_DEPENDS+= proc-macro2-1.0.50
CARGO_CRATE_DEPENDS+= quick-xml-0.26.0
CARGO_CRATE_DEPENDS+= quote-1.0.23
CARGO_CRATE_DEPENDS+= rayon-1.6.1
CARGO_CRATE_DEPENDS+= rayon-core-1.10.1
CARGO_CRATE_DEPENDS+= redox_syscall-0.2.16
CARGO_CRATE_DEPENDS+= redox_users-0.4.3
CARGO_CRATE_DEPENDS+= regex-1.5.5
CARGO_CRATE_DEPENDS+= regex-1.7.1
CARGO_CRATE_DEPENDS+= regex-automata-0.1.10
CARGO_CRATE_DEPENDS+= regex-syntax-0.6.25
CARGO_CRATE_DEPENDS+= regex-syntax-0.6.28
CARGO_CRATE_DEPENDS+= remove_dir_all-0.5.3
CARGO_CRATE_DEPENDS+= rgb-0.8.32
CARGO_CRATE_DEPENDS+= rustc_version-0.4.0
CARGO_CRATE_DEPENDS+= rustversion-1.0.6
CARGO_CRATE_DEPENDS+= ryu-1.0.9
CARGO_CRATE_DEPENDS+= rgb-0.8.34
CARGO_CRATE_DEPENDS+= roff-0.2.1
CARGO_CRATE_DEPENDS+= rustix-0.36.7
CARGO_CRATE_DEPENDS+= rustversion-1.0.11
CARGO_CRATE_DEPENDS+= ryu-1.0.12
CARGO_CRATE_DEPENDS+= safemem-0.3.3
CARGO_CRATE_DEPENDS+= same-file-1.0.6
CARGO_CRATE_DEPENDS+= scopeguard-1.1.0
CARGO_CRATE_DEPENDS+= semver-1.0.7
CARGO_CRATE_DEPENDS+= serde-1.0.136
CARGO_CRATE_DEPENDS+= serde_cbor-0.11.2
CARGO_CRATE_DEPENDS+= serde_derive-1.0.136
CARGO_CRATE_DEPENDS+= serde_json-1.0.79
CARGO_CRATE_DEPENDS+= serde_yaml-0.8.23
CARGO_CRATE_DEPENDS+= semver-1.0.16
CARGO_CRATE_DEPENDS+= serde-1.0.152
CARGO_CRATE_DEPENDS+= serde_derive-1.0.152
CARGO_CRATE_DEPENDS+= serde_json-1.0.91
CARGO_CRATE_DEPENDS+= serde_yaml-0.8.26
CARGO_CRATE_DEPENDS+= similar-2.2.1
CARGO_CRATE_DEPENDS+= std_prelude-0.2.12
CARGO_CRATE_DEPENDS+= strsim-0.10.0
CARGO_CRATE_DEPENDS+= syn-1.0.91
CARGO_CRATE_DEPENDS+= syntect-4.6.0
CARGO_CRATE_DEPENDS+= syn-1.0.107
CARGO_CRATE_DEPENDS+= syntect-5.0.0
CARGO_CRATE_DEPENDS+= tempfile-3.3.0
CARGO_CRATE_DEPENDS+= term-0.7.0
CARGO_CRATE_DEPENDS+= termcolor-1.1.3
CARGO_CRATE_DEPENDS+= terminal_size-0.1.17
CARGO_CRATE_DEPENDS+= textwrap-0.11.0
CARGO_CRATE_DEPENDS+= textwrap-0.15.0
CARGO_CRATE_DEPENDS+= thiserror-1.0.30
CARGO_CRATE_DEPENDS+= thiserror-impl-1.0.30
CARGO_CRATE_DEPENDS+= termcolor-1.2.0
CARGO_CRATE_DEPENDS+= terminal_size-0.2.3
CARGO_CRATE_DEPENDS+= textwrap-0.16.0
CARGO_CRATE_DEPENDS+= thiserror-1.0.38
CARGO_CRATE_DEPENDS+= thiserror-impl-1.0.38
CARGO_CRATE_DEPENDS+= thread_local-1.1.4
CARGO_CRATE_DEPENDS+= time-0.3.9
CARGO_CRATE_DEPENDS+= time-0.3.17
CARGO_CRATE_DEPENDS+= time-core-0.1.0
CARGO_CRATE_DEPENDS+= time-macros-0.2.6
CARGO_CRATE_DEPENDS+= tinytemplate-1.2.1
CARGO_CRATE_DEPENDS+= unicode-width-0.1.9
CARGO_CRATE_DEPENDS+= unicode-xid-0.2.2
CARGO_CRATE_DEPENDS+= unicode-ident-1.0.6
CARGO_CRATE_DEPENDS+= unicode-width-0.1.10
CARGO_CRATE_DEPENDS+= walkdir-2.3.2
CARGO_CRATE_DEPENDS+= wasi-0.10.2+wasi-snapshot-preview1
CARGO_CRATE_DEPENDS+= wasm-bindgen-0.2.80
CARGO_CRATE_DEPENDS+= wasm-bindgen-backend-0.2.80
CARGO_CRATE_DEPENDS+= wasm-bindgen-macro-0.2.80
CARGO_CRATE_DEPENDS+= wasm-bindgen-macro-support-0.2.80
CARGO_CRATE_DEPENDS+= wasm-bindgen-shared-0.2.80
CARGO_CRATE_DEPENDS+= web-sys-0.3.57
CARGO_CRATE_DEPENDS+= wasi-0.11.0+wasi-snapshot-preview1
CARGO_CRATE_DEPENDS+= wasm-bindgen-0.2.83
CARGO_CRATE_DEPENDS+= wasm-bindgen-backend-0.2.83
CARGO_CRATE_DEPENDS+= wasm-bindgen-macro-0.2.83
CARGO_CRATE_DEPENDS+= wasm-bindgen-macro-support-0.2.83
CARGO_CRATE_DEPENDS+= wasm-bindgen-shared-0.2.83
CARGO_CRATE_DEPENDS+= web-sys-0.3.60
CARGO_CRATE_DEPENDS+= winapi-0.3.9
CARGO_CRATE_DEPENDS+= winapi-i686-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+= winapi-util-0.1.5
CARGO_CRATE_DEPENDS+= winapi-x86_64-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+= xml-rs-0.8.4
CARGO_CRATE_DEPENDS+= windows-sys-0.42.0
CARGO_CRATE_DEPENDS+= windows_aarch64_gnullvm-0.42.1
CARGO_CRATE_DEPENDS+= windows_aarch64_msvc-0.42.1
CARGO_CRATE_DEPENDS+= windows_i686_gnu-0.42.1
CARGO_CRATE_DEPENDS+= windows_i686_msvc-0.42.1
CARGO_CRATE_DEPENDS+= windows_x86_64_gnu-0.42.1
CARGO_CRATE_DEPENDS+= windows_x86_64_gnullvm-0.42.1
CARGO_CRATE_DEPENDS+= windows_x86_64_msvc-0.42.1
CARGO_CRATE_DEPENDS+= yaml-rust-0.4.5
CARGO_CRATE_DEPENDS+= yansi-0.5.1
Loading

0 comments on commit 098d5b9

Please sign in to comment.