This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 77afa01 Made server optional.
77afa01 is described below
commit 77afa017ce625449435f43481e2839957a409beb
Author: Jorge C. Leitao <[email protected]>
AuthorDate: Sun Aug 8 14:51:15 2021 +0000
Made server optional.
---
lib/rs/Cargo.toml | 8 ++++++--
lib/rs/src/lib.rs | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/rs/Cargo.toml b/lib/rs/Cargo.toml
index 610e781..a32d671 100644
--- a/lib/rs/Cargo.toml
+++ b/lib/rs/Cargo.toml
@@ -15,6 +15,10 @@ keywords = ["thrift"]
[dependencies]
byteorder = "1.3"
integer-encoding = "3.0"
-log = "0.4"
+log = {version = "0.4", optional = true}
ordered-float = "1.0"
-threadpool = "1.7"
+threadpool = {version = "1.7", optional = true}
+
+[features]
+default = ["server"]
+server = ["threadpool", "log"]
diff --git a/lib/rs/src/lib.rs b/lib/rs/src/lib.rs
index ddc7b0d..84c1f9b 100644
--- a/lib/rs/src/lib.rs
+++ b/lib/rs/src/lib.rs
@@ -71,6 +71,8 @@ macro_rules! assert_success {
}
pub mod protocol;
+
+#[cfg(feature = "server")]
pub mod server;
pub mod transport;