From 2e939b5ef8723d6760acf567ff7f24715df8d5b0 Mon Sep 17 00:00:00 2001 From: Misha Padalka Date: Tue, 13 Jun 2023 17:04:30 +0300 Subject: [PATCH] Snappy is not enabled by default in cmake build, enable it --- rdkafka-sys/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rdkafka-sys/build.rs b/rdkafka-sys/build.rs index 6ad8e9304..30ced43c5 100644 --- a/rdkafka-sys/build.rs +++ b/rdkafka-sys/build.rs @@ -273,6 +273,8 @@ fn build_librdkafka() { config.define("ENABLE_LZ4_EXT", "0"); } + config.define("WITH_SNAPPY", "1"); + if let Ok(system_name) = env::var("CMAKE_SYSTEM_NAME") { config.define("CMAKE_SYSTEM_NAME", system_name); }