openSUSE / libpathrs

C-friendly API to make path resolution safer on Linux.
GNU Lesser General Public License v3.0
80 stars 6 forks source link

switch python bindings to pyo3 #29

Closed cyphar closed 1 month ago

cyphar commented 4 years ago

Messing around with cffi is far too much of a pain (and also requires me to try to figure out setuptools). But pyo3 allows us to write Rust-native Python modules that don't have any other dependencies.

DemiMarie commented 3 years ago

This would be a regression for PyPy users. PyPy’s implementation of CFFI is very heavily optimized, whereas the C API used by pyo3 must be emulated at a significant performance cost.

cyphar commented 1 month ago

We now use a proper python build setup, so I suspect there is no longer any benefit to using pyo3 anyway.