compiletest-rs icon indicating copy to clipboard operation
compiletest-rs copied to clipboard

Add an example that actually uses something from the library

Open gnzlbg opened this issue 5 years ago • 2 comments

The library in the example project appears to be empty. None of the examples use anything from it.

I'm trying to set this up for a library project and am constantly getting that my library crate cannot be found.

gnzlbg avatar Jan 31 '19 13:01 gnzlbg

The library in the example project appears to be empty. None of the examples use anything from it.

Correct.

I'm trying to set this up for a library project and am constantly getting that my library crate cannot be found.

Is this using a workspace as you mention in #157? You might need to fiddle with target_rustcflags and add more directories with -L.

laumann avatar Jan 31 '19 14:01 laumann

Is this using a workspace as you mention in #157?

Yes.

You might need to fiddle with target_rustcflags and add more directories with -L.

I tried without any luck. Ended up using rustdoc compile_fail doc tests instead, but I'd prefer to be able to match the error message more precisely using compilefail_rs.

gnzlbg avatar Jan 31 '19 14:01 gnzlbg