Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`cargo gpu build` tries to use `-q` with `rustup toolchain list`, which is not allowed

已关闭 适合新手
#669 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust
领域
tooling

调研方向

首先在 cargo-gpu 源代码中搜索错误中显示的 rustup toolchain list 调用。检查该命令支持哪些选项,并移除或调整不受支持的 -q 参数。然后使用 cargo gpu build -p mygraphics-shaders 重现问题。构建能够通过 toolchain 检测而不再出现此错误,即为完成。

由索引模型根据 Issue 内容生成。

描述

bug
Expected Behaviour

I expected cargo gpu build -p mygraphics-shaders to compile the crate in the current directory and place the compiled shaders in the current directory.

Example & Steps To Reproduce
  1. cargo install --locked --force --profile release --git https://github.com/rust-gpu/rust-gpu cargo-gpu (at the time, main was on 9fd4dc30c8f9e791c6d4bfc84683ec431aba452d)
  2. cargo gpu generate
  3. graphics template
  4. Project name learn-rust-gpu-2
  5. wgpu API
  6. Integrate rust-gpu using cargo-gpu
  7. cd learn-rust-gpu-2/
  8. cargo gpu build -p mygraphics-shaders
  9. See the error below.
[2026-10-11T01:14:51Z ERROR cargo_gpu] ensuring toolchain and components exist

    Caused by:
        Command `rustup toolchain list -q` failed with exit status: 1:
        -- stdout
        error: unexpected argument '-q' found

        Usage: rustup toolchain list [OPTIONS]

        For more information, try '--help'.

        -- stderr

Error: ensuring toolchain and components exist

System Info

  • Rust: rustc 1.99.0 (b940084d7 2026-09-28)
  • OS: Fedora Kinoite 44.20261008.0 (2026-10-08T00:44:42Z)
  • GPU: AMD Radeon RX 7700 XT
  • SPIR-V: None?
  • Vulkan Instance Version: 1.4.341
主要语言
Rust
星标
3.4k
派生
132
平均合并
19 小时 1 分钟
30 天内合并 PR
23

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Rust-GPU/rust-gpu 的其他 Issue

查看 Rust-GPU/rust-gpu 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。