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 c7208955b chore: Update MSRV to 1.91.0 (#2204)
c7208955b is described below

commit c7208955b031f51a159f94cea9d6ed8ea5405212
Author: Xander <[email protected]>
AuthorDate: Thu Mar 5 00:38:41 2026 +0000

    chore: Update MSRV to 1.91.0 (#2204)
    
    ## Which issue does this PR close?
    https://github.com/apache/iceberg-rust/pull/2199 requires a bump to MSRV
    1.91.0. This version is within the policy of this project.
    <!--
    We generally require a GitHub issue to be filed for all bug fixes and
    enhancements and this helps us generate change logs for our releases.
    You can link an issue to this PR using the GitHub syntax. For example
    `Closes #123` indicates that this PR will close issue #123.
    -->
    
    - Closes #.
    
    ## What changes are included in this PR?
    
    <!--
    Provide a summary of the modifications in this PR. List the main changes
    such as new features, bug fixes, refactoring, or any other updates.
    -->
    
    ## Are these changes tested?
    
    <!--
    Specify what test covers (unit test, integration test, etc.).
    
    If tests are not included in your PR, please explain why (for example,
    are they covered by existing tests)?
    -->
---
 Cargo.toml                                               | 2 +-
 bindings/python/Cargo.toml                               | 2 +-
 crates/iceberg/src/spec/snapshot.rs                      | 9 ++-------
 crates/integrations/datafusion/src/physical_plan/scan.rs | 2 +-
 rust-toolchain.toml                                      | 2 +-
 5 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 23b498214..6eba22459 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,7 +36,7 @@ version = "0.8.0"
 license = "Apache-2.0"
 repository = "https://github.com/apache/iceberg-rust";
 # Check the MSRV policy in README.md before changing this
-rust-version = "1.88"
+rust-version = "1.91"
 
 [workspace.dependencies]
 anyhow = "1.0.72"
diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml
index 9279983f9..aaa8c7bec 100644
--- a/bindings/python/Cargo.toml
+++ b/bindings/python/Cargo.toml
@@ -19,7 +19,7 @@
 edition = "2024"
 homepage = "https://rust.iceberg.apache.org";
 name = "pyiceberg_core_rust"
-rust-version = "1.88"
+rust-version = "1.91"
 version = "0.8.0"
 # This crate is used to build python bindings, we don't want to publish it
 publish = false
diff --git a/crates/iceberg/src/spec/snapshot.rs 
b/crates/iceberg/src/spec/snapshot.rs
index 802cd6546..f60579e01 100644
--- a/crates/iceberg/src/spec/snapshot.rs
+++ b/crates/iceberg/src/spec/snapshot.rs
@@ -38,11 +38,12 @@ pub const UNASSIGNED_SNAPSHOT_ID: i64 = -1;
 
 /// Reference to [`Snapshot`].
 pub type SnapshotRef = Arc<Snapshot>;
-#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
+#[derive(Debug, Default, Serialize, Deserialize, PartialEq, Eq, Clone)]
 #[serde(rename_all = "lowercase")]
 /// The operation field is used by some operations, like snapshot expiration, 
to skip processing certain snapshots.
 pub enum Operation {
     /// Only data files were added and no files were removed.
+    #[default]
     Append,
     /// Data and delete files were added and removed without changing table 
data;
     /// i.e., compaction, changing the data file format, or relocating data 
files.
@@ -75,12 +76,6 @@ pub struct Summary {
     pub additional_properties: HashMap<String, String>,
 }
 
-impl Default for Operation {
-    fn default() -> Operation {
-        Self::Append
-    }
-}
-
 #[derive(Debug, PartialEq, Eq, Clone)]
 /// Row range of a snapshot, contains first_row_id and added_rows_count.
 pub struct SnapshotRowRange {
diff --git a/crates/integrations/datafusion/src/physical_plan/scan.rs 
b/crates/integrations/datafusion/src/physical_plan/scan.rs
index d627b6a63..7bb4e7ed0 100644
--- a/crates/integrations/datafusion/src/physical_plan/scan.rs
+++ b/crates/integrations/datafusion/src/physical_plan/scan.rs
@@ -126,7 +126,7 @@ impl ExecutionPlan for IcebergTableScan {
         self
     }
 
-    fn children(&self) -> Vec<&Arc<(dyn ExecutionPlan + 'static)>> {
+    fn children(&self) -> Vec<&Arc<dyn ExecutionPlan + 'static>> {
         vec![]
     }
 
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 4b20d68e4..26bb651d8 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -20,5 +20,5 @@
 #
 # The channel is exactly same day for our MSRV.
 [toolchain]
-channel = "nightly-2025-06-23"
+channel = "nightly-2025-10-27"
 components = ["rustfmt", "clippy"]

Reply via email to