News

As with Cython, any purely Rust code that doesn’t touch the Python runtime can be run outside of the Python GIL. You can wrap such a function in the Python::allow_threads method to suspend the ...