Right now for shader crate to compile crate-type = ["dylib"] is needed to be specified in Cargo.toml.
This is annoying in case when a library is not just a shader, but also a regular dependency of other crates since this makes compiler generate extra libshader_crate.so shared objects in target/{release,debug}.
This can be worked around with cargo rustc --crate-type dylib when compiling normally, so maybe codegen backend or cargo-gpu could do something like that transparently and implicitly?
Feel free to move this into cargo-gpu repository if it makes more sense to be there. Has nothing to do with cargo-gpu.
Right now for shader crate to compile
crate-type = ["dylib"]is needed to be specified inCargo.toml.This is annoying in case when a library is not just a shader, but also a regular dependency of other crates since this makes compiler generate extra
libshader_crate.soshared objects intarget/{release,debug}.This can be worked around with
cargo rustc --crate-type dylibwhen compiling normally, so maybe codegen backend orcargo-gpucould do something like that transparently and implicitly?Feel free to move this intoHas nothing to do with cargo-gpu.cargo-gpurepository if it makes more sense to be there.