Expand description
§rs2c
rs2c is a very WIP Rust to C/OpenCL C transpiler. Far from all Rust functionality is implemented currently (see todo!()s). This transpiler uses the language similarities between Rust and C to build C source code from a Rust syntax tree. Basic language features will become available over time, but complex features like generics or macros will likely not be possible without actual code analysis.
R2C includes an optional feature opencl
to transpile Rust functions into OpenCL kernels.
More information available on GitHub: https://github.com/PipInSpace/rs2c
Functions§
- indent_
c - Provides basic indentation for C source code
- rs_
to_ c_ function - Transpiles a single Rust function provided in
source
to C