提供基于Rust的高性能grep命令
【项目难度】进阶
【项目描述】
描述:grep是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。grep依赖pcre2作为正则表达式的匹配组件,由于rust提供了更为高性能的正则表达式组件,因此本项目希望通过rust重写grep的方式,直接调用rust提供的整体表达式组件,提供更好性能的grep组件。
C2Rust为能够将C代码转换为Rust语言的转换工具,中科大基于原生C2Rust的基础上,提供更为高效和准确的转换工具,因此本项目在开发过程中可以借助C2Rust工具进行转换,并通过二次修改的方式,完成整个项目的开发。该项目的目标如下:
【技术要求】:
【产出标准】
【导师姓名/导师邮箱】
冯涛 fengtao40@huawei.com
【成果提交仓库】:
https://gitee.com/src-openeuler/grep
【相关参考资料】
C2Rust仓库:https://gitee.com/openeuler/c2rust
grep仓库:https://gitee.com/src-openeuler/grep/tree/master,
基于3.8版本rust正则表达式库:https://github.com/rust-lang/regex
project name:Provide a high-performance grep command based on Rust
【Difficulty】:Advanced
【Description】:
grep is a powerful text search tool that can use regular expressions to search for text and print the matching lines. grep depends on pcre2 as the matching component of regular expressions. Since Rust provides more high-performance regular expression components, this project aims to rewrite grep in Rust by directly calling the overall expression component provided by Rust, providing better-performing grep components.
C2Rust is a conversion tool that can convert C code to Rust language. The University of Chinese Academy of Sciences provides more efficient and accurate conversion tools based on the source-to-source C2Rust tool. Therefore, this project can use the C2Rust tool during development to convert the code and complete the entire project development through second-level modifications. The goals of this project are as follows:
【Output Requirements】:
【Technical Requirements】:
【Mentor/Email】:
冯涛 fengtao40@huawei.com
【Project Repository】:
https://gitee.com/src-openeuler/grep
【Notes】:
C2Rust git:https://gitee.com/openeuler/c2rust
grep git:https://gitee.com/src-openeuler/grep/tree/master,
regex in rust:https://github.com/rust-lang/regex
Hi t_feng, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-OSCourse, and any of the maintainers: @ZhengZhenyu , @郑晨 , @iscassiyang , @genedna
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论