summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2021-05-09 14:25:51 -0600
committernachoparker <nacho@ownyourbits.com>2021-05-09 14:25:51 -0600
commit44e877d148f29ae68e44b5553018f2096087d90b (patch)
tree9eb86018c4ae32830a1ff2f2b00d50fb6ac97dd8
parent14ecb1cbfb37d84ff7e4c6bb9e94f16f739dc954 (diff)
Use CARGO_PKG_VERSIONHEADv0.2.18master
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml5
-rw-r--r--src/lib.rs2
3 files changed, 5 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 080d50a..5191ab5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,7 +17,7 @@ checksum = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034"
[[package]]
name = "dutree"
-version = "0.2.16"
+version = "0.2.18"
dependencies = [
"getopts",
"regex",
diff --git a/Cargo.toml b/Cargo.toml
index 90b9aa1..5231e58 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "dutree"
-version = "0.2.17"
+version = "0.2.18"
authors = ["nacho <nacho@ownyourbits.com>"]
description = "Command line tool to analyze disk usage"
repository = "https://github.com/nachoparker/dutree"
@@ -8,10 +8,11 @@ categories = ["command-line-utilities"]
license = "GPL-3.0"
homepage = "https://ownyourbits.com/2018/03/25/analize-disk-usage-with-dutree/"
exclude = ["test/*"]
+edition = "2018"
[dependencies]
getopts = "0.2.21"
-regex = "1"
+regex = "1.3.9"
signal-hook = "0.1.10"
terminal_size = "0.1.8"
unicode-width = "0.1.1"
diff --git a/src/lib.rs b/src/lib.rs
index a7dc52a..4af76b0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -61,7 +61,7 @@ use std::os::unix::fs::MetadataExt;
use std::env;
use std::collections::HashMap;
-const VERSTR : &str = "v0.2.17";
+const VERSTR : &str = env!("CARGO_PKG_VERSION");
const DEF_WIDTH : u16 = 80;
pub enum XResult<T,S> {