Skip to content

Commit 2180d73

Browse files
refactor: use SpirvBuilder directly, just manage rustc_backend_spirv dylibs (#69)
* spirv_source minor cleanup * gitignore: .idea * cargo gpu: remove ignored profiles emitting warnings * remove spirv-builder-cli, leave install broken * minor cleanup * adjust install * fix clap and serde errors * working install, build broken * adjust tests to changed names * some clippy fixes * replace cargo tree with cargo metadata * fix local path spirv-std dependency * removed repo cloning, grab toolchain from cargo's checkout * reactive slow test, no longer clones a repo * remove `RUSTC` env var to prevent build script toolchain leaking into cargo gpu This is bandaid fix, it now ignores RUSTC environment variable set from elsewhere, like when shader crate is part of a workspace. As of today, it fails to compile on workspace which uses nightly because an additional restriction was added to target specification json file on nightly. Even though enforcing specific rustc version seems like good idea for the purpose of cargo-gpu, target specification json file should be updated as well if we were to ever bump up required rustc version. * port `mod metadata` to cargo_metadata * split apart spirv_cli into spirv_source, install_toolchain and lockfile * support for local paths, also always build it there instead of our cache * support for old rust-gpu versions on crates.io * adjust build action to use `SpirvBuilder` * don't remove `Cargo.lock` for local paths * use target-specs from spirv-builder * remove unused dependencies * old toolchain support * fix clippy * shorten build dir for windows * watch support, broken on windows * use master rust-gpu * apply suggestions from @tombh * rename mentions of `--capability` to `--capabilities` * update readme's dump-usage * fix typo * ci: speed up old version builds by not building current version * update main docs * remove target dir after successful `rustc_codegen_spirv` build, saves 200MiB * rename `--force-spirv-cli-rebuild` to `--rebuild-codegen` --------- Co-authored-by: tmvkrpxl0 <[email protected]>
1 parent 66896f8 commit 2180d73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1626
-3769
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ crates/shader-crate-template/shaders
2525
tmp/*
2626
crates/shader-crate-template/manifest.json
2727
crates/shader-crate-template/rust_gpu_shader_crate_template.spv
28+
29+
.idea

0 commit comments

Comments
 (0)