Skip to content

Impossible to use two differents resources after 1.6.5 #45

@poliorcetics

Description

@poliorcetics

I have two resource files

  • The first is used for tests and is on a library liba
  • The second is used for the production binary and is on the binary prodbin

The tests are in several libraries depending on liba

So I have something like:

liba (RESOURCE)
| - test1
| - test2
| - test3
+- probbin (RESOURCE)

Previously I could simply compile and due to the define order, it worked (I have a CI test for it): prodbin had its resources and everything else inherited liba's resources

I tried some fixes on my side in terms of file name and such, but nothing worked so I cannot updated to the new version 1.7.2. Using compile_for didn't work either.

Trying to detect to only build liba's resources when testing doesn't work because liba has no idea what it is built for (cargo does not give such information, to avoid dependencies affecting their build output based on the end product in hidden ways)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions