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

add from_file to Tokenizer c++ binding #1

Open
wants to merge 3 commits into
base: c++-bindings
Choose a base branch
from

Conversation

jonnyyu
Copy link

@jonnyyu jonnyyu commented Jul 11, 2022

Hi @alexeyr,
Thanks for your work on c++ binding. It is really helpful and useful to C++ projects.

Based on your work and with my limited knowledge to Rust, I exposed the from_file function to C++, which seems to work in unit tests. I'd merge this change to your PR just to be helpful to others too. Could you help me review this and see if the code is correct? Thanks!

1. add "crt-static" flag to ensure all libraries are built with static crt library.

2. add staticlib target in addition to cdylib target.
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

Successfully merging this pull request may close these issues.

1 participant