Hi there, I’m having some trouble packaging my interface with Rust and Cargo. The project has the C code in src/c, and the build script uses make to build the C code into a
.a library. After that the project links to it and does everything fine. On my computer, if I do
cargo test everything works perfectly.
On Travis-ci, on the other hand, the doc tests do not pass, and I cannot figure out why. As you can see here, the error it gives is
error: linking with `cc` failed: exit code: 1. What I do not understand is why does the rest of the build and testing go perfectly, and that doesn’t. As I say, in my computer, it works.
Moreover, when doing
cargo package && cargo publish everything goes smoothly (if the library is already compiled in the
.a file. The main problem is that I cannot get it to work in another crate if I put it as a dependency, it simply won’t build!
Those are my main concerns right now, but I am also trying to add conditional compilation if SSE3 exists. The original library checks for the
__SSE3__ flag, but I don’t know how to do that in Rust so I don’t compile functions that will not work in certain conditions.
Thanks in advance for your help!