O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unsafety and Interfacing with Other Languages

Rust's safety features protect the programmer from many serious mistakes, but there are times when it's appropriate to shake off the safety harnesses. One useful case is interfacing with other programming languages that are less safe, the most prominent target being C. We will also cover interfacing with some high-level languages where the community has created bridges, such as Ruby and JavaScript.

Here's the list of topics for this chapter:

  • Unsafety
  • Foreign function interface
  • Interfacing with Ruby using ruru
  • Interfacing with JavaScript/Node.js using Neon

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required