logoalt Hacker News

SkiFire13yesterday at 11:08 AM2 repliesview on HN

> requires full access to source code

What do you mean? Editions don't require full access to source code. Rust in general relies heavily on having access to source code, but that has nothing to do with how editions work


Replies

zozbot234yesterday at 12:18 PM

You can write a binary library that exposes a C ABI using Rust (which is indistinguishable from an ordinary C/C++ library) and then provide source for a Rust wrapper crate that provides a "safe" interface to it, much like a C header file.

pjmlpyesterday at 12:49 PM

Yes they do, when mixing crates from various editions and how changes interact together.

show 1 reply