Skip to content

Allow customizing cargo flags #292

Open
@nazar-pc

Description

@nazar-pc

There is RUSTGPU_CARGOFLAGS, which allows to set additional cargo flags, but in contrast to RUSTGPU_CODEGEN_ARGS, which has SpirvBuilder::extra_args counterpart, this one doesn't have any yet.

It'd be helpful to have something like SpirvBuilder::cargo_flags. While at it, I'd also rename extra_args to codegen_args.

BTW RUSTGPU_CARGOFLAGS is inconsistent in naming with RUSTGPU_CODEGEN_ARGS, should have been RUSTGPU_CARGO_FLAGS, though it is then inconsistent with RUSTFLAGS 🤷

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