2016-02-27 18:07:26 +02:00
|
|
|
[package]
|
2016-09-08 22:15:44 +02:00
|
|
|
name = "ripgrep"
|
2019-04-16 19:10:29 +02:00
|
|
|
version = "11.0.1" #:version
|
2016-02-27 18:07:26 +02:00
|
|
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
|
|
|
description = """
|
2018-04-26 23:04:35 +02:00
|
|
|
ripgrep is a line-oriented search tool that recursively searches your current
|
|
|
|
directory for a regex pattern while respecting your 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
|
|
|
readme = "README.md"
|
|
|
|
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
|
|
|
|
2017-08-24 01:54:33 +02:00
|
|
|
[badges]
|
|
|
|
travis-ci = { repository = "BurntSushi/ripgrep" }
|
|
|
|
appveyor = { repository = "BurntSushi/ripgrep" }
|
|
|
|
|
2016-08-26 03:44:37 +02:00
|
|
|
[[bin]]
|
|
|
|
bench = false
|
|
|
|
path = "src/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 = [
|
|
|
|
"globset",
|
|
|
|
"grep",
|
2018-08-30 02:53:52 +02:00
|
|
|
"grep-cli",
|
2018-04-29 15:29:52 +02:00
|
|
|
"grep-matcher",
|
|
|
|
"grep-pcre2",
|
|
|
|
"grep-printer",
|
|
|
|
"grep-regex",
|
|
|
|
"grep-searcher",
|
|
|
|
"ignore",
|
|
|
|
]
|
2017-12-19 01:04:49 +02:00
|
|
|
|
2016-02-27 18:07:26 +02:00
|
|
|
[dependencies]
|
2019-04-04 21:14:29 +02:00
|
|
|
bstr = "0.1.2"
|
2019-04-16 00:03:46 +02:00
|
|
|
grep = { version = "0.2.4", path = "grep" }
|
2019-04-15 23:50:37 +02:00
|
|
|
ignore = { version = "0.4.7", path = "ignore" }
|
2018-09-07 19:14:31 +02:00
|
|
|
lazy_static = "1.1.0"
|
|
|
|
log = "0.4.5"
|
|
|
|
num_cpus = "1.8.0"
|
|
|
|
regex = "1.0.5"
|
|
|
|
serde_json = "1.0.23"
|
|
|
|
termcolor = "1.0.3"
|
2016-08-26 03:44:37 +02:00
|
|
|
|
2018-02-04 04:50:30 +02:00
|
|
|
[dependencies.clap]
|
2018-08-22 05:10:34 +02:00
|
|
|
version = "2.32.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
|
|
|
|
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]
|
2018-08-22 05:10:34 +02:00
|
|
|
version = "2.32.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"
|
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
|
|
|
|
# this file isn't actually commited. 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
|
2018-08-22 03:26:18 +02:00
|
|
|
# 'ci/build_deb.sh' 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"],
|
|
|
|
["deployment/deb/rg.fish", "usr/share/fish/completions/rg.fish", "644"],
|
|
|
|
["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.
|
|
|
|
"""
|