Python version or implementation independent. Since the extension modules do not link against libpython they are completely This means it generates a very specific type of Python wheel. Milksnake helps youĬompile and ship shared libraries that do not link against libpython either directly Module system in distutils) is this particular use of CFFI. What makes Milksnake different than other systems (like the integrated extension This means that Milksnake - unlike earlier approaches - is not Rust specific and can also be used to build C or C++ extension modules for Python. These commands can build native shared libraries which then in turn get loaded by Python through CFFI. Milksnake is a Python module that hooks into the setuptools system with the help of CFFI to execute external build commands. We use this in production for all our Rust code now and feel confident sharing it with the wider world. (among other things) be used for building Python packages that include RustĬode. This second look ultimately became the Milksnake Python library, which can As we continued to expand the amount of Rust code on our side, this unhappiness became a bigger issue and it felt like we should take another look at how we were managing it. However, when others have asked us how they can do the same, we’ve previously been unable to advocate for our particular approach because we weren’t totally happy with it. We have been using Rust at Sentry quite successfully for more than a year now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |