2016-10-12 01:57:09 +02:00
|
|
|
[package]
|
|
|
|
name = "ignore"
|
2016-12-06 03:11:48 +02:00
|
|
|
version = "0.1.6" #:version
|
2016-10-12 01:57:09 +02:00
|
|
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
|
|
|
description = """
|
|
|
|
A fast library for efficiently matching ignore files such as `.gitignore`
|
|
|
|
against file paths.
|
|
|
|
"""
|
|
|
|
documentation = "https://docs.rs/ignore"
|
|
|
|
homepage = "https://github.com/BurntSushi/ripgrep/tree/master/ignore"
|
|
|
|
repository = "https://github.com/BurntSushi/ripgrep/tree/master/ignore"
|
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["glob", "ignore", "gitignore", "pattern", "file"]
|
|
|
|
license = "Unlicense/MIT"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "ignore"
|
|
|
|
bench = false
|
|
|
|
|
|
|
|
[dependencies]
|
2016-11-06 03:44:15 +02:00
|
|
|
crossbeam = "0.2"
|
2016-11-06 22:48:40 +02:00
|
|
|
globset = { version = "0.1.2", path = "../globset" }
|
2016-10-12 01:57:09 +02:00
|
|
|
lazy_static = "0.2"
|
|
|
|
log = "0.3"
|
2016-12-30 22:43:29 +02:00
|
|
|
memchr = "1"
|
2016-12-30 23:24:09 +02:00
|
|
|
regex = "0.2.0"
|
2016-12-30 22:43:29 +02:00
|
|
|
thread_local = "0.3.2"
|
Don't search stdout redirected file.
When running ripgrep like this:
rg foo > output
we must be careful not to search `output` since ripgrep is actively writing
to it. Searching it can cause massive blowups where the file grows without
bound.
While this is conceptually easy to fix (check the inode of the redirection
and the inode of the file you're about to search), there are a few problems
with it.
First, inodes are a Unix thing, so we need a Windows specific solution to
this as well. To resolve this concern, I created a new crate, `same-file`,
which provides a cross platform abstraction.
Second, stat'ing every file is costly. This is not avoidable on Windows,
but on Unix, we can get the inode number directly from directory traversal.
However, this information wasn't exposed, but now it is (through both the
ignore and walkdir crates).
Fixes #286
2017-01-08 17:27:30 +02:00
|
|
|
walkdir = "1.0.7"
|
2016-10-12 01:57:09 +02:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
tempdir = "0.3.5"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
simd-accel = ["globset/simd-accel"]
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
debug = true
|