22

Interoperability

“No man is an island, entire of itself; every man is a piece of the continent, a part of the main” is a renowned adage from English poet John Donne. It also applies to most programming languages, especially system programming languages, including Rust.

At times, Rust needs to communicate with applications and libraries written with other programming languages. This includes the ability to call operating system APIs. Even though crates.io and the Rust ecosystem offer a lot of capabilities, there are occasions when more is needed. This means you may need to leave the comfort of Rust, on occasion, to interface with another programming language or the operating environment itself. Interoperability provides the ability to communicate ...

Get Programming with Rust now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.