当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
3 Star 0 Fork 1

孟宁 / re2-api
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

re2-rust

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

安装rure库

安装过程如下:

$ git clone https://github.com/rust-lang/regex
$ cd regex/regex-capi
$ cargo build --verbose

对于编译完成的librure.alibrure.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

编译、安装re2-rust

$ make
$ sudo make install

Links

空文件

简介

re2 dummy api and test 展开 收起
C++ 等 4 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mengning997/re2-api.git
git@gitee.com:mengning997/re2-api.git
mengning997
re2-api
re2-api
master

搜索帮助