Skip to content

docs(cargo-oxide): the CLI crate's own README is missing two of its commands - #980

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/cargo-oxide-missing-commands
Aug 18, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/cargo-oxide-missing-commands

Conversation

@vyncint

@vyncint vyncint commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

crates/cargo-oxide/README.md has a ### cargo oxide <cmd> section for 13 of the 15 user-facing subcommands. Two have none:

inspect   Build an example or project and print the generated PTX
clean     Remove project-local build outputs and generated cuda-oxide artifacts

Both are in cargo oxide --help, so the CLI advertises them and its own documentation does not explain them. inspect is the one worth having: it is the quick way to see the finished PTX, which is what most people opening this README are trying to do, and pipeline — the verbose whole-pipeline dump — is the only nearby thing documented.

This is the gap scripts/check-cli-doc-coverage.sh exists to prevent, one file over. That guard reads the book's command reference; this README is outside its scope, exactly as check-crate-inventory.sh reads README.md and could not see the book's Crate Map in #970.

Both new sections are in the existing house style, with flags taken from --help rather than from the clap source, so what is documented is what a user sees.

materializer-handshake stays undocumented on purpose: it is #[command(name = "__materializer-handshake", hide = true)], and the book guard already accounts for it as "1 hidden one(s) correctly excluded".

Also: the Architecture section's source tree lists three files and src/ has four — artifact_identity.rs was missing.

Checked and deliberately not changed

  • cargo oxide bench appears in this file but under a ## Future Commands heading, and is correctly absent from clap.
  • CUDA_OXIDE_MATERIALIZE_CUBIN is real (MATERIALIZE_CUBIN_ENV in reserved-oxide-symbols) and correctly described as internal.

Testing

Local, no GPU — documentation only.

  • By script: the README's ### command sections are now exactly the set of non-hidden Commands variants (15 and 15, no missing and no ghost)
  • The source tree matches src/ exactly
  • check-cli-doc-coverage.sh passes
  • cargo oxide run <example> — not applicable

vyncint and others added 2 commits August 18, 2026 07:03
…ommands

`crates/cargo-oxide/README.md` has a `### cargo oxide <cmd>` section for 13 of
the 15 user-facing subcommands. `inspect` and `clean` have none:

  inspect   Build an example or project and print the generated PTX
  clean     Remove project-local build outputs and generated cuda-oxide artifacts

Both are in `cargo oxide --help`, so the CLI advertises them and its own
documentation does not explain them. `inspect` is the one worth having: it is
the quick way to see the finished PTX, which is what most people opening this
README are trying to do, and `pipeline` -- the verbose whole-pipeline dump --
is the only nearby thing documented.

This is the gap `scripts/check-cli-doc-coverage.sh` exists to prevent, one
file over. That guard reads the book's command reference and this README is
outside its scope, exactly as `check-crate-inventory.sh` reads README.md and
could not see the book's Crate Map in NVIDIA#970. Both new sections are written in
the existing house style, with the flags taken from `--help` rather than from
the clap source, so what is documented is what a user sees.

`materializer-handshake` stays undocumented on purpose: it is
`#[command(name = "__materializer-handshake", hide = true)]`, and the book
guard already accounts for it as "1 hidden one(s) correctly excluded".

Also: the Architecture section's source tree lists three files and `src/` has
four -- `artifact_identity.rs` was missing.

Checked while here and *not* changed: `cargo oxide bench` appears in this file
under a `## Future Commands` heading and is correctly absent from clap, and
`CUDA_OXIDE_MATERIALIZE_CUBIN` is real (`MATERIALIZE_CUBIN_ENV` in
`reserved-oxide-symbols`) and correctly described as internal.

Verified by script: the README's `###` command sections are now exactly the
set of non-hidden `Commands` variants (15 and 15, no missing and no ghost),
and the source tree matches `src/` exactly. `check-cli-doc-coverage.sh`
passes.

Signed-off-by: Vyncint Ng <[email protected]>
inspect does not accept --materialize-cubin; it does accept
--device-debug and --unchecked-indexing (main.rs Inspect variant).
@nihalpasham nihalpasham added documentation Improvements or additions to documentation cargo-oxide The `cargo oxide` subcommand and build automation labels Aug 18, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator
  • Verified both added commands against main.rs; descriptions match the clap definitions.
  • One correction, and a commit layered for it: inspect does not accept --materialize-cubin, and it does accept --device-debug and --unchecked-indexing. The flag sentence now matches the Inspect variant.

@nihalpasham
nihalpasham merged commit ba1d0fb into NVIDIA:main Aug 18, 2026
0 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cargo-oxide The `cargo oxide` subcommand and build automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants