diff --git a/Cargo.toml b/Cargo.toml index 23b498214a..6eba22459c 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 9279983f96..aaa8c7bec1 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 802cd6546e..f60579e014 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; -#[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, } -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 d627b6a63d..7bb4e7ed0e 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> { vec![] } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 4b20d68e44..26bb651d82 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"]