Skip to content

Cpp2Rust/cpp2rust-testsuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cpp2Rust Test Suite

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.

Current set of included programs

  • WOFF2: TTF font compression/decompression

To build and run the benchmarks

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).

About

Cpp2Rust applications test suite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors