In Rust We Trust -- A Transpiler from Unsafe C to Safer Rust
CRustS converts C code into safer Rust code. It is developed by Huawei Technology, Inc. on top of c2rust with improved safe API and code ratios.
Please select an algorithm from Rosetta Code:
C code
C2Rust Output
Rust code
Michael Ling, Yijun Yu, Haitao Wu, Yuan Wang, James Cordy, Ahmed Hassan, "In Rust We Trust -- A Transpiler from Unsafe C to Safer Rust", In: Proceedings of the 44th International Conference on Software Engineering (ICSE 2022).
Note. If the output Rust code is too long, Rust Playground requires you to manually copy/paste the Rust code over.