2016-02-27 18:07:26 +02:00
|
|
|
[package]
|
2016-09-08 22:15:44 +02:00
|
|
|
name = "ripgrep"
|
2020-05-29 15:26:47 +02:00
|
|
|
version = "12.1.1" #:version
|
2016-02-27 18:07:26 +02:00
|
|
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
|
|
|
description = """
|
2021-05-30 09:03:40 +02:00
|
|
|
ripgrep is a line-oriented search tool that recursively searches the current
|
|
|
|
directory for a regex pattern while respecting gitignore rules. ripgrep has
|
|
|
|
first class support on Windows, macOS and Linux.
|
2016-02-27 18:07:26 +02:00
|
|
|
"""
|
2016-09-08 22:15:44 +02:00
|
|
|
documentation = "https://github.com/BurntSushi/ripgrep"
|
|
|
|
homepage = "https://github.com/BurntSushi/ripgrep"
|
|
|
|
repository = "https://github.com/BurntSushi/ripgrep"
|
2016-02-27 18:07:26 +02:00
|
|
|
keywords = ["regex", "grep", "egrep", "search", "pattern"]
|
2017-01-21 18:31:09 +02:00
|
|
|
categories = ["command-line-utilities", "text-processing"]
|
2018-07-21 19:25:39 +02:00
|
|
|
license = "Unlicense OR MIT"
|
2016-10-11 04:24:28 +02:00
|
|
|
exclude = ["HomebrewFormula"]
|
Switch from Docopt to Clap.
There were two important reasons for the switch:
1. Performance. Docopt does poorly when the argv becomes large, which is
a reasonable common use case for search tools. (e.g., use with xargs)
2. Better failure modes. Clap knows a lot more about how a particular
argv might be invalid, and can therefore provide much clearer error
messages.
While both were important, (1) made it urgent.
Note that since Clap requires at least Rust 1.11, this will in turn
increase the minimum Rust version supported by ripgrep from Rust 1.9 to
Rust 1.11. It is therefore a breaking change, so the soonest release of
ripgrep with Clap will have to be 0.3.
There is also at least one subtle breaking change in real usage.
Previous to this commit, this used to work:
rg -e -foo
Where this would cause ripgrep to search for the string `-foo`. Clap
currently has problems supporting this use case
(see: https://github.com/kbknapp/clap-rs/issues/742),
but it can be worked around by using this instead:
rg -e [-]foo
or even
rg [-]foo
and this still works:
rg -- -foo
This commit also adds Bash, Fish and PowerShell completion files to the
release, fixes a bug that prevented ripgrep from working on file
paths containing invalid UTF-8 and shows short descriptions in the
output of `-h` but longer descriptions in the output of `--help`.
Fixes #136, Fixes #189, Fixes #210, Fixes #230
2016-11-13 04:48:11 +02:00
|
|
|
build = "build.rs"
|
2018-06-24 02:19:34 +02:00
|
|
|
autotests = false
|
2019-01-19 17:15:56 +02:00
|
|
|
edition = "2018"
|
2016-02-27 18:07:26 +02:00
|
|
|
|
2016-08-26 03:44:37 +02:00
|
|
|
[[bin]]
|
|
|
|
bench = false
|
2020-02-18 01:28:09 +02:00
|
|
|
path = "crates/core/main.rs"
|
2016-09-08 22:15:44 +02:00
|
|
|
name = "rg"
|
2016-08-26 03:44:37 +02:00
|
|
|
|
2016-09-10 04:58:30 +02:00
|
|
|
[[test]]
|
|
|
|
name = "integration"
|
|
|
|
path = "tests/tests.rs"
|
|
|
|
|
2017-12-19 01:04:49 +02:00
|
|
|
[workspace]
|
2018-04-29 15:29:52 +02:00
|
|
|
members = [
|
2020-02-18 01:28:09 +02:00
|
|
|
"crates/globset",
|
|
|
|
"crates/grep",
|
|
|
|
"crates/cli",
|
|
|
|
"crates/matcher",
|
|
|
|
"crates/pcre2",
|
|
|
|
"crates/printer",
|
|
|
|
"crates/regex",
|
|
|
|
"crates/searcher",
|
|
|
|
"crates/ignore",
|
2018-04-29 15:29:52 +02:00
|
|
|
]
|
2017-12-19 01:04:49 +02:00
|
|
|
|
2016-02-27 18:07:26 +02:00
|
|
|
[dependencies]
|
2020-03-16 03:38:59 +02:00
|
|
|
bstr = "0.2.12"
|
2020-05-29 15:18:59 +02:00
|
|
|
grep = { version = "0.2.7", path = "crates/grep" }
|
2021-06-12 14:01:13 +02:00
|
|
|
ignore = { version = "0.4.18", path = "crates/ignore" }
|
2018-09-07 19:14:31 +02:00
|
|
|
lazy_static = "1.1.0"
|
|
|
|
log = "0.4.5"
|
|
|
|
num_cpus = "1.8.0"
|
2020-03-16 03:38:59 +02:00
|
|
|
regex = "1.3.5"
|
2018-09-07 19:14:31 +02:00
|
|
|
serde_json = "1.0.23"
|
2020-03-16 03:38:59 +02:00
|
|
|
termcolor = "1.1.0"
|
2016-08-26 03:44:37 +02:00
|
|
|
|
2018-02-04 04:50:30 +02:00
|
|
|
[dependencies.clap]
|
2020-03-16 03:38:59 +02:00
|
|
|
version = "2.33.0"
|
2018-02-04 04:50:30 +02:00
|
|
|
default-features = false
|
2018-08-22 05:10:34 +02:00
|
|
|
features = ["suggestions"]
|
2018-02-04 04:50:30 +02:00
|
|
|
|
2019-04-25 16:49:59 +02:00
|
|
|
[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.jemallocator]
|
2019-04-24 23:21:38 +02:00
|
|
|
version = "0.3.0"
|
|
|
|
|
Switch from Docopt to Clap.
There were two important reasons for the switch:
1. Performance. Docopt does poorly when the argv becomes large, which is
a reasonable common use case for search tools. (e.g., use with xargs)
2. Better failure modes. Clap knows a lot more about how a particular
argv might be invalid, and can therefore provide much clearer error
messages.
While both were important, (1) made it urgent.
Note that since Clap requires at least Rust 1.11, this will in turn
increase the minimum Rust version supported by ripgrep from Rust 1.9 to
Rust 1.11. It is therefore a breaking change, so the soonest release of
ripgrep with Clap will have to be 0.3.
There is also at least one subtle breaking change in real usage.
Previous to this commit, this used to work:
rg -e -foo
Where this would cause ripgrep to search for the string `-foo`. Clap
currently has problems supporting this use case
(see: https://github.com/kbknapp/clap-rs/issues/742),
but it can be worked around by using this instead:
rg -e [-]foo
or even
rg [-]foo
and this still works:
rg -- -foo
This commit also adds Bash, Fish and PowerShell completion files to the
release, fixes a bug that prevented ripgrep from working on file
paths containing invalid UTF-8 and shows short descriptions in the
output of `-h` but longer descriptions in the output of `--help`.
Fixes #136, Fixes #189, Fixes #210, Fixes #230
2016-11-13 04:48:11 +02:00
|
|
|
[build-dependencies]
|
2018-09-07 19:14:31 +02:00
|
|
|
lazy_static = "1.1.0"
|
Switch from Docopt to Clap.
There were two important reasons for the switch:
1. Performance. Docopt does poorly when the argv becomes large, which is
a reasonable common use case for search tools. (e.g., use with xargs)
2. Better failure modes. Clap knows a lot more about how a particular
argv might be invalid, and can therefore provide much clearer error
messages.
While both were important, (1) made it urgent.
Note that since Clap requires at least Rust 1.11, this will in turn
increase the minimum Rust version supported by ripgrep from Rust 1.9 to
Rust 1.11. It is therefore a breaking change, so the soonest release of
ripgrep with Clap will have to be 0.3.
There is also at least one subtle breaking change in real usage.
Previous to this commit, this used to work:
rg -e -foo
Where this would cause ripgrep to search for the string `-foo`. Clap
currently has problems supporting this use case
(see: https://github.com/kbknapp/clap-rs/issues/742),
but it can be worked around by using this instead:
rg -e [-]foo
or even
rg [-]foo
and this still works:
rg -- -foo
This commit also adds Bash, Fish and PowerShell completion files to the
release, fixes a bug that prevented ripgrep from working on file
paths containing invalid UTF-8 and shows short descriptions in the
output of `-h` but longer descriptions in the output of `--help`.
Fixes #136, Fixes #189, Fixes #210, Fixes #230
2016-11-13 04:48:11 +02:00
|
|
|
|
2018-02-04 04:50:30 +02:00
|
|
|
[build-dependencies.clap]
|
2020-03-16 03:38:59 +02:00
|
|
|
version = "2.33.0"
|
2018-02-04 04:50:30 +02:00
|
|
|
default-features = false
|
2018-08-22 05:10:34 +02:00
|
|
|
features = ["suggestions"]
|
2018-02-04 04:50:30 +02:00
|
|
|
|
2018-08-07 02:11:58 +02:00
|
|
|
[dev-dependencies]
|
2018-09-07 19:14:31 +02:00
|
|
|
serde = "1.0.77"
|
|
|
|
serde_derive = "1.0.77"
|
2020-02-19 14:28:08 +02:00
|
|
|
walkdir = "2"
|
2018-08-07 02:11:58 +02:00
|
|
|
|
2016-08-27 07:01:06 +02:00
|
|
|
[features]
|
2018-08-03 23:26:22 +02:00
|
|
|
simd-accel = ["grep/simd-accel"]
|
|
|
|
pcre2 = ["grep/pcre2"]
|
2016-08-27 07:01:06 +02:00
|
|
|
|
2016-02-27 18:07:26 +02:00
|
|
|
[profile.release]
|
2018-08-03 23:26:22 +02:00
|
|
|
debug = 1
|
2018-08-22 03:26:18 +02:00
|
|
|
|
|
|
|
[package.metadata.deb]
|
|
|
|
features = ["pcre2"]
|
2018-09-13 14:17:24 +02:00
|
|
|
section = "utils"
|
2018-08-22 03:26:18 +02:00
|
|
|
assets = [
|
|
|
|
["target/release/rg", "usr/bin/", "755"],
|
|
|
|
["COPYING", "usr/share/doc/ripgrep/", "644"],
|
|
|
|
["LICENSE-MIT", "usr/share/doc/ripgrep/", "644"],
|
|
|
|
["UNLICENSE", "usr/share/doc/ripgrep/", "644"],
|
|
|
|
["CHANGELOG.md", "usr/share/doc/ripgrep/CHANGELOG", "644"],
|
|
|
|
["README.md", "usr/share/doc/ripgrep/README", "644"],
|
|
|
|
["FAQ.md", "usr/share/doc/ripgrep/FAQ", "644"],
|
|
|
|
# The man page is automatically generated by ripgrep's build process, so
|
2020-09-22 16:29:16 +02:00
|
|
|
# this file isn't actually committed. Instead, to create a dpkg, either
|
2018-09-07 19:28:57 +02:00
|
|
|
# create a deployment/deb directory and copy the man page to it, or use the
|
2020-03-16 02:43:13 +02:00
|
|
|
# 'ci/build-deb' script.
|
2018-09-07 19:28:57 +02:00
|
|
|
["deployment/deb/rg.1", "usr/share/man/man1/rg.1", "644"],
|
|
|
|
# Similarly for shell completions.
|
|
|
|
["deployment/deb/rg.bash", "usr/share/bash-completion/completions/rg", "644"],
|
2020-02-17 20:33:35 +02:00
|
|
|
["deployment/deb/rg.fish", "usr/share/fish/vendor_completions.d/rg.fish", "644"],
|
2018-09-07 19:28:57 +02:00
|
|
|
["deployment/deb/_rg", "usr/share/zsh/vendor-completions/", "644"],
|
2018-08-22 03:26:18 +02:00
|
|
|
]
|
|
|
|
extended-description = """\
|
|
|
|
ripgrep (rg) recursively searches your current directory for a regex pattern.
|
|
|
|
By default, ripgrep will respect your .gitignore and automatically skip hidden
|
|
|
|
files/directories and binary files.
|
|
|
|
"""
|