-
Notifications
You must be signed in to change notification settings - Fork 86
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
FW-1087: provide wirefilter.h C header file and add ffi-ctests crate #4
Conversation
ae50c16
to
671feb5
Compare
8554979
to
39978b2
Compare
39978b2
to
fc6cf77
Compare
30d18f3
to
649e029
Compare
649e029
to
e5a8bb2
Compare
I'm seeing this upon checkout:
Not sure which change triggers it, but it doesn't look right. UPD: I guess Rust just expects that if you add it as a dependency, it has to be an |
From what i understand, this is because |
Better to use |
e5a8bb2
to
163c7af
Compare
I hope everything is fine now 👍 |
e357bbc
to
902bab7
Compare
…crate This new crate is here to provide a set of C based tests that will serve two purposes: * Provide some examples how to use the FFI bindings * Test that those bindings are actually working as intended Internally, it relies on ffi/tests/ctests/src/tests.c file which contains tests written in C and that is compiled at cargo configuration time through the use of a build.rs file. This produces a wirefilter_ffi_ctests.a static library that is later used in the ffi/tests/ctests/src/lib.rs file to call the different tests functions. All of this is done in order to try to integrate somehow properly with cargo test.
902bab7
to
a92badb
Compare
Pushed commit to run just C tests (which are platform-specific) on Windows and OS X too to make sure our headers stay compatible. |
This new crate is here to provide a set of C based tests that will
serve two purposes:
Internally, it relies on ffi-ctests/ctests/tests.c file which contains
tests written in C and that is compiled at cargo configuration time
through the use of a build.rs file. This produces a wirefilter_ffi_ctests.so
shared library that is later used in the ffi-ctests/ctests/src/lib.rs file
to call the different tests functions. All of this is done in order to try
to integrate somehow properly with cargo test.