Restructure according to Cargo doc

This commit is contained in:
sharkdp 2017-06-05 11:56:39 +02:00
parent 002983b15b
commit 0f5ede48d5
3 changed files with 3 additions and 17 deletions

View file

@ -3,14 +3,6 @@ name = "fd"
version = "0.3.0"
authors = ["David Peter <mail@david-peter.de>"]
[[bin]]
name = "fd"
path = "src/bin/main.rs"
[lib]
name = "fd"
path = "src/fd.rs"
[dependencies]
ansi_term = "0.9"
getopts = "0.2"

View file

@ -1,7 +0,0 @@
extern crate ansi_term;
extern crate getopts;
extern crate isatty;
extern crate regex;
extern crate ignore;
pub mod lscolors;

View file

@ -3,7 +3,8 @@ extern crate getopts;
extern crate isatty;
extern crate regex;
extern crate ignore;
extern crate fd;
pub mod lscolors;
use std::env;
use std::error::Error;
@ -17,7 +18,7 @@ use isatty::stdout_isatty;
use regex::{Regex, RegexBuilder};
use ignore::WalkBuilder;
use fd::lscolors::LsColors;
use lscolors::LsColors;
/// Configuration options for *fd*.
struct FdOptions {