by smolder · 6y ago · 0 comments
The real issue with doing that isn’t imo, going to Rust, it’s understanding what still needs to be addressable in C. For example, a self-contained application has no external ABI dependencies, and so could assume everything that references that slice must only need to be Rust. A library on the other-hand might still need to present a C ABI.
It's a much harder problem for a tool to recognise the design patterns C pushes you towards and refactor that to something more native to Rust.