-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
99 lines (89 loc) · 3.03 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[package]
name = "hgrep"
version = "0.3.7"
edition = "2021"
authors = ["rhysd <[email protected]>"]
description = """
hgrep is a grep tool with human-friendly search output. This is similar to `-C`
option of `grep` command, but its output is enhanced with syntax highlighting
focusing on human readable outputs.
"""
license = "MIT"
homepage = "https://github.com/rhysd/hgrep#readme"
repository = "https://github.com/rhysd/hgrep"
readme = "README.md"
include = [
"/assets/themes.bin",
"/assets/syntaxes.bin",
"/assets/LICENSE-MIT",
"/src",
"/LICENSE.txt",
"/README.md",
"/CHANGELOG.md",
]
categories = ["command-line-utilities", "text-processing"]
keywords = ["grep", "search", "syntax-highlighting", "ripgrep", "bat"]
[profile.bench]
lto = "thin"
[profile.release]
lto = "thin"
codegen-units = 1
[[bin]]
name = "hgrep"
path = "src/main.rs"
[workspace]
members = [
"bench",
"assets/builder",
]
[features]
default = ["ripgrep", "bat-printer", "syntect-printer"]
ripgrep = ["dep:grep-matcher", "dep:grep-pcre2", "dep:grep-regex", "dep:grep-searcher", "dep:ignore", "dep:regex-syntax", "dep:rayon"]
syntect-printer = ["dep:syntect", "dep:rayon", "dep:unicode-width", "dep:bincode", "dep:flate2", "dep:ansi_colours"]
bat-printer = ["dep:bat", "dep:dirs"]
[dependencies]
anyhow = "1"
clap = { version = "4.5.4", features = ["wrap_help"] }
clap_complete = "4.5.1"
memchr = "2.7.2"
pathdiff = "0.2.1"
terminal_size = "0.4.0"
bat = { version = "^0.24.0", default-features = false, features = ["regex-onig"], optional = true }
grep-regex = { version = "0.1.12", optional = true }
grep-searcher = { version = "0.1.13", optional = true }
ignore = { version = "0.4", optional = true }
regex-syntax = { version = "0.8.3", optional = true }
grep-matcher = { version = "0.1.7", optional = true }
grep-pcre2 = { version = "0.1.7", optional = true }
syntect = { version = "5.2.0", optional = true }
rayon = { version = "1.10.0", optional = true }
unicode-width = { version = "0.2.0", optional = true }
bincode = { version = "1.3.3", optional = true }
flate2 = { version = "1.0.28", optional = true }
ansi_colours = { version = "1.2.2", default-features = false, optional = true }
dirs = { version = "5.0.1", optional = true }
mimalloc = { version = "0.1.39", default-features = false }
clap_mangen = "0.2.20"
clap_complete_nushell = "4.5.1"
shlex = "1.3.0"
encoding_rs = "0.8.34"
[target."cfg(windows)".dependencies]
nu-ansi-term = { version = "0.50.0", default-features = false }
windows-version = "0.1.0"
[target."cfg(not(windows))".dependencies]
terminfo = "0.9.0"
[dev-dependencies]
insta = "1.38.0"
once_cell = "1.19.0"
pretty_assertions = "1"
regex = "1.10.4"
set-git-hooks-dir = "1.0.2"
[package.metadata.deb]
copyright = "Copyright (c) 2021 rhysd"
license-file = ["LICENSE.txt", "0"]
assets = [
["target/release/hgrep", "usr/bin/", "755"],
["README.md", "usr/share/doc/hgrep/README", "644"],
["target/release/hgrep.1", "usr/share/man/man1/hgrep.1", "644"],
["target/release/hgrep.bash", "usr/share/bash-completion/completions/hgrep", "644"],
]