Skip to content

docs: add the six missing crate READMEs - #818

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/crate-readmes
Aug 12, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/crate-readmes

Conversation

@vyncint

@vyncint vyncint commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

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:

crate the thing worth knowing
cuda-artifact-finalizer why the libNVVM/nvJitLink policy lives in one driverless crate: build-time materialization and the runtime fallback cannot drift apart
cuda-intrinsics most code wants cuda-device; this is the raw compiler contract, generated from the catalog, not hand-written
cuda-intrinsics-gen the seven invocations, which three gate CI, the DO-NOT-EDIT banner, the rustfmt dependency
cuda-oxide-codegen the point is the absent rustc linkage; 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

Verification

Checked against the tree rather than remembered:

  • the // @generated by cuda-intrinsics-gen ... DO NOT EDIT. banner text;
  • the three cuda-intrinsics-gen gates really are in unit-tests.yml;
  • pub mod experimental really is the surface;
  • mir.unroll_hint is the real op name;
  • the generated intrinsic bodies really are unreachable! — 986 of them, under
    src/generated/, which is why calling one outside device compilation panics.
    (My first check grepped src/lib.rs, found zero, and I went and looked rather
    than shipping the claim on a failed check.)

Every workspace crate now has a README. No code touched.

vyncint and others added 2 commits August 12, 2026 07:34
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]>
@nihalpasham nihalpasham added the documentation Improvements or additions to documentation label Aug 12, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator

Gist: six solid READMEs completing a repo convention; three had verified under-inclusions. Pushed df000d8: the eighth usage form (probe --candidate), a generated-outputs list matching all nine MANAGED_GENERATED_ROOTS, and the two mir-transforms passes the crate header skips (canonicalize, scalarize_borrowed_aggregate_reads).

Verified here:

  • every added claim quoted from source (print_usage, MANAGED_GENERATED_ROOTS, the pass doc headers);
  • existing README content spot-checked against the crates it describes (finalizer deps and consumers, the three CI gates, @generated banners).

Landing once CI is green. Partially addresses #808; the book page it asks for stays open.

@nihalpasham
nihalpasham merged commit 6e27dfe into NVIDIA:main Aug 12, 2026
41 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants