mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-01-29 22:01:04 +02:00
cd575d99f8
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]
64 lines
1.5 KiB
TOML
64 lines
1.5 KiB
TOML
[package]
|
|
name = "ripgrep"
|
|
version = "0.6.0" #:version
|
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
|
description = """
|
|
Line oriented search tool using Rust's regex library. Combines the raw
|
|
performance of grep with the usability of the silver searcher.
|
|
"""
|
|
documentation = "https://github.com/BurntSushi/ripgrep"
|
|
homepage = "https://github.com/BurntSushi/ripgrep"
|
|
repository = "https://github.com/BurntSushi/ripgrep"
|
|
readme = "README.md"
|
|
keywords = ["regex", "grep", "egrep", "search", "pattern"]
|
|
categories = ["command-line-utilities", "text-processing"]
|
|
license = "Unlicense/MIT"
|
|
exclude = ["HomebrewFormula"]
|
|
build = "build.rs"
|
|
|
|
[badges]
|
|
travis-ci = { repository = "BurntSushi/ripgrep" }
|
|
appveyor = { repository = "BurntSushi/ripgrep" }
|
|
|
|
[[bin]]
|
|
bench = false
|
|
path = "src/main.rs"
|
|
name = "rg"
|
|
|
|
[[test]]
|
|
name = "integration"
|
|
path = "tests/tests.rs"
|
|
|
|
[dependencies]
|
|
atty = "0.2.2"
|
|
bytecount = "0.1.4"
|
|
clap = "2.26"
|
|
encoding_rs = "0.7"
|
|
env_logger = { version = "0.4", default-features = false }
|
|
grep = { version = "0.1.5", path = "grep" }
|
|
ignore = { version = "0.2.2", path = "ignore" }
|
|
lazy_static = "0.2"
|
|
libc = "0.2"
|
|
log = "0.3"
|
|
memchr = "2"
|
|
memmap = "0.5"
|
|
num_cpus = "1"
|
|
regex = "0.2.1"
|
|
same-file = "1"
|
|
termcolor = { version = "0.3.0", path = "termcolor" }
|
|
|
|
[build-dependencies]
|
|
clap = "2.26"
|
|
lazy_static = "0.2"
|
|
|
|
[features]
|
|
avx-accel = ["bytecount/avx-accel"]
|
|
simd-accel = [
|
|
"bytecount/simd-accel",
|
|
"regex/simd-accel",
|
|
"encoding_rs/simd-accel",
|
|
]
|
|
|
|
[profile.release]
|
|
debug = true
|