From 251aa235da269b9d0d1b886698965cd3a262e648 Mon Sep 17 00:00:00 2001 From: Antal Spector-Zabusky Date: Fri, 14 Jun 2024 11:10:27 -0700 Subject: [PATCH] fix: add explicit dependency on rigetti-pyo3's "time" feature (#476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In rigetti/rigetti-pyo3#45 (and rigetti/rigetti-pyo3#46), I moved all references to the Python time types under the "time" feature. This was a bugfix, but I didn't realize it was also a breaking change – any library that relied on the time types implicitly being available would break, just as this one did! This adds the missing feature dependency, and I've also upgraded rigetti/rigetti-pyo3#46 to be a breaking change. This commit also updates Cargo.lock to force the update to rigetti-pyo3, meaning that builds will fail without the substantive change. Closes #475. --- Cargo.lock | 5 +++-- Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 163f78e61..1752363a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2489,14 +2489,15 @@ dependencies = [ [[package]] name = "rigetti-pyo3" -version = "0.3.1" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff977cba40f2cadf214226cf51c9729a4f5730a5413f901246eed78cb6e795c9" +checksum = "c59068763670399bb3e895a17cc631d9214c3172b64fc74d3ab63dac7371c340" dependencies = [ "num-complex", "num-traits", "paste", "pyo3", + "time", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 668bcec16..013606fa4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ numpy = "0.20.0" pyo3 = { version = "0.20.0", features = ["extension-module"] } pyo3-asyncio = { version = "0.20", features = ["tokio-runtime"] } pyo3-build-config = "0.20.0" -rigetti-pyo3 = { version = "0.3.1", default-features = false, features = ["complex"] } +rigetti-pyo3 = { version = "0.3.1", default-features = false, features = ["time", "complex"] } # The primary intent of these options is to reduce the binary size for Python wheels # since PyPi has limits on how much storage a project can use.