Repository navigation
docs: add the six missing crate READMEs - #818
Merged
Merged
Conversation
Twenty of the twenty-six workspace crates carry a README; these six did not: cuda-artifact-finalizer, cuda-intrinsics, cuda-intrinsics-gen, cuda-oxide-codegen, mir-transforms, nvvm-transforms. NVIDIA#793 made the README crate table cover every member, which fixed the map; this fills in the six entries that had nothing behind them. Each follows the shape of the existing ones -- crate name, what it is, then the specifics worth knowing on arrival -- and is drawn from that crate's own manifest description and module header rather than invented: * cuda-artifact-finalizer: why the libNVVM/nvJitLink policy lives in one driverless crate, so build-time materialization and the runtime fallback cannot drift apart; * cuda-intrinsics: that most code wants cuda-device, that this is the raw compiler contract, and that the declarations are generated from the catalog rather than hand-written; * cuda-intrinsics-gen: the seven invocations and which three gate CI, plus the DO-NOT-EDIT banner and the rustfmt dependency; * cuda-oxide-codegen: that the point is the absent rustc linkage, and that `experimental` is the only supported surface; * mir-transforms: where in the pipeline it runs and why that position matters -- Rust-level structure is still visible there; * nvvm-transforms: what libNVVM will not accept, and that ordinary PTX builds skip the stage entirely. Verified against the tree rather than remembered: the DO-NOT-EDIT banner text, the three `cuda-intrinsics-gen` CI gates in unit-tests.yml, `pub mod experimental`, the `mir.unroll_hint` op name, and that the generated intrinsic bodies really are `unreachable!` (986 of them, in `src/generated/`, which is why they panic outside device compilation). Every workspace crate now has a README. Signed-off-by: Vyncint Ng <[email protected]>
Signed-off-by: nihalpasham <[email protected]>
Collaborator
|
Gist: six solid READMEs completing a repo convention; three had verified under-inclusions. Pushed df000d8: the eighth usage form ( Verified here:
Landing once CI is green. Partially addresses #808; the book page it asks for stays open. |
nihalpasham
approved these changes
Aug 12, 2026
nihalpasham
pushed a commit
that referenced
this pull request
Aug 12, 2026
Every workspace crate has had a README since #818, and no manifest pointed at one. `readme` is what puts that file on the crate's docs.rs and crates.io front page; without it those pages carry the one-line `description` and nothing else. Twenty-four of the twenty-six crates are publishable, so the READMEs were written and then left unreachable from the place a reader arrives. Per-crate rather than inherited, deliberately. `[workspace.package]` carries edition, authors, license and repository, and inheriting `readme` from there would resolve every crate's path against the workspace root -- pointing all twenty-six at the top-level README instead of their own. Cargo offers no relative-to-member form, so the key belongs in each manifest, next to `description`, which is the other per-crate metadata key. Applied to all twenty-six, including the two `publish = false` crates. The key is inert there, and a uniform rule is easier to keep than an exception list that invites the question later. Verified: `cargo metadata --locked` parses and now reports a readme for 25/25 members it resolves, every path points at a file that exists, and the license inventory guard -- which reads `cargo metadata` -- is still green. Signed-off-by: Vyncint Ng <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Twenty of the twenty-six workspace crates carry a README. These six did not:
cuda-artifact-finalizer,cuda-intrinsics,cuda-intrinsics-gen,cuda-oxide-codegen,mir-transforms,nvvm-transforms.#793 made the README crate table cover every member, which fixed the map. This
fills in the six entries that had nothing behind them.
What each says
Each follows the shape of the existing ones — crate name, what it is, then the
specifics worth knowing on arrival — and is drawn from that crate's own manifest
description and module header rather than invented:
cuda-artifact-finalizercuda-intrinsicscuda-device; this is the raw compiler contract, generated from the catalog, not hand-writtencuda-intrinsics-genrustfmtdependencycuda-oxide-codegenexperimentalis the only supported surfacemir-transformsnvvm-transformsVerification
Checked against the tree rather than remembered:
// @generated by cuda-intrinsics-gen ... DO NOT EDIT.banner text;cuda-intrinsics-gengates really are inunit-tests.yml;pub mod experimentalreally is the surface;mir.unroll_hintis the real op name;unreachable!— 986 of them, undersrc/generated/, which is why calling one outside device compilation panics.(My first check grepped
src/lib.rs, found zero, and I went and looked ratherthan shipping the claim on a failed check.)
Every workspace crate now has a README. No code touched.