代码拉取完成,页面将自动刷新
a compatible RE2 API( 2021-11-01) by calling Rust library regex(rure)
$ git clone https://gitee.com/mengning997/re2-rust.git
$ cd re2-rust
安装过程如下:
$ git clone https://github.com/rust-lang/regex
$ cd regex/regex-capi
$ cargo build --verbose
对于编译完成的librure.a
和librure.so
文件需要进行手工安装
# put the librure.a and librure.so into the /usr/lib
$ sudo cp regex/target/debug/librure.a /usr/lib
$ sudo cp regex/target/debug/librure.so /usr/lib
手工安装rure.h文件
# copy the rure.h
$ sudo cp regex/regex-capi/include/rure.h /usr/include
使用rure库: 使用regex/regex-capi/ctest/目录下的 test.c文件进行测试
$ gcc test.c -o test -lrure
$ ./test
$ make
$ sudo make install
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。