docs/src/publishing-rust-gpu.md
This is a task list for the maintainers of rust-gpu to remember to do when publishing a new version of rust-gpu (probably not useful for contributors without access to embark's crates.io account 😋)
The published crates and their relative locations are:
spirv-std-types (crates/spirv-std/shared)spirv-std-macros (crates/spirv-std/macros)spirv-std (crates/spirv-std)rustc_codegen_spirv-types (crates/rustc_codegen_spirv-types)rustc_codegen_spirv (crates/rustc_codegen_spirv)spirv-builder (crates/spirv-builder)Publishing the crates in above order prevents dependency issues. These are the steps:
Cargo.toml. This project uses workspace
inheritance, so this is the only place you'll find these actual versions. Make sure to pin the
rust-gpu dependencies to their exact versions using the =-notation, such as: =0.4.0. All crates
are built and published in tandem so you're not expected to be able to mix and match between versions.crates/spirv-builder/README.md and make sure the correct
nightly version is listed there as well.main branch.main with the version: git tag v0.4.0git push origin v0.4.0cd [crate] && cargo publish in the order of the list above (make sure
.cargo/credentials is set to embark's token). The crates.io index might take some seconds to update
causing an error if the crates are published in quick succession. Wait a couple of seconds and try
again 🙂.