Eurydice converts Rust intermediate representations extracted by Charon through KaRaMeL into C that preserves the original structure and evaluation order as much as possible. It aims to connect Rust code with existing C verification tools or environments without Rust compilers. LWN’s testing encountered obstacles with complex features and const generics, and disabling strict-aliasing optimizations was recommended. The repository also gives only an informal guarantee of matching results when Rust execution finishes without panicking, so this is not a general-purpose converter that transfers the safety of all Rust code unchanged.
Back to Tech
Eurydice translates Rust into C while preserving source structure
Start with small supported programs and check limitations involving panics and aliasing rules.