Commit 9e61a22
authored
Only embed Windows resources for binary targets (#374)
Closes #373
Ensures winresource only runs when building binary targets by checking
the `CARGO_BIN_NAME` environment variable. This prevents resource
conflicts when pet is used as a library dependency on Windows.1 parent 72123ab commit 9e61a22
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
0 commit comments