Development
Rust checks
Section titled “Rust checks”From the repository root, run the same checks used by continuous integration:
cargo fmt --checkcargo test --lockedcargo clippy --all-targets --all-features --locked -- -D warningscargo build --lockedThe Rust crate currently requires Rust 1.95.0 or newer because that is the
minimum supported by Nushell 0.115.x.
Work on the documentation site
Section titled “Work on the documentation site”The Starlight site lives in rustdoc-net/ and uses the checked-in
package-lock.json:
cd rustdoc-netnpm cinpm run devUse npm run build to create the production site in rustdoc-net/dist/.
The build first regenerates the Rust API reference from the repository’s
current source, then builds the Starlight pages around it.
Rust API generation
Section titled “Rust API generation”To regenerate only the embedded Rustdoc files:
cd rustdoc-netnpm run rustdocThe generated files are placed in rustdoc-net/public/rustdoc/ and should not
be edited by hand. Update Rust comments in src/ and rerun the generator when
the API reference needs better context.