From 3632cf6947d163daea0cb6d348ac4c1d4f2652b9 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Fri, 6 Mar 2026 17:55:26 +0000 Subject: [PATCH 1/2] Fix check-cfg warnings --- python3-sys/build.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python3-sys/build.rs b/python3-sys/build.rs index 49dca69..1875f70 100644 --- a/python3-sys/build.rs +++ b/python3-sys/build.rs @@ -385,6 +385,11 @@ fn configure_from_path(expected_version: &PythonVersion) -> Result Date: Fri, 6 Mar 2026 17:58:24 +0000 Subject: [PATCH 2/2] Fix tuples on python 3.14 --- python3-sys/src/tupleobject.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python3-sys/src/tupleobject.rs b/python3-sys/src/tupleobject.rs index 71455d5..35ec117 100644 --- a/python3-sys/src/tupleobject.rs +++ b/python3-sys/src/tupleobject.rs @@ -1,5 +1,8 @@ use libc::c_int; +#[cfg(not(Py_LIMITED_API))] +#[cfg(Py_3_14)] +use crate::Py_hash_t; use crate::object::*; use crate::pyport::Py_ssize_t; @@ -7,6 +10,8 @@ use crate::pyport::Py_ssize_t; #[cfg(not(Py_LIMITED_API))] pub struct PyTupleObject { pub ob_base: PyVarObject, + #[cfg(Py_3_14)] + pub ob_hash: Py_hash_t, pub ob_item: [*mut PyObject; 1], }