Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import initialization methods from the C++ API #12

Open
ccouzens opened this issue Dec 19, 2021 · 1 comment
Open

Import initialization methods from the C++ API #12

ccouzens opened this issue Dec 19, 2021 · 1 comment

Comments

@ccouzens
Copy link
Owner

We should import initialization methods from the C++ API.

There are functional features only available this way.

antimatter15/tesseract-rs#28

Whilst we mostly use the C API, we currently import a couple constants from the C++ API. See this PR for the code that currently imports from a C++ header:

antimatter15/tesseract-rs#9

@nico-abram
Copy link
Contributor

I haven't been able to find a rust-bindgen example for a C++ method that takes a std::vector<std::string>. It sounds like it might be quite a problem because of inline methods on those std types. I found a recommendation in this rust-bindgen issue rust-lang/rust-bindgen#738 (comment) to use the cxx crate instead, but that seems like a pretty big addition/change to tesseract-sys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants