News for hackers. Stuff that matters.
Re:Rust and C++ Interoperability in Chrome by nitsky on Wednesday August 19, 2020 @02:33PM (#24214205)
> Doesn't this defeat the purpose of writing safe code in Rust?

While the Chrome authors will not be protected from memory unsafety in the wrapped C++ APIs, the usage of those APIs in the new code they write on top will be safe, which is better than nothing. Similarly, much of the Rust standard library and many popular crates are "safe" wrappers around unsafe code, like calls to libc, winapi, openssl, etc. If there is a memory unsafety issue in one of those libraries, Rust won't save you.

There are no comments on this comment yet.