Emitting Safer Rust with C2Rust
immunant.com
Emitting Safer Rust with C2Rust
1–10 of 50 posts
Re: Emitting Safer Rust with C2Rust
#2Calling c directly is already possible in rust.
Re: Emitting Safer Rust with C2Rust
#3(For anyone else who found it slightly difficult to read, you can remove the added 0.06em `letter-spacing` using your browser's developer tools.)
Re: Emitting Safer Rust with C2Rust
#4What problem does c2Rust solve exactly? Isn't it just gonna produce "garbage" rust. Calling c directly is already possible in rust.
You can debate the merits of doing so, of course, but some people do want to do that, and a tool to generate safe, somewhat idiomatic Rust from C code would seem to be useful.
Re: Emitting Safer Rust with C2Rust
#5What problem does c2Rust solve exactly? Isn't it just gonna produce "garbage" rust. Calling c directly is already possible in rust.
The C2Rust project is being developed by Galois and Immunant. This tool is able to translate most C modules into semantically equivalent Rust code. These modules are intended to be compiled in isolation in order to produce compatible object files. We are developing several tools that help transform the initial Rust sources into idiomatic Rust.
The translator focuses on supporting the C99 standard. C source code is parsed and typechecked using clang before being translated by our tool.
Re: Emitting Safer Rust with C2Rust
#6What problem does c2Rust solve exactly? Isn't it just gonna produce "garbage" rust. Calling c directly is already possible in rust.
Re: Emitting Safer Rust with C2Rust
#7Re: Emitting Safer Rust with C2Rust
#8What problem does c2Rust solve exactly? Isn't it just gonna produce "garbage" rust. Calling c directly is already possible in rust.
This gains us machine-proved memory safety. This is huge.