CRUST-Bench
收藏资源简介:
CRUST-Bench是一个包含100个C语言仓库的数据集,每个仓库都配有人类编写的安全Rust接口和测试用例,用于验证C到安全Rust转译的正确性。该数据集通过考虑整个仓库而不仅仅是孤立函数,捕捉了跨多个文件依赖的复杂项目翻译的挑战。提供的Rust接口为显式规范,确保遵循惯用的、内存安全的Rust模式,而伴随的测试用例则强制执行功能性正确性。
CRUST-Bench is a dataset comprising 100 C language repositories. Each repository includes human-written safe Rust interfaces and test cases, which are used to verify the correctness of C-to-safe Rust transpilation. By taking entire repositories into account rather than only isolated functions, this dataset captures the challenges of translating complex projects with cross-file dependencies. The provided Rust interfaces are explicit specifications designed to ensure adherence to idiomatic, memory-safe Rust patterns, while the accompanying test cases enforce functional correctness.

- 1CRUST-Bench: A Comprehensive Benchmark for C-to-safe-Rust Transpilation德克萨斯大学奥斯汀分校 · 2025年



