Crate ccarp

Source
Expand description

CCARP - (trans)Compile C And Rust Partially

CCARP is a partial transpiler which can translate some C programs into Rust.

Public Interface:

  • translate - this function translates an entire C project into Rust, however it does so in memory
  • translate_single_file - this function translates a singular C file into Rust and writes the results to disk
  • translate_project - this function translates an entire C project and writes the results to disk

Structs§

CompilerFlags
Represents a set of compiler flags

Enums§

CCErr
Transpiler error

Functions§

translate
Translate a C codebase (which is in memory) into a Rust codebase
translate_project
Translate an entire C project into Rust
translate_single_file
Translate a single C file into Rust

Type Aliases§

ProjectResult
A type which represents the result of an entire project’s translation
Result
A type which represents the result of a single file’s translation