Skip to content

Commit

Permalink
BREAKING: completely deprecated local-dns-relay and single-threaded f…
Browse files Browse the repository at this point in the history
…eatures
  • Loading branch information
zonyitoo committed Jan 4, 2021
1 parent d41404c commit 47169d6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ logging = ["log4rs"]

# Enable DNS-relay
local-dns = ["local", "shadowsocks-service/local-dns"]
# Backward compatibility, DO NOT USE
local-dns-relay = ["local-dns"]
# Enable client flow statistic report
# Currently is only used in Android
local-flow-stat = ["local", "shadowsocks-service/local-flow-stat"]
Expand All @@ -102,9 +100,6 @@ tcmalloc-vendored = ["tcmalloc/bundled"]

# Enable tokio's multi-threaded runtime
multi-threaded = ["tokio/rt-multi-thread"]
# Enable tokio's single-threaded
# DEPRECATED. Uses multi-threaded instead
single-threaded = []

[dependencies]
log = "0.4"
Expand Down
1 change: 1 addition & 0 deletions bin/common/validator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ validate_type!(
ManagerAddr,
"should be either ip:port, domain:port or /path/to/unix.sock"
);
#[cfg(feature = "local-dns")]
validate_type!(
validate_name_server_addr,
NameServerAddr,
Expand Down
2 changes: 1 addition & 1 deletion bin/sslocal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ fn main() {
info!("shadowsocks {}", VERSION);

#[cfg(feature = "multi-threaded")]
let mut builder = if matches.is_present("SINGLE_THREADED") || cfg!(feature = "single-threaded") {
let mut builder = if matches.is_present("SINGLE_THREADED") {
Builder::new_current_thread()
} else {
Builder::new_multi_thread()
Expand Down
2 changes: 1 addition & 1 deletion bin/ssmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ fn main() {
info!("shadowsocks {}", VERSION);

#[cfg(feature = "multi-threaded")]
let mut builder = if matches.is_present("SINGLE_THREADED") || cfg!(feature = "single-threaded") {
let mut builder = if matches.is_present("SINGLE_THREADED") {
Builder::new_current_thread()
} else {
Builder::new_multi_thread()
Expand Down
2 changes: 1 addition & 1 deletion bin/ssserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn main() {
info!("shadowsocks {}", VERSION);

#[cfg(feature = "multi-threaded")]
let mut builder = if matches.is_present("SINGLE_THREADED") || cfg!(feature = "single-threaded") {
let mut builder = if matches.is_present("SINGLE_THREADED") {
Builder::new_current_thread()
} else {
Builder::new_multi_thread()
Expand Down

0 comments on commit 47169d6

Please sign in to comment.