stac-utils / pgstac

Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL
MIT License
153 stars 39 forks source link

Update rust re-hydration code to pyo3 0.21 #264

Closed kylebarron closed 7 months ago

kylebarron commented 7 months ago

There were a bunch of pyo3 changes from 0.20 to 0.21, namely the introduction of the Bound smart pointer. I've not fully grokked my head around it, but this compiles without any of the deprecated "gil-refs" code.

As well as keeping up to date with the latest dependency versions, this has the potential to decently improve performance for code that interacts heavily with the Python interpreter, such as the rehydration code.

bitner commented 7 months ago

Hey @kylebarron can you fix the merge issues that this has from your other PR?