-
Notifications
You must be signed in to change notification settings - Fork 11
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
include: remove scylla-rust-wrapper/extern/cassandra.h #196
Conversation
Could you, as part of this PR, find out why there need to be 2 of those files, and describe it in the comment somewhere? |
Time to dig into the depths of Cmake files. Wish me luck. |
So it just looks like So we can either retain a symlink in |
I think it's fine to modify build.rs |
Currently, we use two cassandra.h files during build. - include/cassandra.h -> an original file, copied from cpp-driver - scylla-rust-wrapper/extern/cassandra.h -> a copy of the above file, used to generate bindings in build.rs. Having both of the files is error-prone, since we need to remember to update both of the files in case of some changes. We also need to make sure that their contents are the same. In this commit, I update `build.rs` to point to original cassandra.h file (which is out of the scope of Cargo project, but it does not seem to be a problem).
Now, there is no need to have two cassandra.h files
6a963a7
to
86faf78
Compare
Done. Updated the description and title accordingly. |
Fix: #116
I updated
build.rs
so it now uses originalinclude/cassandra.h
file to generate bindings.Thanks to that, we can remove the needless
scylla-rust-wrapper/extern/cassandra.h
file.Pre-review checklist
[ ] I have implemented Rust unit tests for the features/changes introduced.[ ] I have enabled appropriate tests in.github/workflows/build.yml
ingtest_filter
.[ ] I have enabled appropriate tests in.github/workflows/cassandra.yml
ingtest_filter
.