Skip to content

Commit

Permalink
log BUILD_TIME and bump version to v1.12.0-alpha.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Sep 25, 2021
1 parent e8acd8c commit 0c96cf5
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 21 deletions.
48 changes: 31 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shadowsocks-rust"
version = "1.12.0-alpha.4"
version = "1.12.0-alpha.5"
authors = ["Shadowsocks Contributors"]
description = "shadowsocks is a fast tunnel proxy that helps you bypass firewalls."
repository = "https://github.com/shadowsocks/shadowsocks-rust"
Expand Down Expand Up @@ -124,6 +124,7 @@ clap = { version = "2", features = ["wrap_help", "suggestions"] }
cfg-if = "1"
qrcode = { version = "0.12", default-features = false }
exitcode = "1"
build-time = "0.1"

futures = "0.3"
tokio = { version = "1", features = ["rt", "signal"] }
Expand Down
3 changes: 3 additions & 0 deletions bin/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ pub const EXIT_CODE_SERVER_EXIT_UNEXPECTLY: i32 = exitcode::SOFTWARE;
pub const EXIT_CODE_SERVER_ABORTED: i32 = exitcode::SOFTWARE;
pub const EXIT_CODE_LOAD_CONFIG_FAILURE: i32 = exitcode::CONFIG;
pub const EXIT_CODE_LOAD_ACL_FAILURE: i32 = exitcode::CONFIG;

#[allow(dead_code)]
pub const BUILD_TIME: &str = build_time::build_time_utc!();
2 changes: 1 addition & 1 deletion bin/sslocal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ fn main() {
daemonize::daemonize(matches.value_of("DAEMONIZE_PID_PATH"));
}

info!("shadowsocks {}", VERSION);
info!("shadowsocks local {} build {}", VERSION, common::BUILD_TIME);

#[cfg(feature = "multi-threaded")]
let mut builder = if matches.is_present("SINGLE_THREADED") {
Expand Down
2 changes: 1 addition & 1 deletion bin/ssmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ fn main() {
daemonize::daemonize(matches.value_of("DAEMONIZE_PID_PATH"));
}

info!("shadowsocks {}", VERSION);
info!("shadowsocks manager {} build {}", VERSION, common::BUILD_TIME);

#[cfg(feature = "multi-threaded")]
let mut builder = if matches.is_present("SINGLE_THREADED") {
Expand Down
2 changes: 1 addition & 1 deletion bin/ssserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ fn main() {
daemonize::daemonize(matches.value_of("DAEMONIZE_PID_PATH"));
}

info!("shadowsocks {}", VERSION);
info!("shadowsocks server {} build {}", VERSION, common::BUILD_TIME);

#[cfg(feature = "multi-threaded")]
let mut builder = if matches.is_present("SINGLE_THREADED") {
Expand Down

0 comments on commit 0c96cf5

Please sign in to comment.