3 ms·
Can you recommend any good blog or tutorial on integrating C/Python and newer releases of Rust?
by joshbenford89 7y ago
Can you recommend any good blog or tutorial on integrating C/Python and newer releases of Rust?
- jeffdavis 7y agoI 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.
- calibas 7y agoHere's a common Rust foreign function interface for Python, with quite a few examples: https://crates.io/crates/pyo3 https://crates.io/crates/pyo3 Here's the one for C: https://crates.io/crates/libc https://crates.io/crates/libc