An open API service indexing awesome lists of open source software.

https://github.com/davideuler/tantivy-cpp-lib

tantivy static library for calling in c++
https://github.com/davideuler/tantivy-cpp-lib

Last synced: 6 months ago
JSON representation

tantivy static library for calling in c++

Awesome Lists containing this project

README

          

# Tantivy static lib bridge for calling in c++

The project is tantivy static library for calling in c++

## Build rust lib
```
cargo build
```

## Build c++ demo application:
```
g++ -std=c++17 -o index_program src/main.cpp \
-I .. -I target/cxxbridge \
-L target/debug -l tantivy_cpp_lib \
-pthread -l dl
```

## run the demo c++ application

```
./index_program
```

Reference:
* https://stackoverflow.com/questions/71097948/failing-to-use-cxx-to-link-rust-written-library-in-c-project

* https://cxx.rs/