Reply to post:

C++ still rules the Chromium roost though Rust has caught our eye, say browser devs

DrXym

Rust is designed to be very interoperable with C and C++ at runtime - the compiler spits out .o files and lib files just like C / C++ and they link together providing the function you're calling can be resolved.

There is some boundary stuff you have to do because C is unsafe and Rust is safe, and you need to generate bindings but you can easily call from one to the other.

Once you have it set up it's no more difficult to call Rust from C++ than it is any other random C library.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon