Stream: general

Topic: pre-processed lib.rs


gnzlbg (Nov 09 2018 at 15:13, on Zulip):

I have a C library that contains an include! which is expanded by rust from a file generated during its build.rs and I want to test its ABI with ctest, but ctest only takes a path to the lib.rs file.

Is there a way to point ctest in one crate, to the lib.rs with the include! directives removed of one of its dependencies ?

gnzlbg (Nov 09 2018 at 15:14, on Zulip):

AFAICT the include!s are replaced during macro expansion, and a version of the source files with these replaced is not written anywhere.

Last update: Nov 22 2019 at 00:45UTC