summaryrefslogtreecommitdiffstats
path: root/grep
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-02-03 21:31:28 -0500
committerAndrew Gallant <jamslam@gmail.com>2018-02-04 10:40:20 -0500
commit35350470942920574e58170c1ab9d419f68af6da (patch)
tree2a791159591e4ff98463213604f4f08121ff4acb /grep
parentfe0025549418822c1711886bf136660845e8f433 (diff)
logger: drop env_logger
This commit updates the `log` crate to 0.4 and drops the dependency on env_logger. In particular, the latest version of env_logger brings in additional non-optional dependencies such as chrono that I don't think is worth including into ripgrep. It turns out ripgrep doesn't need any fancy logging. We just need a concept of log levels and the ability to print to stderr. Therefore, we just roll our own super simple logger. This update is motivated by the persistent configuration task. In particular, we need the ability to toggle the global log level more than once, and this doesn't appear to be possible with older versions of the log crate.
Diffstat (limited to 'grep')
-rw-r--r--grep/Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep/Cargo.toml b/grep/Cargo.toml
index ddce71ae..34f96bc4 100644
--- a/grep/Cargo.toml
+++ b/grep/Cargo.toml
@@ -13,7 +13,7 @@ keywords = ["regex", "grep", "egrep", "search", "pattern"]
license = "Unlicense/MIT"
[dependencies]
-log = "0.3"
+log = "0.4"
memchr = "2"
regex = "0.2.1"
regex-syntax = "0.4.0"