Skip to content

Remove the need for crate-type = ["dylib"] #476

@nazar-pc

Description

@nazar-pc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions