This repository contains open-source C/C++ programs that are known to be automatically translatable by Cpp2Rust to Rust.
The CI bots of Cpp2Rust run these tests and update the expected output if needed.
- WOFF2: TTF font compression/decompression
mkdir build
cd build
cmake -GNinja ..
Available commands:
ninja build- Compile the original and Rust programs.ninja check- Run the original and Rust binaries and compare the output.ninja benchmark- Compare the performance of the original and the Rust binaries.ninja regen- Regenerate the Rust code using Cpp2Rust.
Note: All commands can be appended with -<prog> to run for a specific program
only (e.g., ninja build-woff2).