Skip to content

Add documentation across the codebase#824

Open
oriongonza wants to merge 6 commits intorust-lang:masterfrom
oriongonza:add-module-docs
Open

Add documentation across the codebase#824
oriongonza wants to merge 6 commits intorust-lang:masterfrom
oriongonza:add-module-docs

Conversation

@oriongonza
Copy link

@oriongonza oriongonza commented Feb 20, 2026

Motivation

cargo doc was producing pages where most items showed up blank — no descriptions on functions, no module summaries, no guidance on how the pieces fit together. The runner pipeline in particular (run_ex → Worker::run → Task::run → run_test → run_cargo) had no documentation trail at all, making it hard for newcomers to understand how crates actually get built and tested.

Transparency note

This PR was written with LLM assistance. Every doc comment was reviewed for accuracy against the actual code, but I want to be upfront about it. My position is that robot docs that are correct and present are better than artisanal docs that don't exist yet — and these didn't exist yet. If any descriptions are misleading or could be improved, I'm happy to fix them.

Add /// doc comments to all public structs, enums, traits, and functions
across the crate. Update string_enum! and test_result_enum! macros to
accept and propagate doc attributes via $(#[$meta:meta])* so that
macro-generated types appear documented in rustdoc.
Add //! doc comments to lib.rs and all 13 public modules so that
cargo doc produces a navigable, self-describing documentation page.
@oriongonza oriongonza changed the title Add documentation across the codebase Capture per-crate build timings from cargo's --timings output Feb 21, 2026
@oriongonza oriongonza changed the title Capture per-crate build timings from cargo's --timings output Add documentation across the codebase Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant