Hacker News new | ask | show | jobs
by joshbenford89 2373 days ago
Can you recommend any good blog or tutorial on integrating C/Python and newer releases of Rust?
2 comments

I didn't use much except for the official docs (book and reference). Googling around shows some promising material.

Release notes are helpful -- when you see something added related to C, it's a strong hint to read about the new feature.

Macro features are important because rust has sophisticated macros and C macros are closer to text replacement. So when trying to emulate a C header, you need to do a lot of macro magic in rust sometimes.

Sorry that I don't have more to offer from personal experience.

Here's a common Rust foreign function interface for Python, with quite a few examples:

https://crates.io/crates/pyo3

Here's the one for C:

https://crates.io/crates/libc