cross-posted from: https://programming.dev/post/38477847

Awful Rustdocs is a CLI tool that generates or improves Rustdoc comments by harvesting symbols via rust_ast.nu, enriching each item with ast-grep context (callers, intra-body calls, qualified paths), and prompting your LLM to produce concise, high-quality docs.

You don’t need hundreds of prompts and agents if you’re smart about your context.

I’m running it on all my Rust projects right now using the Systems Programming Qwen 3 4B finetune I created, and it saves me an incredible amount of time by creating docs that are almost always good enough to publish straight off but act more as a draft for me. It cuts down on a lot of repetitive typing and lets me get back to doing what I love (writing code).

It requires Nushell, but you should probably already be using that, and if this is how you find out about Nushell, then even better, make the jump; it’s worth it.

  • Hundun@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    13 days ago

    My sibling in craft, docs are not “boilerplate”, they are the main freaking sauce. That is why they should be written by a human who understands stuff. I genuinely believe you are missing the point of the practice.