From 0f5ede48d5a8811cd76f2c25892331ea9f9333eb Mon Sep 17 00:00:00 2001 From: sharkdp Date: Mon, 5 Jun 2017 11:56:39 +0200 Subject: [PATCH] Restructure according to Cargo doc --- Cargo.toml | 8 -------- src/fd.rs | 7 ------- src/{bin => }/main.rs | 5 +++-- 3 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 src/fd.rs rename src/{bin => }/main.rs (99%) diff --git a/Cargo.toml b/Cargo.toml index 1836d12..a2d7289 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,14 +3,6 @@ name = "fd" version = "0.3.0" authors = ["David Peter "] -[[bin]] -name = "fd" -path = "src/bin/main.rs" - -[lib] -name = "fd" -path = "src/fd.rs" - [dependencies] ansi_term = "0.9" getopts = "0.2" diff --git a/src/fd.rs b/src/fd.rs deleted file mode 100644 index e86d801..0000000 --- a/src/fd.rs +++ /dev/null @@ -1,7 +0,0 @@ -extern crate ansi_term; -extern crate getopts; -extern crate isatty; -extern crate regex; -extern crate ignore; - -pub mod lscolors; diff --git a/src/bin/main.rs b/src/main.rs similarity index 99% rename from src/bin/main.rs rename to src/main.rs index 13a71be..7ce1a34 100644 --- a/src/bin/main.rs +++ b/src/main.rs @@ -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 {