nabijaczleweli / rust-embed-resource

A Cargo build script library to handle compilation and inclusion of Windows resources, in the most resilient fashion imaginable
MIT License
173 stars 29 forks source link

bin specific? #40

Closed cstkingkey closed 2 years ago

cstkingkey commented 2 years ago

Is it possible to compile different resource for different bin in the same package?

nabijaczleweli commented 2 years ago

AFAICT: no as a cargo limitation – the all libraries are linked to all binaries (sometimes transitively through the library)

I guess there's cargo:rustc-link-arg-bin=BIN=FLAG, but it's "highly target-specific", so?

cstkingkey commented 2 years ago

i see. anyway, thx for your work.