This is an automated email from the ASF dual-hosted git repository.

liurenjie1024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git


The following commit(s) were added to refs/heads/main by this push:
     new d66f994d feat: Enable zstd (#1692)
d66f994d is described below

commit d66f994df3ebcdefaa11c38d28cdda89ab390b5f
Author: Fokko Driesprong <fo...@apache.org>
AuthorDate: Thu Sep 18 12:17:47 2025 +0200

    feat: Enable zstd (#1692)
    
    In Iceberg we allow Avro metadata to be compressed using zstandard. To
    also support this in Iceberg Rust we need to enable the zstandard
    feature:
    
    
    
https://github.com/apache/avro-rs/blob/main/avro/README.md#installing-the-library
    
    ## Which issue does this PR close?
    
    - Closes #.
    
    ## What changes are included in this PR?
    
    ## Are these changes tested?
---
 Cargo.lock | 1 +
 Cargo.toml | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 0ad461eb..2ab90c63 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -206,6 +206,7 @@ dependencies = [
  "strum_macros 0.27.2",
  "thiserror 2.0.16",
  "uuid",
+ "zstd",
 ]
 
 [[package]]
diff --git a/Cargo.toml b/Cargo.toml
index ebf02e1f..999b9117 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,7 +40,7 @@ rust-version = "1.87"
 
 [workspace.dependencies]
 anyhow = "1.0.72"
-apache-avro = "0.20"
+apache-avro = { version = "0.20", features = ["zstandard"] }
 array-init = "2"
 arrow-arith = { version = "55.1" }
 arrow-array = { version = "55.1" }
@@ -125,4 +125,4 @@ url = "2.5.4"
 uuid = { version = "1.18", features = ["v7"] }
 volo = "0.10.6"
 volo-thrift = "0.10.8"
-zstd = "0.13.2"
+zstd = "0.13.3"

Reply via email to