Skip to content

Commit

Permalink
fix: add explicit dependency on rigetti-pyo3's "time" feature (#476)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antalsz authored Jun 14, 2024
1 parent e73f83d commit 251aa23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 251aa23

Please sign in to comment.