2 ms·
> Some utility to assist bulk conversion from C to Rust would be nice One of the problems with this is that Rust's guarnatees usually really affect your design
by steveklabnik 12y ago
> Some utility to assist bulk conversion from C to Rust would be nice
One of the problems with this is that Rust's guarnatees usually really affect your design. I'd imagine that a bulk C -> Rust translator would have to use `unsafe` all over the place.
Doesn't mean that it wouldn't be useful, but I wonder if slowly replacing APIs bit by bit isn't a better approach overall.
- coldpie 12y agoYeah, the ease and mostly-cost-free nature of C-Rust interop is a really big selling point, as you can pretty much just drop Rust in piecemeal to replace your legacy libraries.