version 0.1.0 -> 1.0.0

This commit is contained in:
2020-04-12 17:51:38 +08:00
parent f308c0dae9
commit 54a15f24f7
4 changed files with 6 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -1050,7 +1050,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "oss-backupd"
version = "0.1.0"
version = "1.0.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)",

View File

@@ -1,6 +1,6 @@
[package]
name = "oss-backupd"
version = "0.1.0"
version = "1.0.0"
authors = ["Hatter Jiang <jht5945@gmail.com>"]
edition = "2018"

View File

@@ -11,6 +11,9 @@ use rust_util::{
};
use chrono::Utc;
pub const NAME: &str = "oss-backupd";
pub const VERSION: &str = "1.0.0";
pub const ETC_OSS_BACKUPD_CONFIG: &str = "/etc/oss-backupd/config.json";
pub const OSS_BACKUPD_CONFIG: &str = "oss-backupd-config.json";
pub const DOT_OSS_BACKUPD_CONFIG: &str = ".oss-backupd-config.json";

View File

@@ -27,7 +27,7 @@ use opt::Options;
fn main() -> XResult<()> {
let options = Options::new_and_parse_args()?;
if options.version {
print_message(MessageType::INFO, "ossbackupd v0.1.0");
print_message(MessageType::INFO, &format!("{} v{}", config_util::NAME, config_util::VERSION));
return Ok(());
}