diff --git a/Cargo.lock b/Cargo.lock index b02ea23..5ec2ca2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -120,8 +120,8 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] -name = "dust" -version = "0.2.3" +name = "du-dust" +version = "0.2.4" dependencies = [ "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "assert_cli 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 102c5dc..0fd9d0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,24 @@ [package] -name = "dust" -version = "0.2.3" +name = "du-dust" +description = "A more intuitive version of du" +version = "0.2.4" authors = ["bootandy ", "nebkor "] +documentation = "https://github.com/bootandy/dust" +homepage = "https://github.com/bootandy/dust" +repository = "https://github.com/bootandy/dust" + +keywords = ["du", "command-line", "disk", "disk-usage"] +categories = ["command-line-utilities"] +license = "Apache-2.0" + +[badges] +travis-ci = {repository = "https://travis-ci.org/bootandy/dust"} + +[[bin]] +name = "dust" +path = "src/main.rs" + [dependencies] ansi_term = "0.11" clap = "2.31" diff --git a/src/display.rs b/src/display.rs index 2f62629..50c1d6b 100644 --- a/src/display.rs +++ b/src/display.rs @@ -1,7 +1,8 @@ extern crate ansi_term; use self::ansi_term::Colour::Fixed; -use dust::Node; + +use lib::Node; static UNITS: [char; 4] = ['T', 'G', 'M', 'K']; diff --git a/src/main.rs b/src/main.rs index ab17d16..24cab74 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,14 +1,15 @@ #[macro_use] extern crate clap; extern crate assert_cli; -extern crate dust; use self::display::draw_it; use clap::{App, AppSettings, Arg}; use utils::{find_big_ones, get_dir_tree}; + mod display; mod utils; +mod lib; static DEFAULT_NUMBER_OF_LINES: &'static str = "15"; diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 4a0132d..a9a82f8 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -2,9 +2,9 @@ use std::collections::HashSet; use std::fs; -use dust::Node; use std::path::Path; +use lib::Node; mod platform; use self::platform::*;