Replace internal atty module with atty crate.

This removes all use of explicit unsafe in ripgrep proper except for
one: accessing the contents of a memory map. (Which may never go away.)
This commit is contained in:
Andrew Gallant
2017-01-15 16:32:30 -05:00
parent b1d1cd2366
commit f5a2d022ec
5 changed files with 41 additions and 152 deletions

View File

@@ -1,3 +1,4 @@
extern crate atty;
extern crate bytecount;
#[macro_use]
extern crate clap;
@@ -46,7 +47,6 @@ macro_rules! eprintln {
mod app;
mod args;
mod atty;
mod pathutil;
mod printer;
mod search_buffer;