|
|
|
|
|
by nathan_f77
3368 days ago
|
|
Are there any automated tools that you can help you convert a C codebase into Rust? And is there any reason why Rust couldn't be as portable as the C code that makes up curl? Is it very difficult to transpile C into Rust? As an aside, I not like the curl style guidelines [1]. Especially "'else' on the following line", and "No space before parentheses". That doesn't look nice at all. [1] https://curl.haxx.se/dev/code-style.html |
|
Last I heard, Corrode can convert many C syntactic structures into their Rust equivalents, they usually compile and sometimes they even work. Even when the conversion works flawlessly, the resulting Rust does exactly what the original C code did—there's no safety benefit (but you can begin refactoring to clean things up).