# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "hgrep" version = "0.3.7" authors = ["rhysd "] include = [ "/assets/themes.bin", "/assets/syntaxes.bin", "/assets/LICENSE-MIT", "/src", "/LICENSE.txt", "/README.md", "/CHANGELOG.md", ] 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. """ homepage = "https://github.com/rhysd/hgrep#readme" readme = "README.md" keywords = [ "grep", "search", "syntax-highlighting", "ripgrep", "bat", ] categories = [ "command-line-utilities", "text-processing", ] license = "MIT" repository = "https://github.com/rhysd/hgrep" [package.metadata.deb] 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", ], ] copyright = "Copyright (c) 2021 rhysd" license-file = [ "LICENSE.txt", "0", ] [profile.bench] lto = "thin" [profile.release] lto = "thin" codegen-units = 1 [[bin]] name = "hgrep" path = "src/main.rs" [dependencies.ansi_colours] version = "1.2.2" optional = true default-features = false [dependencies.anyhow] version = "1" [dependencies.bat] version = "^0.24.0" features = ["regex-onig"] optional = true default-features = false [dependencies.bincode] version = "1.3.3" optional = true [dependencies.clap] version = "4.5.4" features = ["wrap_help"] [dependencies.clap_complete] version = "4.5.1" [dependencies.clap_complete_nushell] version = "4.5.1" [dependencies.clap_mangen] version = "0.2.20" [dependencies.dirs] version = "5.0.1" optional = true [dependencies.encoding_rs] version = "0.8.34" [dependencies.flate2] version = "1.0.28" optional = true [dependencies.grep-matcher] version = "0.1.7" optional = true [dependencies.grep-pcre2] version = "0.1.7" optional = true [dependencies.grep-regex] version = "0.1.12" optional = true [dependencies.grep-searcher] version = "0.1.13" optional = true [dependencies.ignore] version = "0.4" optional = true [dependencies.memchr] version = "2.7.2" [dependencies.mimalloc] version = "0.1.39" default-features = false [dependencies.pathdiff] version = "0.2.1" [dependencies.rayon] version = "1.10.0" optional = true [dependencies.regex-syntax] version = "0.8.3" optional = true [dependencies.shlex] version = "1.3.0" [dependencies.syntect] version = "5.2.0" optional = true [dependencies.terminal_size] version = "0.3.0" [dependencies.unicode-width] version = "0.1.11" optional = true [dev-dependencies.insta] version = "1.38.0" [dev-dependencies.lazy_static] version = "1.4" [dev-dependencies.pretty_assertions] version = "1" [dev-dependencies.regex] version = "1.10.4" [features] bat-printer = [ "dep:bat", "dep:dirs", ] 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", ] [target."cfg(not(windows))".dependencies.terminfo] version = "0.8.0" [target."cfg(windows)".dependencies.nu-ansi-term] version = "0.50.0" default-features = false [target."cfg(windows)".dependencies.windows-version] version = "0.1.0"