2016-02-27 18:07:26 +02:00
|
|
|
[package]
|
2016-09-08 22:15:44 +02:00
|
|
|
name = "ripgrep"
|
2018-08-03 22:13:31 +02:00
|
|
|
version = "0.9.0" #: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
|
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",
|
|
|
|
"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]
|
2018-07-22 19:07:48 +02:00
|
|
|
atty = "0.2.11"
|
2018-04-21 18:09:15 +02:00
|
|
|
globset = { version = "0.4.0", path = "globset" }
|
2018-08-03 23:26:22 +02:00
|
|
|
grep = { version = "0.2.0", path = "grep" }
|
2018-02-11 20:42:59 +02:00
|
|
|
ignore = { version = "0.4.0", path = "ignore" }
|
2017-11-30 18:51:06 +02:00
|
|
|
lazy_static = "1"
|
2018-02-04 04:31:28 +02:00
|
|
|
log = "0.4"
|
2016-08-26 03:44:37 +02:00
|
|
|
num_cpus = "1"
|
2018-05-07 19:07:30 +02:00
|
|
|
regex = "1"
|
ignore: upgrade to walkdir 2
The uninteresting bits of this commit involve mechanical changes for
updates to walkdir 2. The more interesting bits of this commit are the
breaking changes, although none of them should require any significant
change on users of this library. The breaking changes are as follows:
* `DirEntry::path_is_symbolic_link` has been renamed to
`DirEntry::path_is_symlink`. This matches the conventions in the
standard library, and also the corresponding name change in walkdir.
* Removed the `From<walkdir::Error> for ignore::Error` impl. This was
intended to only be used internally, but was the only thing that
made `walkdir` a public dependency of `ignore`. Therefore, we remove
it since it seems unnecessary.
* Renamed `WalkBuilder::sort_by` to `WalkBuilder::sort_by_file_name`,
and changed the type of the comparator from
Fn(&OsString, &OsString) -> cmp::Ordering + 'static
to
Fn(&OsStr, &OsStr) -> cmp::Ordering + Send + Sync + 'static
The corresponding change in `walkdir` retains the `sort_by` name, but
gives the comparator a pair of `&DirEntry` values instead of a pair
of `&OsStr` values. Ideally, `ignore` would hand off its own pair of
`&ignore::DirEntry` values, but this requires more design work. So for
now, we retain previous functionality, but leave room to make a proper
`sort_by` method.
[breaking-change]
2017-10-22 01:27:04 +02:00
|
|
|
same-file = "1"
|
2018-08-03 23:26:22 +02:00
|
|
|
serde_json = "1"
|
2018-07-18 00:37:02 +02:00
|
|
|
termcolor = "1"
|
2016-08-26 03:44:37 +02:00
|
|
|
|
2018-02-04 04:50:30 +02:00
|
|
|
[dependencies.clap]
|
2018-02-06 02:22:44 +02:00
|
|
|
version = "2.29.4"
|
2018-02-04 04:50:30 +02:00
|
|
|
default-features = false
|
|
|
|
features = ["suggestions", "color"]
|
|
|
|
|
2018-02-02 04:11:02 +02:00
|
|
|
[target.'cfg(windows)'.dependencies.winapi]
|
|
|
|
version = "0.3"
|
2018-08-03 23:26:22 +02:00
|
|
|
features = ["std", "fileapi", "winnt"]
|
2018-02-02 04:11:02 +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]
|
2017-11-30 18:51:06 +02:00
|
|
|
lazy_static = "1"
|
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-02-06 02:22:44 +02:00
|
|
|
version = "2.29.4"
|
2018-02-04 04:50:30 +02:00
|
|
|
default-features = false
|
|
|
|
features = ["suggestions", "color"]
|
|
|
|
|
2016-08-27 07:01:06 +02:00
|
|
|
[features]
|
2018-08-03 23:26:22 +02:00
|
|
|
avx-accel = ["grep/avx-accel"]
|
|
|
|
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
|