Calling Rust from Python no longer in the Rust book Documentation?


#1

The latest version of the rust book (https://doc.rust-lang.org/book/README.html) no longer has the chapter on calling Rust from other languages (https://doc.rust-lang.org/1.2.0/book/rust-inside-other-languages.html)

I wanted to work on a Rust project and learn how to put compiled modules in a python project. Where can I look for documentation on doing that? I don’t have a lot of experience with cffi.


#2

The old documentation you find seems to still be relevant. Also look at https://doc.rust-lang.org/stable/book/ffi.html


#3

Perhaps you don’t want to do the ffi manually. There is rust-cpython project which wrapps cffi in the Rustic interface.


#4

It was removed because we didn’t have good criteria for what languages to include and remove, and were also worried about the maintenance version, not because anything in it was incorrect.