Uh oh!
There was an error while loading. Please reload this page.
Updating target json support - #256
Conversation
LegNeato
commented
May 21, 2025
Should this be its own crate? @eddyb and I discussed it in the past. |
Firestar99
commented
May 21, 2025
You mean just the target specs json files as a separate crate? And have cargo gpu to just permanently depend on the "legacy" version of the target specs? (legacy meaning before this PR) Just one issue with that: |
Yeah the json as their own crate. Doing so lets us have multiple versions and doesn't bring in other deps if something just needs the json. As I said we discussed it in the past but I think just kicked the can down the road until problems cropped up. We may now be there ha |
cb11fc7 to
0f6287bCompareCreated a new rust-gpu/crates/rustc_codegen_spirv_target_specs/README.md Lines 1 to 7 in 0f6287b |
ee6afdb to
0ee6729CompareLegNeato
commented
May 26, 2025
I'd like @eddyb to chime in before approving. |
Firestar99
commented
May 26, 2025
@LegNeato it would be nice to have |
0ee6729 to
b77676eCompareLegNeato
commented
May 27, 2025
Agreed! |
eddyb
left a comment
There was a problem hiding this comment.
I personally don't like the proliferation of crates, and I've yet to review any of the cargo-gpu work, but:
- most of this seems to be straightforward
- the ugly
rustc_codegen_spirvprefix actually works in its favor
I only have one requests, which is mostly aesthetic.
I'm tempted to suggest something more general that could emcompass both the -types crate and the new target specs, or at least not overly narrowing the new one to "target specs" - but being specific to rustc_codegen_spirv, not Rust-GPU or even the spirv-* crates, makes me once again not want to overthink it.
Uh oh!
There was an error while loading. Please reload this page.
eddyb
commented
May 28, 2025
What's kind of nice with this setup is you can easily release older versions of this crate afterwards, even if starting at 0.9. The only downside is the "dead zone" of git revs (e.g. if anyone wanted to bisect Rust-GPU versions), though, hmm, it's not like the files weren't there in the git repo - I'm maybe a bit surprised you couldn't pull it from the source of |
3ef526e to
9b99f20CompareI didn't want to "magically" pull them from |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
48c290a to
9b19c61Compare
cargo gpu: Rust-GPU/cargo-gpu#75
#249 (comment)
Note: replace
rustc_codegen_spirv-typeswith the newrustc_codegen_spirv-target-specscrate#249 (comment)