`cargo gpu build` tries to use `-q` with `rustup toolchain list`, which is not allowed
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先在 cargo-gpu 源代码中搜索错误中显示的 rustup toolchain list 调用。检查该命令支持哪些选项,并移除或调整不受支持的 -q 参数。然后使用 cargo gpu build -p mygraphics-shaders 重现问题。构建能够通过 toolchain 检测而不再出现此错误,即为完成。
由索引模型根据 Issue 内容生成。
描述
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
cargo install --locked --force --profile release --git https://github.com/rust-gpu/rust-gpu cargo-gpu(at the time,mainwas on 9fd4dc30c8f9e791c6d4bfc84683ec431aba452d)cargo gpu generategraphicstemplate- Project name
learn-rust-gpu-2 wgpuAPI- Integrate
rust-gpuusingcargo-gpu cd learn-rust-gpu-2/cargo gpu build -p mygraphics-shaders- 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Rust-GPU/rust-gpu 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 68/100
Rust-GPU/rust-gpu#209 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
Rust-GPU/rust-gpu#659 · 8 条评论 ·
维护者通常 1 天内回复
-
Adhere to Rust floating-point semantics可能重新可做 @Firestar99 于 32 天前认领,目前没有进行中的 PR。 未关闭enhancement
Rust-GPU/rust-gpu#643 · 6 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 48/100
Rust-GPU/rust-gpu#608 · 3 条评论 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 48/100
Rust-GPU/rust-gpu#606 · 2 条评论 ·
维护者通常 1 天内回复
查看 Rust-GPU/rust-gpu 的全部 Issue
相似的 Issue
-
type/bug
难度 2/5 1-3 小时 新手友好度 72/100
stackabletech/operator-rs#1301 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
jmcnamara/rust_xlsxwriter#205 · 4 条评论 ·
-
agent:triaged bug bughunt pm:pipenv priority:p1
难度 2/5 1-3 小时 新手友好度 78/100
SocketDev/socket-patch#1608 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
adorsys/status-list-server#698 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
nannou-org/egui_graph#92 ·
维护者通常 1 天内回复