Rust-GPU / Rust-GPU/rust-gpu

`cargo gpu remove`

Open
#573 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
3.4k
Forks
125
PR merge metrics
No merged PRs in 30d

Description

  • cargo gpu remove --shader-crate ../shader-crate-template: should remove the rustc_codegen_spirv install of said shader crate
  • cargo gpu remove --all should competely remove the entire cache dir, which would cleanup old installations by old cargo-gpu versions as well

Open Questions:

  • remove or clean?
  • cargo gpu remove <rust_gpu_version> We don't have a standardized way to declare a shader crate or a rust-gpu version. This would also be nice to have for installing
  • Should we prompt the user about uninstalling toolchains as well? Note that two installs can use the same toolchain version. We could check every other install on whether the toolchain is used and prompt the user if noone is using it, which could be made easier by having some metadata file per install with the toolchain cached in it (among other things).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the cargo gpu command implementation and trace how shader-crate installations and the cache directory are recorded. Define the removal behavior for a named shader crate and for --all, including whether unused toolchains are removed. Done means both cleanup modes work without affecting installations or shared toolchains.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.