diff --git a/Cargo.lock b/Cargo.lock index b31f7e3..a507a6e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1055,7 +1055,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "oss-backupd" -version = "1.0.0" +version = "1.1.0" dependencies = [ "argparse 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "base64 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index c52f7c7..a7e9233 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oss-backupd" -version = "1.0.0" +version = "1.1.0" authors = ["Hatter Jiang "] edition = "2018" diff --git a/src/config_util.rs b/src/config_util.rs index 6c536ad..2ec7271 100644 --- a/src/config_util.rs +++ b/src/config_util.rs @@ -11,8 +11,8 @@ use rust_util::{ }; use chrono::Utc; -pub const NAME: &str = "oss-backupd"; -pub const VERSION: &str = "1.0.0"; +pub const NAME: &str = env!("CARGO_PKG_NAME"); +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); const DOT_OSS_BACKUPD_CONFIG: &str = ".oss-backupd-config.json"; const OSS_BACKUPD_CONFIG: &str = "oss-backupd-config.json";