Content area
Full Text
The central appeal of Mozilla's Rust language is that it provides a safe platform for fast systems programming -- as fast as C but with safety features that C doesn't have by default.
But given all the infrastructure already written in C, what's the best way forward? Rewriting it from scratch in Rust is one possibility, but here's another: Convert legacy C projects semi-automatically into Rust via new tooling that's getting a boost from Mozilla.
[ Find out how to get ahead with our career development guide for developers. | The art of programming is changing rapidly. We help you navigate what's hot in programming and what's going cold. | Keep up with hot topics in programming with InfoWorld's Application Development newsletter. ]
C in, Rust out
Corrode is a C-to-Rust translation project that was started earlier this year by developer Jamey Sharp. Its premise is simple: Read in a C source file and produce an equivalent in Rust's syntax.
What Corrode does not do (yet) is take constructs specific to C and rewrite them...