-
Notifications
You must be signed in to change notification settings - Fork 471
Add example for cpp calling rust by including header #2174
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
base: main
Are you sure you want to change the base?
Add example for cpp calling rust by including header #2174
Conversation
c25c102
to
516cb91
Compare
516cb91
to
51ba31c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you add a README.md to examples/ffi/cpp_calling_rust_with_header
to explain what's going on with words? I opened #1839 a while ago and would like to at some point refactor the examples to be demonstrating how to do common things vs treating them as integration tests like we do now.
This PR adds an example of cpp calling rust by using
cc_import
rule to include the header files and include paths.