summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJorge C. Leitao <jorgecarleitao@gmail.com>2021-08-08 14:51:15 +0000
committerJens Geyer <Jens-G@users.noreply.github.com>2021-08-22 18:46:08 +0200
commit77afa017ce625449435f43481e2839957a409beb (patch)
tree04217625e3adeca4f9f2793a6ecd0da4f9aae70f /lib
parentdb7ad5b1a127ab99b45ef076d07ac6c28d0cb84c (diff)
downloadthrift-77afa017ce625449435f43481e2839957a409beb.tar.gz
Made server optional.
Diffstat (limited to 'lib')
-rw-r--r--lib/rs/Cargo.toml8
-rw-r--r--lib/rs/src/lib.rs2
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/rs/Cargo.toml b/lib/rs/Cargo.toml
index 610e781b2..a32d671e6 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 ddc7b0df1..84c1f9b71 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;