mirror of
https://github.com/sharkdp/fd.git
synced 2024-09-28 21:11:30 +02:00
Restructure according to Cargo doc
This commit is contained in:
parent
002983b15b
commit
0f5ede48d5
@ -3,14 +3,6 @@ name = "fd"
|
|||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
authors = ["David Peter <mail@david-peter.de>"]
|
authors = ["David Peter <mail@david-peter.de>"]
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "fd"
|
|
||||||
path = "src/bin/main.rs"
|
|
||||||
|
|
||||||
[lib]
|
|
||||||
name = "fd"
|
|
||||||
path = "src/fd.rs"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ansi_term = "0.9"
|
ansi_term = "0.9"
|
||||||
getopts = "0.2"
|
getopts = "0.2"
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
extern crate ansi_term;
|
|
||||||
extern crate getopts;
|
|
||||||
extern crate isatty;
|
|
||||||
extern crate regex;
|
|
||||||
extern crate ignore;
|
|
||||||
|
|
||||||
pub mod lscolors;
|
|
@ -3,7 +3,8 @@ extern crate getopts;
|
|||||||
extern crate isatty;
|
extern crate isatty;
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
extern crate ignore;
|
extern crate ignore;
|
||||||
extern crate fd;
|
|
||||||
|
pub mod lscolors;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
@ -17,7 +18,7 @@ use isatty::stdout_isatty;
|
|||||||
use regex::{Regex, RegexBuilder};
|
use regex::{Regex, RegexBuilder};
|
||||||
use ignore::WalkBuilder;
|
use ignore::WalkBuilder;
|
||||||
|
|
||||||
use fd::lscolors::LsColors;
|
use lscolors::LsColors;
|
||||||
|
|
||||||
/// Configuration options for *fd*.
|
/// Configuration options for *fd*.
|
||||||
struct FdOptions {
|
struct FdOptions {
|
Loading…
Reference in New Issue
Block a user