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++
- Host: GitHub
- URL: https://github.com/davideuler/tantivy-cpp-lib
- Owner: davideuler
- License: apache-2.0
- Created: 2022-11-20T04:33:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T09:17:02.000Z (almost 3 years ago)
- Last Synced: 2025-04-12T03:53:56.662Z (9 months ago)
- Language: Rust
- Size: 91.8 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/